sandbox0 0.7.7 → 0.7.8

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.
Files changed (109) hide show
  1. package/README.md +28 -0
  2. package/dist/apispec/src/apis/ObservabilityApi.d.ts +25 -14
  3. package/dist/apispec/src/apis/ObservabilityApi.d.ts.map +1 -1
  4. package/dist/apispec/src/apis/ObservabilityApi.js +52 -23
  5. package/dist/apispec/src/apis/index.d.ts +0 -1
  6. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  7. package/dist/apispec/src/apis/index.js +0 -1
  8. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts +0 -1
  9. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts.map +1 -1
  10. package/dist/apispec/src/models/SandboxObservabilityWatchLine.js +0 -1
  11. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts +1 -2
  12. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts.map +1 -1
  13. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.js +0 -7
  14. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts +60 -0
  15. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts.map +1 -0
  16. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.js +62 -0
  17. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts +46 -0
  18. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts.map +1 -0
  19. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.js +48 -0
  20. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts +27 -0
  21. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts.map +1 -0
  22. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.js +44 -0
  23. package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts +61 -0
  24. package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts.map +1 -0
  25. package/dist/apispec/src/models/SandboxRuntimeMetricGap.js +59 -0
  26. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts +29 -0
  27. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts.map +1 -0
  28. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.js +46 -0
  29. package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts +26 -0
  30. package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts.map +1 -0
  31. package/dist/apispec/src/models/SandboxRuntimeMetricKind.js +43 -0
  32. package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts +38 -0
  33. package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts.map +1 -0
  34. package/dist/apispec/src/models/SandboxRuntimeMetricName.js +55 -0
  35. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts +39 -0
  36. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts.map +1 -0
  37. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.js +47 -0
  38. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts +34 -0
  39. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts.map +1 -0
  40. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.js +44 -0
  41. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts +70 -0
  42. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts.map +1 -0
  43. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.js +66 -0
  44. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts +30 -0
  45. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts.map +1 -0
  46. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.js +47 -0
  47. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts +31 -0
  48. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts.map +1 -0
  49. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.js +48 -0
  50. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts +34 -0
  51. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
  52. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.js +44 -0
  53. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts +72 -0
  54. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts.map +1 -0
  55. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.js +70 -0
  56. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts +40 -0
  57. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
  58. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.js +46 -0
  59. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts +40 -0
  60. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts.map +1 -0
  61. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.js +46 -0
  62. package/dist/apispec/src/models/index.d.ts +16 -3
  63. package/dist/apispec/src/models/index.d.ts.map +1 -1
  64. package/dist/apispec/src/models/index.js +16 -3
  65. package/dist/client.d.ts +3 -6
  66. package/dist/client.d.ts.map +1 -1
  67. package/dist/client.js +10 -26
  68. package/dist/index.d.ts +24 -0
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +3 -0
  71. package/dist/models.d.ts +16 -11
  72. package/dist/models.d.ts.map +1 -1
  73. package/dist/sandbox_observability.d.ts +3 -5
  74. package/dist/sandbox_observability.d.ts.map +1 -1
  75. package/dist/sandbox_observability.js +4 -10
  76. package/package.json +1 -1
  77. package/dist/apispec/src/apis/AuditApi.d.ts +0 -40
  78. package/dist/apispec/src/apis/AuditApi.d.ts.map +0 -1
  79. package/dist/apispec/src/apis/AuditApi.js +0 -79
  80. package/dist/apispec/src/models/ContextStatsResponse.d.ts +0 -64
  81. package/dist/apispec/src/models/ContextStatsResponse.d.ts.map +0 -1
  82. package/dist/apispec/src/models/ContextStatsResponse.js +0 -52
  83. package/dist/apispec/src/models/LifecyclePolicy.d.ts +0 -52
  84. package/dist/apispec/src/models/LifecyclePolicy.d.ts.map +0 -1
  85. package/dist/apispec/src/models/LifecyclePolicy.js +0 -48
  86. package/dist/apispec/src/models/PreStopHook.d.ts +0 -39
  87. package/dist/apispec/src/models/PreStopHook.d.ts.map +0 -1
  88. package/dist/apispec/src/models/PreStopHook.js +0 -43
  89. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts +0 -33
  90. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts.map +0 -1
  91. package/dist/apispec/src/models/PutTeamQuotaRequest.js +0 -43
  92. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts +0 -101
  93. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts.map +0 -1
  94. package/dist/apispec/src/models/SandboxObservabilityMetricSample.js +0 -81
  95. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts +0 -46
  96. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts.map +0 -1
  97. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.js +0 -48
  98. package/dist/apispec/src/models/SandboxProbeSet.d.ts +0 -46
  99. package/dist/apispec/src/models/SandboxProbeSet.d.ts.map +0 -1
  100. package/dist/apispec/src/models/SandboxProbeSet.js +0 -46
  101. package/dist/apispec/src/models/SandboxProbeSpec.d.ts +0 -66
  102. package/dist/apispec/src/models/SandboxProbeSpec.d.ts.map +0 -1
  103. package/dist/apispec/src/models/SandboxProbeSpec.js +0 -54
  104. package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts +0 -40
  105. package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts.map +0 -1
  106. package/dist/apispec/src/models/SuccessContextStatsResponse.js +0 -46
  107. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts +0 -40
  108. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts.map +0 -1
  109. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.js +0 -46
