@limrun/api 0.33.5 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +650 -0
- package/resources/analytics.d.mts.map +1 -0
- package/resources/analytics.d.ts +650 -0
- package/resources/analytics.d.ts.map +1 -0
- package/resources/analytics.js +22 -0
- package/resources/analytics.js.map +1 -0
- package/resources/analytics.mjs +18 -0
- package/resources/analytics.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +17 -0
- package/src/resources/analytics.ts +743 -0
- package/src/resources/index.ts +7 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Analytics extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get analytics for the authenticated organization
|
|
7
|
+
*/
|
|
8
|
+
get(query: AnalyticsGetParams, options?: RequestOptions): APIPromise<AnalyticsResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns per-instance analytics grouped by minute bucket for detailed chart
|
|
11
|
+
* views.
|
|
12
|
+
*/
|
|
13
|
+
getInstances(query: AnalyticsGetInstancesParams, options?: RequestOptions): APIPromise<AnalyticsInstancesResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface AnalyticsInstancesResponse {
|
|
16
|
+
asOf: string;
|
|
17
|
+
from: string;
|
|
18
|
+
series: Array<AnalyticsInstancesResponse.Series>;
|
|
19
|
+
/**
|
|
20
|
+
* IANA timezone used for time bucket grouping
|
|
21
|
+
*/
|
|
22
|
+
timezone: string;
|
|
23
|
+
to: string;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace AnalyticsInstancesResponse {
|
|
26
|
+
interface Series {
|
|
27
|
+
instances: Array<Series.Instance>;
|
|
28
|
+
/**
|
|
29
|
+
* RFC3339 timestamp for the start of the minute bucket in the requested timezone,
|
|
30
|
+
* including the local offset
|
|
31
|
+
*/
|
|
32
|
+
timestamp: string;
|
|
33
|
+
}
|
|
34
|
+
namespace Series {
|
|
35
|
+
/**
|
|
36
|
+
* Analytics details for a single instance within a time bucket
|
|
37
|
+
*/
|
|
38
|
+
interface Instance {
|
|
39
|
+
/**
|
|
40
|
+
* Billed minutes with platform multiplier applied
|
|
41
|
+
*/
|
|
42
|
+
billedMinutes: number;
|
|
43
|
+
/**
|
|
44
|
+
* Total cost in dollars for this instance
|
|
45
|
+
*/
|
|
46
|
+
cost: number;
|
|
47
|
+
/**
|
|
48
|
+
* Instance type ID (e.g., ios_xxx, android_xxx)
|
|
49
|
+
*/
|
|
50
|
+
instanceTid: string;
|
|
51
|
+
/**
|
|
52
|
+
* Platform name.
|
|
53
|
+
*/
|
|
54
|
+
platform: 'android' | 'ios' | 'xcode';
|
|
55
|
+
/**
|
|
56
|
+
* Actual runtime minutes before platform multiplier
|
|
57
|
+
*/
|
|
58
|
+
runtimeMinutes: number;
|
|
59
|
+
billedBreakdown?: Instance.BilledBreakdown;
|
|
60
|
+
/**
|
|
61
|
+
* Cost breakdown by billing source in dollars
|
|
62
|
+
*/
|
|
63
|
+
costBreakdown?: Instance.CostBreakdown;
|
|
64
|
+
/**
|
|
65
|
+
* Instance labels at billing time
|
|
66
|
+
*/
|
|
67
|
+
labels?: {
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Region where the instance ran
|
|
72
|
+
*/
|
|
73
|
+
region?: string;
|
|
74
|
+
}
|
|
75
|
+
namespace Instance {
|
|
76
|
+
interface BilledBreakdown {
|
|
77
|
+
creditsBilledMinutes: number;
|
|
78
|
+
onDemandBilledMinutes: number;
|
|
79
|
+
/**
|
|
80
|
+
* Map of plan ID to billed minutes
|
|
81
|
+
*/
|
|
82
|
+
planBilledMinutes?: {
|
|
83
|
+
[key: string]: number;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Map of subscription ID to billed minutes
|
|
87
|
+
*/
|
|
88
|
+
subscriptionBilledMinutes?: {
|
|
89
|
+
[key: string]: number;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Cost breakdown by billing source in dollars
|
|
94
|
+
*/
|
|
95
|
+
interface CostBreakdown {
|
|
96
|
+
/**
|
|
97
|
+
* Cost from credits (always 0)
|
|
98
|
+
*/
|
|
99
|
+
creditsCost: number;
|
|
100
|
+
/**
|
|
101
|
+
* Cost from on-demand billing in dollars
|
|
102
|
+
*/
|
|
103
|
+
onDemandCost: number;
|
|
104
|
+
/**
|
|
105
|
+
* Map of plan ID to cost in dollars
|
|
106
|
+
*/
|
|
107
|
+
planCost?: {
|
|
108
|
+
[key: string]: number;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Map of subscription ID to cost in dollars
|
|
112
|
+
*/
|
|
113
|
+
subscriptionCost?: {
|
|
114
|
+
[key: string]: number;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export interface AnalyticsResponse {
|
|
121
|
+
asOf: string;
|
|
122
|
+
bucket: 'hour' | 'day' | 'week' | 'minute';
|
|
123
|
+
from: string;
|
|
124
|
+
series: Array<AnalyticsResponse.Series>;
|
|
125
|
+
/**
|
|
126
|
+
* Summary of analytics across all time buckets, broken down by platform and region
|
|
127
|
+
*/
|
|
128
|
+
summary: AnalyticsResponse.Summary;
|
|
129
|
+
/**
|
|
130
|
+
* IANA timezone used for time bucket grouping
|
|
131
|
+
*/
|
|
132
|
+
timezone: string;
|
|
133
|
+
to: string;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace AnalyticsResponse {
|
|
136
|
+
/**
|
|
137
|
+
* Analytics data for a single time bucket, broken down by platform and region
|
|
138
|
+
*/
|
|
139
|
+
interface Series {
|
|
140
|
+
/**
|
|
141
|
+
* Map of region to analytics stats for Android
|
|
142
|
+
*/
|
|
143
|
+
android: {
|
|
144
|
+
[key: string]: Series.Android;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Map of region to analytics stats for iOS
|
|
148
|
+
*/
|
|
149
|
+
ios: {
|
|
150
|
+
[key: string]: Series.Ios;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* RFC3339 timestamp for the start of the bucket in the requested timezone,
|
|
154
|
+
* including the local offset
|
|
155
|
+
*/
|
|
156
|
+
timestamp: string;
|
|
157
|
+
/**
|
|
158
|
+
* Map of region to analytics stats for Xcode
|
|
159
|
+
*/
|
|
160
|
+
xcode: {
|
|
161
|
+
[key: string]: Series.Xcode;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Individual instance details for this time bucket
|
|
165
|
+
*/
|
|
166
|
+
instances?: Array<Series.Instance>;
|
|
167
|
+
}
|
|
168
|
+
namespace Series {
|
|
169
|
+
/**
|
|
170
|
+
* Complete analytics for a specific region including billing breakdown
|
|
171
|
+
*/
|
|
172
|
+
interface Android {
|
|
173
|
+
/**
|
|
174
|
+
* Average instance duration in minutes
|
|
175
|
+
*/
|
|
176
|
+
avgDurationMinutes: number;
|
|
177
|
+
/**
|
|
178
|
+
* Billed minutes with platform multiplier applied
|
|
179
|
+
*/
|
|
180
|
+
billedMinutes: number;
|
|
181
|
+
/**
|
|
182
|
+
* Total cost in dollars
|
|
183
|
+
*/
|
|
184
|
+
cost: number;
|
|
185
|
+
/**
|
|
186
|
+
* Number of unique instances
|
|
187
|
+
*/
|
|
188
|
+
count: number;
|
|
189
|
+
/**
|
|
190
|
+
* Minutes billed to credits
|
|
191
|
+
*/
|
|
192
|
+
creditsBilledMinutes: number;
|
|
193
|
+
/**
|
|
194
|
+
* Cost from credits (always 0)
|
|
195
|
+
*/
|
|
196
|
+
creditsCost: number;
|
|
197
|
+
/**
|
|
198
|
+
* Minutes billed on-demand
|
|
199
|
+
*/
|
|
200
|
+
onDemandBilledMinutes: number;
|
|
201
|
+
/**
|
|
202
|
+
* Cost from on-demand billing in dollars
|
|
203
|
+
*/
|
|
204
|
+
onDemandCost: number;
|
|
205
|
+
/**
|
|
206
|
+
* Actual runtime minutes before platform multiplier
|
|
207
|
+
*/
|
|
208
|
+
runtimeMinutes: number;
|
|
209
|
+
/**
|
|
210
|
+
* Map of subscription ID to billed minutes
|
|
211
|
+
*/
|
|
212
|
+
subscriptionBilledMinutes?: {
|
|
213
|
+
[key: string]: number;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Map of subscription ID to cost in dollars
|
|
217
|
+
*/
|
|
218
|
+
subscriptionCost?: {
|
|
219
|
+
[key: string]: number;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Complete analytics for a specific region including billing breakdown
|
|
224
|
+
*/
|
|
225
|
+
interface Ios {
|
|
226
|
+
/**
|
|
227
|
+
* Average instance duration in minutes
|
|
228
|
+
*/
|
|
229
|
+
avgDurationMinutes: number;
|
|
230
|
+
/**
|
|
231
|
+
* Billed minutes with platform multiplier applied
|
|
232
|
+
*/
|
|
233
|
+
billedMinutes: number;
|
|
234
|
+
/**
|
|
235
|
+
* Total cost in dollars
|
|
236
|
+
*/
|
|
237
|
+
cost: number;
|
|
238
|
+
/**
|
|
239
|
+
* Number of unique instances
|
|
240
|
+
*/
|
|
241
|
+
count: number;
|
|
242
|
+
/**
|
|
243
|
+
* Minutes billed to credits
|
|
244
|
+
*/
|
|
245
|
+
creditsBilledMinutes: number;
|
|
246
|
+
/**
|
|
247
|
+
* Cost from credits (always 0)
|
|
248
|
+
*/
|
|
249
|
+
creditsCost: number;
|
|
250
|
+
/**
|
|
251
|
+
* Minutes billed on-demand
|
|
252
|
+
*/
|
|
253
|
+
onDemandBilledMinutes: number;
|
|
254
|
+
/**
|
|
255
|
+
* Cost from on-demand billing in dollars
|
|
256
|
+
*/
|
|
257
|
+
onDemandCost: number;
|
|
258
|
+
/**
|
|
259
|
+
* Actual runtime minutes before platform multiplier
|
|
260
|
+
*/
|
|
261
|
+
runtimeMinutes: number;
|
|
262
|
+
/**
|
|
263
|
+
* Map of subscription ID to billed minutes
|
|
264
|
+
*/
|
|
265
|
+
subscriptionBilledMinutes?: {
|
|
266
|
+
[key: string]: number;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Map of subscription ID to cost in dollars
|
|
270
|
+
*/
|
|
271
|
+
subscriptionCost?: {
|
|
272
|
+
[key: string]: number;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Complete analytics for a specific region including billing breakdown
|
|
277
|
+
*/
|
|
278
|
+
interface Xcode {
|
|
279
|
+
/**
|
|
280
|
+
* Average instance duration in minutes
|
|
281
|
+
*/
|
|
282
|
+
avgDurationMinutes: number;
|
|
283
|
+
/**
|
|
284
|
+
* Billed minutes with platform multiplier applied
|
|
285
|
+
*/
|
|
286
|
+
billedMinutes: number;
|
|
287
|
+
/**
|
|
288
|
+
* Total cost in dollars
|
|
289
|
+
*/
|
|
290
|
+
cost: number;
|
|
291
|
+
/**
|
|
292
|
+
* Number of unique instances
|
|
293
|
+
*/
|
|
294
|
+
count: number;
|
|
295
|
+
/**
|
|
296
|
+
* Minutes billed to credits
|
|
297
|
+
*/
|
|
298
|
+
creditsBilledMinutes: number;
|
|
299
|
+
/**
|
|
300
|
+
* Cost from credits (always 0)
|
|
301
|
+
*/
|
|
302
|
+
creditsCost: number;
|
|
303
|
+
/**
|
|
304
|
+
* Minutes billed on-demand
|
|
305
|
+
*/
|
|
306
|
+
onDemandBilledMinutes: number;
|
|
307
|
+
/**
|
|
308
|
+
* Cost from on-demand billing in dollars
|
|
309
|
+
*/
|
|
310
|
+
onDemandCost: number;
|
|
311
|
+
/**
|
|
312
|
+
* Actual runtime minutes before platform multiplier
|
|
313
|
+
*/
|
|
314
|
+
runtimeMinutes: number;
|
|
315
|
+
/**
|
|
316
|
+
* Map of subscription ID to billed minutes
|
|
317
|
+
*/
|
|
318
|
+
subscriptionBilledMinutes?: {
|
|
319
|
+
[key: string]: number;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Map of subscription ID to cost in dollars
|
|
323
|
+
*/
|
|
324
|
+
subscriptionCost?: {
|
|
325
|
+
[key: string]: number;
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Analytics details for a single instance within a time bucket
|
|
330
|
+
*/
|
|
331
|
+
interface Instance {
|
|
332
|
+
/**
|
|
333
|
+
* Billed minutes with platform multiplier applied
|
|
334
|
+
*/
|
|
335
|
+
billedMinutes: number;
|
|
336
|
+
/**
|
|
337
|
+
* Total cost in dollars for this instance
|
|
338
|
+
*/
|
|
339
|
+
cost: number;
|
|
340
|
+
/**
|
|
341
|
+
* Instance type ID (e.g., ios_xxx, android_xxx)
|
|
342
|
+
*/
|
|
343
|
+
instanceTid: string;
|
|
344
|
+
/**
|
|
345
|
+
* Platform name.
|
|
346
|
+
*/
|
|
347
|
+
platform: 'android' | 'ios' | 'xcode';
|
|
348
|
+
/**
|
|
349
|
+
* Actual runtime minutes before platform multiplier
|
|
350
|
+
*/
|
|
351
|
+
runtimeMinutes: number;
|
|
352
|
+
billedBreakdown?: Instance.BilledBreakdown;
|
|
353
|
+
/**
|
|
354
|
+
* Cost breakdown by billing source in dollars
|
|
355
|
+
*/
|
|
356
|
+
costBreakdown?: Instance.CostBreakdown;
|
|
357
|
+
/**
|
|
358
|
+
* Instance labels at billing time
|
|
359
|
+
*/
|
|
360
|
+
labels?: {
|
|
361
|
+
[key: string]: string;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Region where the instance ran
|
|
365
|
+
*/
|
|
366
|
+
region?: string;
|
|
367
|
+
}
|
|
368
|
+
namespace Instance {
|
|
369
|
+
interface BilledBreakdown {
|
|
370
|
+
creditsBilledMinutes: number;
|
|
371
|
+
onDemandBilledMinutes: number;
|
|
372
|
+
/**
|
|
373
|
+
* Map of plan ID to billed minutes
|
|
374
|
+
*/
|
|
375
|
+
planBilledMinutes?: {
|
|
376
|
+
[key: string]: number;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Map of subscription ID to billed minutes
|
|
380
|
+
*/
|
|
381
|
+
subscriptionBilledMinutes?: {
|
|
382
|
+
[key: string]: number;
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Cost breakdown by billing source in dollars
|
|
387
|
+
*/
|
|
388
|
+
interface CostBreakdown {
|
|
389
|
+
/**
|
|
390
|
+
* Cost from credits (always 0)
|
|
391
|
+
*/
|
|
392
|
+
creditsCost: number;
|
|
393
|
+
/**
|
|
394
|
+
* Cost from on-demand billing in dollars
|
|
395
|
+
*/
|
|
396
|
+
onDemandCost: number;
|
|
397
|
+
/**
|
|
398
|
+
* Map of plan ID to cost in dollars
|
|
399
|
+
*/
|
|
400
|
+
planCost?: {
|
|
401
|
+
[key: string]: number;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Map of subscription ID to cost in dollars
|
|
405
|
+
*/
|
|
406
|
+
subscriptionCost?: {
|
|
407
|
+
[key: string]: number;
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Summary of analytics across all time buckets, broken down by platform and region
|
|
414
|
+
*/
|
|
415
|
+
interface Summary {
|
|
416
|
+
/**
|
|
417
|
+
* Map of region to analytics stats for Android
|
|
418
|
+
*/
|
|
419
|
+
android: {
|
|
420
|
+
[key: string]: Summary.Android;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Map of region to analytics stats for iOS
|
|
424
|
+
*/
|
|
425
|
+
ios: {
|
|
426
|
+
[key: string]: Summary.Ios;
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* Map of region to analytics stats for Xcode
|
|
430
|
+
*/
|
|
431
|
+
xcode: {
|
|
432
|
+
[key: string]: Summary.Xcode;
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
namespace Summary {
|
|
436
|
+
/**
|
|
437
|
+
* Complete analytics for a specific region including billing breakdown
|
|
438
|
+
*/
|
|
439
|
+
interface Android {
|
|
440
|
+
/**
|
|
441
|
+
* Average instance duration in minutes
|
|
442
|
+
*/
|
|
443
|
+
avgDurationMinutes: number;
|
|
444
|
+
/**
|
|
445
|
+
* Billed minutes with platform multiplier applied
|
|
446
|
+
*/
|
|
447
|
+
billedMinutes: number;
|
|
448
|
+
/**
|
|
449
|
+
* Total cost in dollars
|
|
450
|
+
*/
|
|
451
|
+
cost: number;
|
|
452
|
+
/**
|
|
453
|
+
* Number of unique instances
|
|
454
|
+
*/
|
|
455
|
+
count: number;
|
|
456
|
+
/**
|
|
457
|
+
* Minutes billed to credits
|
|
458
|
+
*/
|
|
459
|
+
creditsBilledMinutes: number;
|
|
460
|
+
/**
|
|
461
|
+
* Cost from credits (always 0)
|
|
462
|
+
*/
|
|
463
|
+
creditsCost: number;
|
|
464
|
+
/**
|
|
465
|
+
* Minutes billed on-demand
|
|
466
|
+
*/
|
|
467
|
+
onDemandBilledMinutes: number;
|
|
468
|
+
/**
|
|
469
|
+
* Cost from on-demand billing in dollars
|
|
470
|
+
*/
|
|
471
|
+
onDemandCost: number;
|
|
472
|
+
/**
|
|
473
|
+
* Actual runtime minutes before platform multiplier
|
|
474
|
+
*/
|
|
475
|
+
runtimeMinutes: number;
|
|
476
|
+
/**
|
|
477
|
+
* Map of subscription ID to billed minutes
|
|
478
|
+
*/
|
|
479
|
+
subscriptionBilledMinutes?: {
|
|
480
|
+
[key: string]: number;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Map of subscription ID to cost in dollars
|
|
484
|
+
*/
|
|
485
|
+
subscriptionCost?: {
|
|
486
|
+
[key: string]: number;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Complete analytics for a specific region including billing breakdown
|
|
491
|
+
*/
|
|
492
|
+
interface Ios {
|
|
493
|
+
/**
|
|
494
|
+
* Average instance duration in minutes
|
|
495
|
+
*/
|
|
496
|
+
avgDurationMinutes: number;
|
|
497
|
+
/**
|
|
498
|
+
* Billed minutes with platform multiplier applied
|
|
499
|
+
*/
|
|
500
|
+
billedMinutes: number;
|
|
501
|
+
/**
|
|
502
|
+
* Total cost in dollars
|
|
503
|
+
*/
|
|
504
|
+
cost: number;
|
|
505
|
+
/**
|
|
506
|
+
* Number of unique instances
|
|
507
|
+
*/
|
|
508
|
+
count: number;
|
|
509
|
+
/**
|
|
510
|
+
* Minutes billed to credits
|
|
511
|
+
*/
|
|
512
|
+
creditsBilledMinutes: number;
|
|
513
|
+
/**
|
|
514
|
+
* Cost from credits (always 0)
|
|
515
|
+
*/
|
|
516
|
+
creditsCost: number;
|
|
517
|
+
/**
|
|
518
|
+
* Minutes billed on-demand
|
|
519
|
+
*/
|
|
520
|
+
onDemandBilledMinutes: number;
|
|
521
|
+
/**
|
|
522
|
+
* Cost from on-demand billing in dollars
|
|
523
|
+
*/
|
|
524
|
+
onDemandCost: number;
|
|
525
|
+
/**
|
|
526
|
+
* Actual runtime minutes before platform multiplier
|
|
527
|
+
*/
|
|
528
|
+
runtimeMinutes: number;
|
|
529
|
+
/**
|
|
530
|
+
* Map of subscription ID to billed minutes
|
|
531
|
+
*/
|
|
532
|
+
subscriptionBilledMinutes?: {
|
|
533
|
+
[key: string]: number;
|
|
534
|
+
};
|
|
535
|
+
/**
|
|
536
|
+
* Map of subscription ID to cost in dollars
|
|
537
|
+
*/
|
|
538
|
+
subscriptionCost?: {
|
|
539
|
+
[key: string]: number;
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Complete analytics for a specific region including billing breakdown
|
|
544
|
+
*/
|
|
545
|
+
interface Xcode {
|
|
546
|
+
/**
|
|
547
|
+
* Average instance duration in minutes
|
|
548
|
+
*/
|
|
549
|
+
avgDurationMinutes: number;
|
|
550
|
+
/**
|
|
551
|
+
* Billed minutes with platform multiplier applied
|
|
552
|
+
*/
|
|
553
|
+
billedMinutes: number;
|
|
554
|
+
/**
|
|
555
|
+
* Total cost in dollars
|
|
556
|
+
*/
|
|
557
|
+
cost: number;
|
|
558
|
+
/**
|
|
559
|
+
* Number of unique instances
|
|
560
|
+
*/
|
|
561
|
+
count: number;
|
|
562
|
+
/**
|
|
563
|
+
* Minutes billed to credits
|
|
564
|
+
*/
|
|
565
|
+
creditsBilledMinutes: number;
|
|
566
|
+
/**
|
|
567
|
+
* Cost from credits (always 0)
|
|
568
|
+
*/
|
|
569
|
+
creditsCost: number;
|
|
570
|
+
/**
|
|
571
|
+
* Minutes billed on-demand
|
|
572
|
+
*/
|
|
573
|
+
onDemandBilledMinutes: number;
|
|
574
|
+
/**
|
|
575
|
+
* Cost from on-demand billing in dollars
|
|
576
|
+
*/
|
|
577
|
+
onDemandCost: number;
|
|
578
|
+
/**
|
|
579
|
+
* Actual runtime minutes before platform multiplier
|
|
580
|
+
*/
|
|
581
|
+
runtimeMinutes: number;
|
|
582
|
+
/**
|
|
583
|
+
* Map of subscription ID to billed minutes
|
|
584
|
+
*/
|
|
585
|
+
subscriptionBilledMinutes?: {
|
|
586
|
+
[key: string]: number;
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* Map of subscription ID to cost in dollars
|
|
590
|
+
*/
|
|
591
|
+
subscriptionCost?: {
|
|
592
|
+
[key: string]: number;
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
export interface AnalyticsGetParams {
|
|
598
|
+
/**
|
|
599
|
+
* Start of the time range (inclusive, RFC3339)
|
|
600
|
+
*/
|
|
601
|
+
from: string;
|
|
602
|
+
/**
|
|
603
|
+
* End of the time range (exclusive, RFC3339)
|
|
604
|
+
*/
|
|
605
|
+
to: string;
|
|
606
|
+
/**
|
|
607
|
+
* Time bucket granularity for the analytics series
|
|
608
|
+
*/
|
|
609
|
+
bucket?: 'hour' | 'day' | 'week' | 'minute';
|
|
610
|
+
/**
|
|
611
|
+
* Label selector to filter instances (e.g., "env=prod,team=backend")
|
|
612
|
+
*/
|
|
613
|
+
labels?: string;
|
|
614
|
+
/**
|
|
615
|
+
* Optional region filter
|
|
616
|
+
*/
|
|
617
|
+
region?: string;
|
|
618
|
+
/**
|
|
619
|
+
* Optional IANA timezone used for time bucket grouping. Defaults to
|
|
620
|
+
* America/Los_Angeles when omitted.
|
|
621
|
+
*/
|
|
622
|
+
timezone?: string;
|
|
623
|
+
}
|
|
624
|
+
export interface AnalyticsGetInstancesParams {
|
|
625
|
+
/**
|
|
626
|
+
* Start of the time range (inclusive, RFC3339)
|
|
627
|
+
*/
|
|
628
|
+
from: string;
|
|
629
|
+
/**
|
|
630
|
+
* End of the time range (exclusive, RFC3339)
|
|
631
|
+
*/
|
|
632
|
+
to: string;
|
|
633
|
+
/**
|
|
634
|
+
* Label selector to filter instances (e.g., "env=prod,team=backend")
|
|
635
|
+
*/
|
|
636
|
+
labels?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Optional region filter
|
|
639
|
+
*/
|
|
640
|
+
region?: string;
|
|
641
|
+
/**
|
|
642
|
+
* Optional IANA timezone used for minute bucket grouping. Defaults to
|
|
643
|
+
* America/Los_Angeles when omitted.
|
|
644
|
+
*/
|
|
645
|
+
timezone?: string;
|
|
646
|
+
}
|
|
647
|
+
export declare namespace Analytics {
|
|
648
|
+
export { type AnalyticsInstancesResponse as AnalyticsInstancesResponse, type AnalyticsResponse as AnalyticsResponse, type AnalyticsGetParams as AnalyticsGetParams, type AnalyticsGetInstancesParams as AnalyticsGetInstancesParams, };
|
|
649
|
+
}
|
|
650
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIvF;;;OAGG;IACH,YAAY,CACV,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,KAAK,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAEjD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,MAAM;QACrB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAElC;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,MAAM,CAAC;QACtB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YA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CAAC;SAC9C;KACF;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IAE5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Analytics = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Analytics extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get analytics for the authenticated organization
|
|
9
|
+
*/
|
|
10
|
+
get(query, options) {
|
|
11
|
+
return this._client.get('/v1/analytics', { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns per-instance analytics grouped by minute bucket for detailed chart
|
|
15
|
+
* views.
|
|
16
|
+
*/
|
|
17
|
+
getInstances(query, options) {
|
|
18
|
+
return this._client.get('/v1/analytics/instances', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Analytics = Analytics;
|
|
22
|
+
//# sourceMappingURL=analytics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/resources/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,GAAG,CAAC,KAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACH,YAAY,CACV,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAlBD,8BAkBC"}
|