@@ -45,7 +45,7 @@ describe('resource metrics', () => {
45
45
} ) ;
46
46
47
47
test ( 'getInsights' , async ( ) => {
48
- const responsePromise = client . data . metrics . getInsights ( 'video_startup_time ' ) ;
48
+ const responsePromise = client . data . metrics . getInsights ( 'aggregate_startup_time ' ) ;
49
49
const rawResponse = await responsePromise . asResponse ( ) ;
50
50
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
51
51
const response = await responsePromise ;
@@ -58,15 +58,15 @@ describe('resource metrics', () => {
58
58
test ( 'getInsights: request options instead of params are passed correctly' , async ( ) => {
59
59
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
60
60
await expect (
61
- client . data . metrics . getInsights ( 'video_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
61
+ client . data . metrics . getInsights ( 'aggregate_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
62
62
) . rejects . toThrow ( Mux . NotFoundError ) ;
63
63
} ) ;
64
64
65
65
test ( 'getInsights: request options and params are passed correctly' , async ( ) => {
66
66
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
67
67
await expect (
68
68
client . data . metrics . getInsights (
69
- 'video_startup_time ' ,
69
+ 'aggregate_startup_time ' ,
70
70
{
71
71
filters : [ 'string' , 'string' , 'string' ] ,
72
72
measurement : '95th' ,
@@ -80,7 +80,7 @@ describe('resource metrics', () => {
80
80
} ) ;
81
81
82
82
test ( 'getOverallValues' , async ( ) => {
83
- const responsePromise = client . data . metrics . getOverallValues ( 'video_startup_time ' ) ;
83
+ const responsePromise = client . data . metrics . getOverallValues ( 'aggregate_startup_time ' ) ;
84
84
const rawResponse = await responsePromise . asResponse ( ) ;
85
85
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
86
86
const response = await responsePromise ;
@@ -93,15 +93,15 @@ describe('resource metrics', () => {
93
93
test ( 'getOverallValues: request options instead of params are passed correctly' , async ( ) => {
94
94
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
95
95
await expect (
96
- client . data . metrics . getOverallValues ( 'video_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
96
+ client . data . metrics . getOverallValues ( 'aggregate_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
97
97
) . rejects . toThrow ( Mux . NotFoundError ) ;
98
98
} ) ;
99
99
100
100
test ( 'getOverallValues: request options and params are passed correctly' , async ( ) => {
101
101
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
102
102
await expect (
103
103
client . data . metrics . getOverallValues (
104
- 'video_startup_time ' ,
104
+ 'aggregate_startup_time ' ,
105
105
{
106
106
filters : [ 'string' , 'string' , 'string' ] ,
107
107
measurement : '95th' ,
@@ -114,7 +114,7 @@ describe('resource metrics', () => {
114
114
} ) ;
115
115
116
116
test ( 'getTimeseries' , async ( ) => {
117
- const responsePromise = client . data . metrics . getTimeseries ( 'video_startup_time ' ) ;
117
+ const responsePromise = client . data . metrics . getTimeseries ( 'aggregate_startup_time ' ) ;
118
118
const rawResponse = await responsePromise . asResponse ( ) ;
119
119
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
120
120
const response = await responsePromise ;
@@ -127,15 +127,15 @@ describe('resource metrics', () => {
127
127
test ( 'getTimeseries: request options instead of params are passed correctly' , async ( ) => {
128
128
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
129
129
await expect (
130
- client . data . metrics . getTimeseries ( 'video_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
130
+ client . data . metrics . getTimeseries ( 'aggregate_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
131
131
) . rejects . toThrow ( Mux . NotFoundError ) ;
132
132
} ) ;
133
133
134
134
test ( 'getTimeseries: request options and params are passed correctly' , async ( ) => {
135
135
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
136
136
await expect (
137
137
client . data . metrics . getTimeseries (
138
- 'video_startup_time ' ,
138
+ 'aggregate_startup_time ' ,
139
139
{
140
140
filters : [ 'string' , 'string' , 'string' ] ,
141
141
group_by : 'minute' ,
@@ -150,7 +150,7 @@ describe('resource metrics', () => {
150
150
} ) ;
151
151
152
152
test ( 'listBreakdownValues' , async ( ) => {
153
- const responsePromise = client . data . metrics . listBreakdownValues ( 'video_startup_time ' ) ;
153
+ const responsePromise = client . data . metrics . listBreakdownValues ( 'aggregate_startup_time ' ) ;
154
154
const rawResponse = await responsePromise . asResponse ( ) ;
155
155
expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
156
156
const response = await responsePromise ;
@@ -163,15 +163,15 @@ describe('resource metrics', () => {
163
163
test ( 'listBreakdownValues: request options instead of params are passed correctly' , async ( ) => {
164
164
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
165
165
await expect (
166
- client . data . metrics . listBreakdownValues ( 'video_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
166
+ client . data . metrics . listBreakdownValues ( 'aggregate_startup_time ' , { path : '/_stainless_unknown_path' } ) ,
167
167
) . rejects . toThrow ( Mux . NotFoundError ) ;
168
168
} ) ;
169
169
170
170
test ( 'listBreakdownValues: request options and params are passed correctly' , async ( ) => {
171
171
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
172
172
await expect (
173
173
client . data . metrics . listBreakdownValues (
174
- 'video_startup_time ' ,
174
+ 'aggregate_startup_time ' ,
175
175
{
176
176
filters : [ 'string' , 'string' , 'string' ] ,
177
177
group_by : 'asn' ,
0 commit comments