package/README.md CHANGED
@@ -104,6 +104,34 @@ console.log(resumed.status, resumed.runtimeGeneration);
104
104
  a wait stops polling locally; it does not undo a pause or resume already accepted
105
105
  by Sandbox0.
106
106
 
107
+ ## Runtime Metrics
108
+
109
+ `getMetrics()` returns bounded, chart-ready sandbox metrics. Each series is split
110
+ into segments at runtime restarts and collector resets, so chart segments should
111
+ not be connected across those boundaries.
112
+
113
+ ```typescript
114
+ import { SandboxRuntimeMetricName } from "sandbox0";
115
+
116
+ const metrics = await sandbox.getMetrics({
117
+ startTime: new Date(Date.now() - 60 * 60 * 1000),
118
+ metrics: [
119
+ SandboxRuntimeMetricName.SandboxCpuUtilization,
120
+ SandboxRuntimeMetricName.SandboxMemoryUtilization,
121
+ ],
122
+ maxPoints: 240,
123
+ });
124
+
125
+ for (const series of metrics.series) {
126
+ for (const segment of series.segments) {
127
+ console.log(series.metric, segment.points);
128
+ }
129
+ }
130
+ ```
131
+
132
+ Use `sandbox.getMetricsCatalog()` to discover metric kinds, units, and
133
+ dimensions supported by the API.
134
+
107
135
  ## Links
108
136
 
109
137
  - [Documentation](https://sandbox0.ai/docs)
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { ObservabilityEventSource, SandboxObservabilityEventType, SandboxObservabilityLogStream, SandboxObservabilityOutcome, SuccessSandboxObservabilityEventsResponse, SuccessSandboxObservabilityLogsResponse, SuccessSandboxObservabilityMetricsResponse } from '../models/index.js';
13
+ import type { ObservabilityEventSource, SandboxObservabilityEventType, SandboxObservabilityLogStream, SandboxObservabilityOutcome, SandboxRuntimeMetricStatistic, SuccessSandboxObservabilityEventsResponse, SuccessSandboxObservabilityLogsResponse, SuccessSandboxRuntimeMetricsCatalogResponse, SuccessSandboxRuntimeMetricsResponse } from '../models/index.js';
14
14
  export interface ApiV1SandboxesIdObservabilityEventsGetRequest {
15
15
  id: string;
16
16
  startTime?: Date;
@@ -32,16 +32,17 @@ export interface ApiV1SandboxesIdObservabilityLogsGetRequest {
32
32
  contextId?: string;
33
33
  stream?: SandboxObservabilityLogStream;
34
34
  }
35
- export interface ApiV1SandboxesIdObservabilityMetricsGetRequest {
35
+ export interface GetSandboxRuntimeMetricsRequest {
36
36
  id: string;
37
37
  startTime?: Date;
38
38
  endTime?: Date;
39
- limit?: number;
40
- cursor?: string;
41
- watch?: boolean;
42
- contextId?: string;
43
- name?: Array<string>;
44
- names?: string;
39
+ metrics?: string;
40
+ stepSeconds?: number;
41
+ statistic?: SandboxRuntimeMetricStatistic;
42
+ maxPoints?: number;
43
+ }
44
+ export interface GetSandboxRuntimeMetricsCatalogRequest {
45
+ id: string;
45
46
  }
46
47
  /**
47
48
  *
@@ -68,14 +69,24 @@ export declare class ObservabilityApi extends runtime.BaseAPI {
68
69
  */
69
70
  apiV1SandboxesIdObservabilityLogsGet(requestParameters: ApiV1SandboxesIdObservabilityLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxObservabilityLogsResponse>;
70
71
  /**
71
- * Queries the asynchronous per-sandbox metric sample projection. This endpoint is separate from platform service metrics and metering usage truth.
72
- * Query historical sandbox metric samples
72
+ * Returns bounded, downsampled sandbox-wide runtime series. When timestamps are omitted, the query covers the hour ending now. The maximum range is 30 days. Counter rates never cross a runtime reset boundary. Missing data is reported as gaps and is never synthesized as zero. This endpoint is separate from platform service metrics and metering usage truth.
73
+ * Query chart-ready sandbox runtime metrics
74
+ */
75
+ getSandboxRuntimeMetricsRaw(requestParameters: GetSandboxRuntimeMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRuntimeMetricsResponse>>;
76
+ /**
77
+ * Returns bounded, downsampled sandbox-wide runtime series. When timestamps are omitted, the query covers the hour ending now. The maximum range is 30 days. Counter rates never cross a runtime reset boundary. Missing data is reported as gaps and is never synthesized as zero. This endpoint is separate from platform service metrics and metering usage truth.
78
+ * Query chart-ready sandbox runtime metrics
79
+ */
80
+ getSandboxRuntimeMetrics(requestParameters: GetSandboxRuntimeMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRuntimeMetricsResponse>;
81
+ /**
82
+ * Returns the bounded canonical metric names, kinds, units, and dimensions supported by the runtime metrics API.
83
+ * Get the sandbox runtime metric catalog
73
84
  */
74
- apiV1SandboxesIdObservabilityMetricsGetRaw(requestParameters: ApiV1SandboxesIdObservabilityMetricsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxObservabilityMetricsResponse>>;
85
+ getSandboxRuntimeMetricsCatalogRaw(requestParameters: GetSandboxRuntimeMetricsCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRuntimeMetricsCatalogResponse>>;
75
86
  /**
76
- * Queries the asynchronous per-sandbox metric sample projection. This endpoint is separate from platform service metrics and metering usage truth.
77
- * Query historical sandbox metric samples
87
+ * Returns the bounded canonical metric names, kinds, units, and dimensions supported by the runtime metrics API.
88
+ * Get the sandbox runtime metric catalog
78
89
  */
79
- apiV1SandboxesIdObservabilityMetricsGet(requestParameters: ApiV1SandboxesIdObservabilityMetricsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxObservabilityMetricsResponse>;
90
+ getSandboxRuntimeMetricsCatalog(requestParameters: GetSandboxRuntimeMetricsCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRuntimeMetricsCatalogResponse>;
80
91
  }
81
92
  //# sourceMappingURL=ObservabilityApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObservabilityApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src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AC,iBAAiB,EAAE,sCAAsC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,2CAA2C,CAAC;CAKrN"}
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { SuccessSandboxObservabilityEventsResponseFromJSON, SuccessSandboxObservabilityLogsResponseFromJSON, SuccessSandboxObservabilityMetricsResponseFromJSON, } from '../models/index.js';
15
+ import { SuccessSandboxObservabilityEventsResponseFromJSON, SuccessSandboxObservabilityLogsResponseFromJSON, SuccessSandboxRuntimeMetricsCatalogResponseFromJSON, SuccessSandboxRuntimeMetricsResponseFromJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -133,12 +133,12 @@ export class ObservabilityApi extends runtime.BaseAPI {
133
133
  return await response.value();
134
134
  }
135
135
  /**
136
- * Queries the asynchronous per-sandbox metric sample projection. This endpoint is separate from platform service metrics and metering usage truth.
137
- * Query historical sandbox metric samples
136
+ * Returns bounded, downsampled sandbox-wide runtime series. When timestamps are omitted, the query covers the hour ending now. The maximum range is 30 days. Counter rates never cross a runtime reset boundary. Missing data is reported as gaps and is never synthesized as zero. This endpoint is separate from platform service metrics and metering usage truth.
137
+ * Query chart-ready sandbox runtime metrics
138
138
  */
139
- async apiV1SandboxesIdObservabilityMetricsGetRaw(requestParameters, initOverrides) {
139
+ async getSandboxRuntimeMetricsRaw(requestParameters, initOverrides) {
140
140
  if (requestParameters['id'] == null) {
141
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdObservabilityMetricsGet().');
141
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSandboxRuntimeMetrics().');
142
142
  }
143
143
  const queryParameters = {};
144
144
  if (requestParameters['startTime'] != null) {
@@ -147,24 +147,53 @@ export class ObservabilityApi extends runtime.BaseAPI {
147
147
  if (requestParameters['endTime'] != null) {
148
148
  queryParameters['end_time'] = requestParameters['endTime'].toISOString();
149
149
  }
150
- if (requestParameters['limit'] != null) {
151
- queryParameters['limit'] = requestParameters['limit'];
150
+ if (requestParameters['metrics'] != null) {
151
+ queryParameters['metrics'] = requestParameters['metrics'];
152
152
  }
153
- if (requestParameters['cursor'] != null) {
154
- queryParameters['cursor'] = requestParameters['cursor'];
153
+ if (requestParameters['stepSeconds'] != null) {
154
+ queryParameters['step_seconds'] = requestParameters['stepSeconds'];
155
155
  }
156
- if (requestParameters['watch'] != null) {
157
- queryParameters['watch'] = requestParameters['watch'];
156
+ if (requestParameters['statistic'] != null) {
157
+ queryParameters['statistic'] = requestParameters['statistic'];
158
158
  }
159
- if (requestParameters['contextId'] != null) {
160
- queryParameters['context_id'] = requestParameters['contextId'];
159
+ if (requestParameters['maxPoints'] != null) {
160
+ queryParameters['max_points'] = requestParameters['maxPoints'];
161
161
  }
162
- if (requestParameters['name'] != null) {
163
- queryParameters['name'] = requestParameters['name'];
162
+ const headerParameters = {};
163
+ if (this.configuration && this.configuration.accessToken) {
164
+ const token = this.configuration.accessToken;
165
+ const tokenString = await token("bearerAuth", []);
166
+ if (tokenString) {
167
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
168
+ }
164
169
  }
165
- if (requestParameters['names'] != null) {
166
- queryParameters['names'] = requestParameters['names'];
170
+ let urlPath = `/api/v1/sandboxes/{id}/metrics`;
171
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
172
+ const response = await this.request({
173
+ path: urlPath,
174
+ method: 'GET',
175
+ headers: headerParameters,
176
+ query: queryParameters,
177
+ }, initOverrides);
178
+ return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRuntimeMetricsResponseFromJSON(jsonValue));
179
+ }
180
+ /**
181
+ * Returns bounded, downsampled sandbox-wide runtime series. When timestamps are omitted, the query covers the hour ending now. The maximum range is 30 days. Counter rates never cross a runtime reset boundary. Missing data is reported as gaps and is never synthesized as zero. This endpoint is separate from platform service metrics and metering usage truth.
182
+ * Query chart-ready sandbox runtime metrics
183
+ */
184
+ async getSandboxRuntimeMetrics(requestParameters, initOverrides) {
185
+ const response = await this.getSandboxRuntimeMetricsRaw(requestParameters, initOverrides);
186
+ return await response.value();
187
+ }
188
+ /**
189
+ * Returns the bounded canonical metric names, kinds, units, and dimensions supported by the runtime metrics API.
190
+ * Get the sandbox runtime metric catalog
191
+ */
192
+ async getSandboxRuntimeMetricsCatalogRaw(requestParameters, initOverrides) {
193
+ if (requestParameters['id'] == null) {
194
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getSandboxRuntimeMetricsCatalog().');
167
195
  }
196
+ const queryParameters = {};
168
197
  const headerParameters = {};
169
198
  if (this.configuration && this.configuration.accessToken) {
170
199
  const token = this.configuration.accessToken;
@@ -173,7 +202,7 @@ export class ObservabilityApi extends runtime.BaseAPI {
173
202
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
174
203
  }
175
204
  }
176
- let urlPath = `/api/v1/sandboxes/{id}/observability/metrics`;
205
+ let urlPath = `/api/v1/sandboxes/{id}/metrics/catalog`;
177
206
  urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
178
207
  const response = await this.request({
179
208
  path: urlPath,
@@ -181,14 +210,14 @@ export class ObservabilityApi extends runtime.BaseAPI {
181
210
  headers: headerParameters,
182
211
  query: queryParameters,
183
212
  }, initOverrides);
184
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxObservabilityMetricsResponseFromJSON(jsonValue));
213
+ return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRuntimeMetricsCatalogResponseFromJSON(jsonValue));
185
214
  }
186
215
  /**
187
- * Queries the asynchronous per-sandbox metric sample projection. This endpoint is separate from platform service metrics and metering usage truth.
188
- * Query historical sandbox metric samples
216
+ * Returns the bounded canonical metric names, kinds, units, and dimensions supported by the runtime metrics API.
217
+ * Get the sandbox runtime metric catalog
189
218
  */
190
- async apiV1SandboxesIdObservabilityMetricsGet(requestParameters, initOverrides) {
191
- const response = await this.apiV1SandboxesIdObservabilityMetricsGetRaw(requestParameters, initOverrides);
219
+ async getSandboxRuntimeMetricsCatalog(requestParameters, initOverrides) {
220
+ const response = await this.getSandboxRuntimeMetricsCatalogRaw(requestParameters, initOverrides);
192
221
  return await response.value();
193
222
  }
194
223
  }
@@ -1,5 +1,4 @@
1
1
  export * from './ApiKeysApi.js';
2
- export * from './AuditApi.js';
3
2
  export * from './AuthApi.js';
4
3
  export * from './ContextsApi.js';
5
4
  export * from './CredentialSourcesApi.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ApiKeysApi.js';
4
- export * from './AuditApi.js';
5
4
  export * from './AuthApi.js';
6
5
  export * from './ContextsApi.js';
7
6
  export * from './CredentialSourcesApi.js';
@@ -59,7 +59,6 @@ export interface SandboxObservabilityWatchLine {
59
59
  export declare const SandboxObservabilityWatchLineTypeEnum: {
60
60
  readonly Event: "event";
61
61
  readonly Log: "log";
62
- readonly MetricSample: "metric_sample";
63
62
  readonly Watermark: "watermark";
64
63
  readonly Heartbeat: "heartbeat";
65
64
  readonly Error: "error";
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxObservabilityWatchLine.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityWatchLine.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAQ7F;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,qCAAqC,CAAC;IAC5C;;;;OAIG;IACH,IAAI,CAAC,EAAE,iCAAiC,CAAC;IACzC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;CAOxC,CAAC;AACX,MAAM,MAAM,qCAAqC,GAAG,OAAO,qCAAqC,CAAC,MAAM,OAAO,qCAAqC,CAAC,CAAC;AAGrJ;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAG7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAajI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchJ"}
1
+ {"version":3,"file":"SandboxObservabilityWatchLine.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityWatchLine.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAQ7F;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,qCAAqC,CAAC;IAC5C;;;;OAIG;IACH,IAAI,CAAC,EAAE,iCAAiC,CAAC;IACzC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;CAMxC,CAAC;AACX,MAAM,MAAM,qCAAqC,GAAG,OAAO,qCAAqC,CAAC,MAAM,OAAO,qCAAqC,CAAC,CAAC;AAGrJ;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAG7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAajI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchJ"}
@@ -18,7 +18,6 @@ import { SandboxObservabilityWatchLineDataFromJSON, SandboxObservabilityWatchLin
18
18
  export const SandboxObservabilityWatchLineTypeEnum = {
19
19
  Event: 'event',
20
20
  Log: 'log',
21
- MetricSample: 'metric_sample',
22
21
  Watermark: 'watermark',
23
22
  Heartbeat: 'heartbeat',
24
23
  Error: 'error'
@@ -11,13 +11,12 @@
11
11
  */
12
12
  import type { SandboxObservabilityEvent } from './SandboxObservabilityEvent.js';
13
13
  import type { SandboxObservabilityLogEntry } from './SandboxObservabilityLogEntry.js';
14
- import type { SandboxObservabilityMetricSample } from './SandboxObservabilityMetricSample.js';
15
14
  /**
16
15
  * @type SandboxObservabilityWatchLineData
17
16
  *
18
17
  * @export
19
18
  */
20
- export type SandboxObservabilityWatchLineData = SandboxObservabilityEvent | SandboxObservabilityLogEntry | SandboxObservabilityMetricSample;
19
+ export type SandboxObservabilityWatchLineData = SandboxObservabilityEvent | SandboxObservabilityLogEntry;
21
20
  export declare function SandboxObservabilityWatchLineDataFromJSON(json: any): SandboxObservabilityWatchLineData;
22
21
  export declare function SandboxObservabilityWatchLineDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxObservabilityWatchLineData;
23
22
  export declare function SandboxObservabilityWatchLineDataToJSON(json: any): any;
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxObservabilityWatchLineData.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityWatchLineData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAO7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAOnF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAQ3F;;;;GAIG;AACH,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,GAAG,4BAA4B,GAAG,gCAAgC,CAAC;AAE5I,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAiBzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAEtE;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBxJ"}
1
+ {"version":3,"file":"SandboxObservabilityWatchLineData.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityWatchLineData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAO7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAQnF;;;;GAIG;AACH,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,GAAG,4BAA4B,CAAC;AAEzG,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAczI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAEtE;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxJ"}
@@ -13,7 +13,6 @@
13
13
  */
14
14
  import { instanceOfSandboxObservabilityEvent, SandboxObservabilityEventFromJSONTyped, SandboxObservabilityEventToJSON, } from './SandboxObservabilityEvent.js';
15
15
  import { instanceOfSandboxObservabilityLogEntry, SandboxObservabilityLogEntryFromJSONTyped, SandboxObservabilityLogEntryToJSON, } from './SandboxObservabilityLogEntry.js';
16
- import { instanceOfSandboxObservabilityMetricSample, SandboxObservabilityMetricSampleFromJSONTyped, SandboxObservabilityMetricSampleToJSON, } from './SandboxObservabilityMetricSample.js';
17
16
  export function SandboxObservabilityWatchLineDataFromJSON(json) {
18
17
  return SandboxObservabilityWatchLineDataFromJSONTyped(json, false);
19
18
  }
@@ -30,9 +29,6 @@ export function SandboxObservabilityWatchLineDataFromJSONTyped(json, ignoreDiscr
30
29
  if (instanceOfSandboxObservabilityLogEntry(json)) {
31
30
  return SandboxObservabilityLogEntryFromJSONTyped(json, true);
32
31
  }
33
- if (instanceOfSandboxObservabilityMetricSample(json)) {
34
- return SandboxObservabilityMetricSampleFromJSONTyped(json, true);
35
- }
36
32
  return {};
37
33
  }
38
34
  export function SandboxObservabilityWatchLineDataToJSON(json) {
@@ -51,8 +47,5 @@ export function SandboxObservabilityWatchLineDataToJSONTyped(value, ignoreDiscri
51
47
  if (instanceOfSandboxObservabilityLogEntry(value)) {
52
48
  return SandboxObservabilityLogEntryToJSON(value);
53
49
  }
54
- if (instanceOfSandboxObservabilityMetricSample(value)) {
55
- return SandboxObservabilityMetricSampleToJSON(value);
56
- }
57
50
  return {};
58
51
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SandboxRuntimeMetricName } from './SandboxRuntimeMetricName.js';
13
+ import type { SandboxRuntimeMetricUnit } from './SandboxRuntimeMetricUnit.js';
14
+ import type { SandboxRuntimeMetricKind } from './SandboxRuntimeMetricKind.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface SandboxRuntimeMetricDescriptor
19
+ */
20
+ export interface SandboxRuntimeMetricDescriptor {
21
+ /**
22
+ *
23
+ * @type {SandboxRuntimeMetricName}
24
+ * @memberof SandboxRuntimeMetricDescriptor
25
+ */
26
+ name: SandboxRuntimeMetricName;
27
+ /**
28
+ *
29
+ * @type {SandboxRuntimeMetricKind}
30
+ * @memberof SandboxRuntimeMetricDescriptor
31
+ */
32
+ kind: SandboxRuntimeMetricKind;
33
+ /**
34
+ *
35
+ * @type {SandboxRuntimeMetricUnit}
36
+ * @memberof SandboxRuntimeMetricDescriptor
37
+ */
38
+ unit: SandboxRuntimeMetricUnit;
39
+ /**
40
+ *
41
+ * @type {Array<string>}
42
+ * @memberof SandboxRuntimeMetricDescriptor
43
+ */
44
+ dimensions: Array<string>;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof SandboxRuntimeMetricDescriptor
49
+ */
50
+ description: string;
51
+ }
52
+ /**
53
+ * Check if a given object implements the SandboxRuntimeMetricDescriptor interface.
54
+ */
55
+ export declare function instanceOfSandboxRuntimeMetricDescriptor(value: object): value is SandboxRuntimeMetricDescriptor;
56
+ export declare function SandboxRuntimeMetricDescriptorFromJSON(json: any): SandboxRuntimeMetricDescriptor;
57
+ export declare function SandboxRuntimeMetricDescriptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricDescriptor;
58
+ export declare function SandboxRuntimeMetricDescriptorToJSON(json: any): SandboxRuntimeMetricDescriptor;
59
+ export declare function SandboxRuntimeMetricDescriptorToJSONTyped(value?: SandboxRuntimeMetricDescriptor | null, ignoreDiscriminator?: boolean): any;
60
+ //# sourceMappingURL=SandboxRuntimeMetricDescriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricDescriptor.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricDescriptor.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAID;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAO/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAYnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalJ"}
@@ -0,0 +1,62 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SandboxRuntimeMetricNameFromJSON, SandboxRuntimeMetricNameToJSON, } from './SandboxRuntimeMetricName.js';
15
+ import { SandboxRuntimeMetricUnitFromJSON, SandboxRuntimeMetricUnitToJSON, } from './SandboxRuntimeMetricUnit.js';
16
+ import { SandboxRuntimeMetricKindFromJSON, SandboxRuntimeMetricKindToJSON, } from './SandboxRuntimeMetricKind.js';
17
+ /**
18
+ * Check if a given object implements the SandboxRuntimeMetricDescriptor interface.
19
+ */
20
+ export function instanceOfSandboxRuntimeMetricDescriptor(value) {
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('kind' in value) || value['kind'] === undefined)
24
+ return false;
25
+ if (!('unit' in value) || value['unit'] === undefined)
26
+ return false;
27
+ if (!('dimensions' in value) || value['dimensions'] === undefined)
28
+ return false;
29
+ if (!('description' in value) || value['description'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function SandboxRuntimeMetricDescriptorFromJSON(json) {
34
+ return SandboxRuntimeMetricDescriptorFromJSONTyped(json, false);
35
+ }
36
+ export function SandboxRuntimeMetricDescriptorFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'name': SandboxRuntimeMetricNameFromJSON(json['name']),
42
+ 'kind': SandboxRuntimeMetricKindFromJSON(json['kind']),
43
+ 'unit': SandboxRuntimeMetricUnitFromJSON(json['unit']),
44
+ 'dimensions': json['dimensions'],
45
+ 'description': json['description'],
46
+ };
47
+ }
48
+ export function SandboxRuntimeMetricDescriptorToJSON(json) {
49
+ return SandboxRuntimeMetricDescriptorToJSONTyped(json, false);
50
+ }
51
+ export function SandboxRuntimeMetricDescriptorToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'name': SandboxRuntimeMetricNameToJSON(value['name']),
57
+ 'kind': SandboxRuntimeMetricKindToJSON(value['kind']),
58
+ 'unit': SandboxRuntimeMetricUnitToJSON(value['unit']),
59
+ 'dimensions': value['dimensions'],
60
+ 'description': value['description'],
61
+ };
62
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SandboxRuntimeMetricFreshnessStatus } from './SandboxRuntimeMetricFreshnessStatus.js';
13
+ /**
14
+ * Freshness is measured relative to the requested end_time, including for historical queries.
15
+ * @export
16
+ * @interface SandboxRuntimeMetricFreshness
17
+ */
18
+ export interface SandboxRuntimeMetricFreshness {
19
+ /**
20
+ *
21
+ * @type {Date}
22
+ * @memberof SandboxRuntimeMetricFreshness
23
+ */
24
+ newestObservedAt?: Date;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof SandboxRuntimeMetricFreshness
29
+ */
30
+ ageSeconds?: number;
31
+ /**
32
+ *
33
+ * @type {SandboxRuntimeMetricFreshnessStatus}
34
+ * @memberof SandboxRuntimeMetricFreshness
35
+ */
36
+ status: SandboxRuntimeMetricFreshnessStatus;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SandboxRuntimeMetricFreshness interface.
40
+ */
41
+ export declare function instanceOfSandboxRuntimeMetricFreshness(value: object): value is SandboxRuntimeMetricFreshness;
42
+ export declare function SandboxRuntimeMetricFreshnessFromJSON(json: any): SandboxRuntimeMetricFreshness;
43
+ export declare function SandboxRuntimeMetricFreshnessFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricFreshness;
44
+ export declare function SandboxRuntimeMetricFreshnessToJSON(json: any): SandboxRuntimeMetricFreshness;
45
+ export declare function SandboxRuntimeMetricFreshnessToJSONTyped(value?: SandboxRuntimeMetricFreshness | null, ignoreDiscriminator?: boolean): any;
46
+ //# sourceMappingURL=SandboxRuntimeMetricFreshness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricFreshness.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricFreshness.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAQjG;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,mCAAmC,CAAC;CAC/C;AAID;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAG7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAUjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhJ"}
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SandboxRuntimeMetricFreshnessStatusFromJSON, SandboxRuntimeMetricFreshnessStatusToJSON, } from './SandboxRuntimeMetricFreshnessStatus.js';
15
+ /**
16
+ * Check if a given object implements the SandboxRuntimeMetricFreshness interface.
17
+ */
18
+ export function instanceOfSandboxRuntimeMetricFreshness(value) {
19
+ if (!('status' in value) || value['status'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SandboxRuntimeMetricFreshnessFromJSON(json) {
24
+ return SandboxRuntimeMetricFreshnessFromJSONTyped(json, false);
25
+ }
26
+ export function SandboxRuntimeMetricFreshnessFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'newestObservedAt': json['newest_observed_at'] == null ? undefined : (new Date(json['newest_observed_at'])),
32
+ 'ageSeconds': json['age_seconds'] == null ? undefined : json['age_seconds'],
33
+ 'status': SandboxRuntimeMetricFreshnessStatusFromJSON(json['status']),
34
+ };
35
+ }
36
+ export function SandboxRuntimeMetricFreshnessToJSON(json) {
37
+ return SandboxRuntimeMetricFreshnessToJSONTyped(json, false);
38
+ }
39
+ export function SandboxRuntimeMetricFreshnessToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'newest_observed_at': value['newestObservedAt'] == null ? value['newestObservedAt'] : value['newestObservedAt'].toISOString(),
45
+ 'age_seconds': value['ageSeconds'],
46
+ 'status': SandboxRuntimeMetricFreshnessStatusToJSON(value['status']),
47
+ };
48
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const SandboxRuntimeMetricFreshnessStatus: {
17
+ readonly Fresh: "fresh";
18
+ readonly Stale: "stale";
19
+ readonly Missing: "missing";
20
+ };
21
+ export type SandboxRuntimeMetricFreshnessStatus = typeof SandboxRuntimeMetricFreshnessStatus[keyof typeof SandboxRuntimeMetricFreshnessStatus];
22
+ export declare function instanceOfSandboxRuntimeMetricFreshnessStatus(value: any): boolean;
23
+ export declare function SandboxRuntimeMetricFreshnessStatusFromJSON(json: any): SandboxRuntimeMetricFreshnessStatus;
24
+ export declare function SandboxRuntimeMetricFreshnessStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricFreshnessStatus;
25
+ export declare function SandboxRuntimeMetricFreshnessStatusToJSON(value?: SandboxRuntimeMetricFreshnessStatus | null): any;
26
+ export declare function SandboxRuntimeMetricFreshnessStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricFreshnessStatus;
27
+ //# sourceMappingURL=SandboxRuntimeMetricFreshnessStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricFreshnessStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,mCAAmC;;;;CAItC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,OAAO,mCAAmC,CAAC,CAAC;AAG/I,wBAAgB,6CAA6C,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASjF;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,GAAG,mCAAmC,CAE1G;AAED,wBAAgB,gDAAgD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mCAAmC,CAE7I;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,GAAG,CAEjH;AAED,wBAAgB,8CAA8C,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mCAAmC,CAE5I"}