sandbox0 0.7.6 → 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.
- package/README.md +47 -0
- package/dist/apispec/src/apis/ObservabilityApi.d.ts +27 -16
- package/dist/apispec/src/apis/ObservabilityApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/ObservabilityApi.js +54 -25
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts +6 -2
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxRootfsApi.js +6 -2
- package/dist/apispec/src/apis/index.d.ts +0 -1
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +0 -1
- package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.d.ts +2 -0
- package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts +6 -6
- package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeS3Config.js +6 -2
- package/dist/apispec/src/models/ForkSandboxRequest.d.ts +2 -0
- package/dist/apispec/src/models/ForkSandboxRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts +0 -1
- package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxObservabilityWatchLine.js +0 -1
- package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts +1 -2
- package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxObservabilityWatchLineData.js +0 -7
- package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts +60 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.js +62 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts +46 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.js +48 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts +27 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.js +44 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts +61 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricGap.js +59 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts +29 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.js +46 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts +26 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricKind.js +43 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts +38 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricName.js +55 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts +39 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricPoint.js +47 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts +34 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricSegment.js +44 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts +70 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricSeries.js +66 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts +30 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.js +47 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts +31 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricUnit.js +48 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts +34 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.js +44 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts +72 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.js +70 -0
- package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.js +46 -0
- package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.js +46 -0
- package/dist/apispec/src/models/index.d.ts +16 -3
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +16 -3
- package/dist/client.d.ts +3 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -26
- package/dist/errors.d.ts +15 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +34 -0
- package/dist/index.d.ts +25 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/models.d.ts +25 -11
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/sandboxes.d.ts +13 -1
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +106 -2
- package/dist/sandbox_observability.d.ts +3 -5
- package/dist/sandbox_observability.d.ts.map +1 -1
- package/dist/sandbox_observability.js +4 -10
- package/package.json +1 -1
- package/dist/apispec/src/apis/AuditApi.d.ts +0 -40
- package/dist/apispec/src/apis/AuditApi.d.ts.map +0 -1
- package/dist/apispec/src/apis/AuditApi.js +0 -79
- package/dist/apispec/src/models/ContextStatsResponse.d.ts +0 -64
- package/dist/apispec/src/models/ContextStatsResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/ContextStatsResponse.js +0 -52
- package/dist/apispec/src/models/LifecyclePolicy.d.ts +0 -52
- package/dist/apispec/src/models/LifecyclePolicy.d.ts.map +0 -1
- package/dist/apispec/src/models/LifecyclePolicy.js +0 -48
- package/dist/apispec/src/models/PreStopHook.d.ts +0 -39
- package/dist/apispec/src/models/PreStopHook.d.ts.map +0 -1
- package/dist/apispec/src/models/PreStopHook.js +0 -43
- package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts +0 -33
- package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/PutTeamQuotaRequest.js +0 -43
- package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts +0 -101
- package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxObservabilityMetricSample.js +0 -81
- package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts +0 -46
- package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.js +0 -48
- package/dist/apispec/src/models/SandboxProbeSet.d.ts +0 -46
- package/dist/apispec/src/models/SandboxProbeSet.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxProbeSet.js +0 -46
- package/dist/apispec/src/models/SandboxProbeSpec.d.ts +0 -66
- package/dist/apispec/src/models/SandboxProbeSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxProbeSpec.js +0 -54
- package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessContextStatsResponse.js +0 -46
- package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.js +0 -46
package/README.md
CHANGED
|
@@ -85,6 +85,53 @@ for (const mount of sandbox.bootstrapMounts) {
|
|
|
85
85
|
}
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
## Wait For Lifecycle Changes
|
|
89
|
+
|
|
90
|
+
Pause is accepted before its rootfs checkpoint is fully committed. Use the
|
|
91
|
+
waiting helpers when the next operation depends on committed lifecycle state:
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
const paused = await client.sandboxes.pauseAndWait(sandbox.id, {
|
|
95
|
+
timeoutMs: 120_000,
|
|
96
|
+
signal: abortController.signal,
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
const resumed = await client.sandboxes.resumeAndWait(paused.id);
|
|
100
|
+
console.log(resumed.status, resumed.runtimeGeneration);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
`waitForLifecycle()` is available for other committed-state conditions. Aborting
|
|
104
|
+
a wait stops polling locally; it does not undo a pause or resume already accepted
|
|
105
|
+
by Sandbox0.
|
|
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
|
+
|
|
88
135
|
## Links
|
|
89
136
|
|
|
90
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,
|
|
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,28 +32,29 @@ export interface ApiV1SandboxesIdObservabilityLogsGetRequest {
|
|
|
32
32
|
contextId?: string;
|
|
33
33
|
stream?: SandboxObservabilityLogStream;
|
|
34
34
|
}
|
|
35
|
-
export interface
|
|
35
|
+
export interface GetSandboxRuntimeMetricsRequest {
|
|
36
36
|
id: string;
|
|
37
37
|
startTime?: Date;
|
|
38
38
|
endTime?: Date;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
*
|
|
48
49
|
*/
|
|
49
50
|
export declare class ObservabilityApi extends runtime.BaseAPI {
|
|
50
51
|
/**
|
|
51
|
-
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and
|
|
52
|
+
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and reads tables that are separate from the metering usage ledger.
|
|
52
53
|
* Query historical sandbox observability events
|
|
53
54
|
*/
|
|
54
55
|
apiV1SandboxesIdObservabilityEventsGetRaw(requestParameters: ApiV1SandboxesIdObservabilityEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxObservabilityEventsResponse>>;
|
|
55
56
|
/**
|
|
56
|
-
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and
|
|
57
|
+
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and reads tables that are separate from the metering usage ledger.
|
|
57
58
|
* Query historical sandbox observability events
|
|
58
59
|
*/
|
|
59
60
|
apiV1SandboxesIdObservabilityEventsGet(requestParameters: ApiV1SandboxesIdObservabilityEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxObservabilityEventsResponse>;
|
|
@@ -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
|
-
*
|
|
72
|
-
* Query
|
|
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
|
-
|
|
85
|
+
getSandboxRuntimeMetricsCatalogRaw(requestParameters: GetSandboxRuntimeMetricsCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRuntimeMetricsCatalogResponse>>;
|
|
75
86
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
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
|
-
|
|
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/apis/ObservabilityApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAE3B,yCAAyC,EACzC,uCAAuC,EACvC,
|
|
1
|
+
{"version":3,"file":"ObservabilityApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/ObservabilityApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAE3B,6BAA6B,EAC7B,yCAAyC,EACzC,uCAAuC,EACvC,2CAA2C,EAC3C,oCAAoC,EACrC,MAAM,iBAAiB,CAAC;AA0BzB,MAAM,WAAW,6CAA6C;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX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ccessSandboxObservabilityLogsResponseFromJSON,
|
|
15
|
+
import { SuccessSandboxObservabilityEventsResponseFromJSON, SuccessSandboxObservabilityLogsResponseFromJSON, SuccessSandboxRuntimeMetricsCatalogResponseFromJSON, SuccessSandboxRuntimeMetricsResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class ObservabilityApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and
|
|
21
|
+
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and reads tables that are separate from the metering usage ledger.
|
|
22
22
|
* Query historical sandbox observability events
|
|
23
23
|
*/
|
|
24
24
|
async apiV1SandboxesIdObservabilityEventsGetRaw(requestParameters, initOverrides) {
|
|
@@ -69,7 +69,7 @@ export class ObservabilityApi extends runtime.BaseAPI {
|
|
|
69
69
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxObservabilityEventsResponseFromJSON(jsonValue));
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and
|
|
72
|
+
* Queries the asynchronous per-sandbox observability projection for lifecycle, network audit, and runtime stats events. This endpoint does not expose backend SQL and reads tables that are separate from the metering usage ledger.
|
|
73
73
|
* Query historical sandbox observability events
|
|
74
74
|
*/
|
|
75
75
|
async apiV1SandboxesIdObservabilityEventsGet(requestParameters, initOverrides) {
|
|
@@ -133,12 +133,12 @@ export class ObservabilityApi extends runtime.BaseAPI {
|
|
|
133
133
|
return await response.value();
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
137
|
-
* Query
|
|
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
|
|
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
|
|
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['
|
|
151
|
-
queryParameters['
|
|
150
|
+
if (requestParameters['metrics'] != null) {
|
|
151
|
+
queryParameters['metrics'] = requestParameters['metrics'];
|
|
152
152
|
}
|
|
153
|
-
if (requestParameters['
|
|
154
|
-
queryParameters['
|
|
153
|
+
if (requestParameters['stepSeconds'] != null) {
|
|
154
|
+
queryParameters['step_seconds'] = requestParameters['stepSeconds'];
|
|
155
155
|
}
|
|
156
|
-
if (requestParameters['
|
|
157
|
-
queryParameters['
|
|
156
|
+
if (requestParameters['statistic'] != null) {
|
|
157
|
+
queryParameters['statistic'] = requestParameters['statistic'];
|
|
158
158
|
}
|
|
159
|
-
if (requestParameters['
|
|
160
|
-
queryParameters['
|
|
159
|
+
if (requestParameters['maxPoints'] != null) {
|
|
160
|
+
queryParameters['max_points'] = requestParameters['maxPoints'];
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
166
|
-
|
|
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}/
|
|
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) =>
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRuntimeMetricsCatalogResponseFromJSON(jsonValue));
|
|
185
214
|
}
|
|
186
215
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
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
|
|
191
|
-
const response = await this.
|
|
219
|
+
async getSandboxRuntimeMetricsCatalog(requestParameters, initOverrides) {
|
|
220
|
+
const response = await this.getSandboxRuntimeMetricsCatalogRaw(requestParameters, initOverrides);
|
|
192
221
|
return await response.value();
|
|
193
222
|
}
|
|
194
223
|
}
|
|
@@ -53,11 +53,13 @@ export declare class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
53
53
|
*/
|
|
54
54
|
apiV1SandboxRootfsSnapshotsSnapshotIdGet(requestParameters: ApiV1SandboxRootfsSnapshotsSnapshotIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRootFSSnapshotResponse>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Forks the source sandbox writable rootfs into a new paused sandbox. A paused source is forked from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the fork operation completes.
|
|
57
|
+
* Fork sandbox rootfs
|
|
57
58
|
*/
|
|
58
59
|
apiV1SandboxesIdForkPostRaw(requestParameters: ApiV1SandboxesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessForkSandboxResponse>>;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* Forks the source sandbox writable rootfs into a new paused sandbox. A paused source is forked from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the fork operation completes.
|
|
62
|
+
* Fork sandbox rootfs
|
|
61
63
|
*/
|
|
62
64
|
apiV1SandboxesIdForkPost(requestParameters: ApiV1SandboxesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessForkSandboxResponse>;
|
|
63
65
|
/**
|
|
@@ -77,10 +79,12 @@ export declare class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
77
79
|
*/
|
|
78
80
|
apiV1SandboxesIdSnapshotsGet(requestParameters: ApiV1SandboxesIdSnapshotsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRootFSSnapshotListResponse>;
|
|
79
81
|
/**
|
|
82
|
+
* Creates an immutable snapshot record from the source sandbox writable rootfs. A paused source is snapshotted from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the snapshot operation completes.
|
|
80
83
|
* Create sandbox rootfs snapshot
|
|
81
84
|
*/
|
|
82
85
|
apiV1SandboxesIdSnapshotsPostRaw(requestParameters: ApiV1SandboxesIdSnapshotsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxRootFSSnapshotResponse>>;
|
|
83
86
|
/**
|
|
87
|
+
* Creates an immutable snapshot record from the source sandbox writable rootfs. A paused source is snapshotted from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the snapshot operation completes.
|
|
84
88
|
* Create sandbox rootfs snapshot
|
|
85
89
|
*/
|
|
86
90
|
apiV1SandboxesIdSnapshotsPost(requestParameters: ApiV1SandboxesIdSnapshotsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxRootFSSnapshotResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxRootfsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxRootfsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,kCAAkC,EAElC,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,mCAAmC,EACnC,wCAAwC,EACxC,oCAAoC,EACrC,MAAM,iBAAiB,CAAC;AAsBzB,MAAM,WAAW,kDAAkD;IAC/D,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,+CAA+C;IAC5D,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,+BAA+B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAED,MAAM,WAAW,wCAAwC;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B,EAAE,2BAA2B,CAAC;CAC5D;AAED,MAAM,WAAW,mCAAmC;IAChD,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oCAAoC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC,CAAC,EAAE,kCAAkC,CAAC;CAC3E;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,OAAO;IAEjD;;OAEG;IACG,8CAA8C,CAAC,iBAAiB,EAAE,kDAAkD,EAAE,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AAoC,CAAC,iBAAiB,EAAE,wCAAwC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mCAAmC,CAAC,CAAC;IA4CtO;;OAEG;IACG,iCAAiC,CAAC,iBAAiB,EAAE,wCAAwC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mCAAmC,CAAC;IAK9M;;OAEG;IACG,+BAA+B,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,wCAAwC,CAAC,CAAC;IAkCjO;;OAEG;IACG,4BAA4B,CAAC,iBAAiB,EAAE,mCAAmC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,wCAAwC,CAAC;IAKzM;;;OAGG;IACG,gCAAgC,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oCAAoC,CAAC,CAAC;IAqC/N;;;OAGG;IACG,6BAA6B,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oCAAoC,CAAC;CAK1M"}
|
|
@@ -84,7 +84,8 @@ export class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
84
84
|
return await response.value();
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Forks the source sandbox writable rootfs into a new paused sandbox. A paused source is forked from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the fork operation completes.
|
|
88
|
+
* Fork sandbox rootfs
|
|
88
89
|
*/
|
|
89
90
|
async apiV1SandboxesIdForkPostRaw(requestParameters, initOverrides) {
|
|
90
91
|
if (requestParameters['id'] == null) {
|
|
@@ -112,7 +113,8 @@ export class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
112
113
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessForkSandboxResponseFromJSON(jsonValue));
|
|
113
114
|
}
|
|
114
115
|
/**
|
|
115
|
-
*
|
|
116
|
+
* Forks the source sandbox writable rootfs into a new paused sandbox. A paused source is forked from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the fork operation completes.
|
|
117
|
+
* Fork sandbox rootfs
|
|
116
118
|
*/
|
|
117
119
|
async apiV1SandboxesIdForkPost(requestParameters, initOverrides) {
|
|
118
120
|
const response = await this.apiV1SandboxesIdForkPostRaw(requestParameters, initOverrides);
|
|
@@ -190,6 +192,7 @@ export class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
190
192
|
return await response.value();
|
|
191
193
|
}
|
|
192
194
|
/**
|
|
195
|
+
* Creates an immutable snapshot record from the source sandbox writable rootfs. A paused source is snapshotted from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the snapshot operation completes.
|
|
193
196
|
* Create sandbox rootfs snapshot
|
|
194
197
|
*/
|
|
195
198
|
async apiV1SandboxesIdSnapshotsPostRaw(requestParameters, initOverrides) {
|
|
@@ -218,6 +221,7 @@ export class SandboxRootfsApi extends runtime.BaseAPI {
|
|
|
218
221
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxRootFSSnapshotResponseFromJSON(jsonValue));
|
|
219
222
|
}
|
|
220
223
|
/**
|
|
224
|
+
* Creates an immutable snapshot record from the source sandbox writable rootfs. A paused source is snapshotted from its current rootfs head. A running source is briefly barriered and checkpointed first; the source sandbox remains running after the snapshot operation completes.
|
|
221
225
|
* Create sandbox rootfs snapshot
|
|
222
226
|
*/
|
|
223
227
|
async apiV1SandboxesIdSnapshotsPost(requestParameters, initOverrides) {
|
|
@@ -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,
|
|
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"}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* Optional snapshot metadata. The source sandbox may be running or paused;
|
|
14
|
+
* running sources are checkpointed before the snapshot record is created.
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
15
17
|
* @interface CreateSandboxRootFSSnapshotRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSandboxRootFSSnapshotRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxRootFSSnapshotRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH
|
|
1
|
+
{"version":3,"file":"CreateSandboxRootFSSnapshotRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxRootFSSnapshotRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;;;GAMG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kCAAkC,CAEvH;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,GAAG,kCAAkC,CAExG;AAED,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kCAAkC,CAU3I;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,kCAAkC,CAEtG;AAED,wBAAgB,6CAA6C,CAAC,KAAK,CAAC,EAAE,kCAAkC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1J"}
|
|
@@ -34,29 +34,29 @@ export interface CreateSandboxVolumeS3Config {
|
|
|
34
34
|
*/
|
|
35
35
|
prefix?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* AWS region for the target bucket. Required for provider aws unless endpoint_url is provided.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateSandboxVolumeS3Config
|
|
40
40
|
*/
|
|
41
41
|
region?: string;
|
|
42
42
|
/**
|
|
43
|
-
* Optional endpoint override. Required for ali and r2.
|
|
43
|
+
* Optional endpoint override. Required for ali and r2. For aws, endpoint_url can be used instead of region for S3-compatible endpoints.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateSandboxVolumeS3Config
|
|
46
46
|
*/
|
|
47
47
|
endpointUrl?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Access key for this S3 backend volume. Required with secret_key. Stored encrypted and omitted from API responses.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateSandboxVolumeS3Config
|
|
52
52
|
*/
|
|
53
|
-
accessKey
|
|
53
|
+
accessKey: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Secret key for this S3 backend volume. Required with access_key. Stored encrypted and omitted from API responses.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CreateSandboxVolumeS3Config
|
|
58
58
|
*/
|
|
59
|
-
secretKey
|
|
59
|
+
secretKey: string;
|
|
60
60
|
/**
|
|
61
61
|
* Optional temporary credential session token.
|
|
62
62
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSandboxVolumeS3Config.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeS3Config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,uCAAuC,CAAC;IACnD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"CreateSandboxVolumeS3Config.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeS3Config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,uCAAuC,CAAC;IACnD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;CAI1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,OAAO,uCAAuC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAG3J;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAKzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAe7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB5I"}
|
|
@@ -25,6 +25,10 @@ export const CreateSandboxVolumeS3ConfigProviderEnum = {
|
|
|
25
25
|
export function instanceOfCreateSandboxVolumeS3Config(value) {
|
|
26
26
|
if (!('bucket' in value) || value['bucket'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('accessKey' in value) || value['accessKey'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('secretKey' in value) || value['secretKey'] === undefined)
|
|
31
|
+
return false;
|
|
28
32
|
return true;
|
|
29
33
|
}
|
|
30
34
|
export function CreateSandboxVolumeS3ConfigFromJSON(json) {
|
|
@@ -40,8 +44,8 @@ export function CreateSandboxVolumeS3ConfigFromJSONTyped(json, ignoreDiscriminat
|
|
|
40
44
|
'prefix': json['prefix'] == null ? undefined : json['prefix'],
|
|
41
45
|
'region': json['region'] == null ? undefined : json['region'],
|
|
42
46
|
'endpointUrl': json['endpoint_url'] == null ? undefined : json['endpoint_url'],
|
|
43
|
-
'accessKey': json['access_key']
|
|
44
|
-
'secretKey': json['secret_key']
|
|
47
|
+
'accessKey': json['access_key'],
|
|
48
|
+
'secretKey': json['secret_key'],
|
|
45
49
|
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
46
50
|
};
|
|
47
51
|
}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import type { ForkSandboxConfig } from './ForkSandboxConfig.js';
|
|
13
13
|
/**
|
|
14
14
|
* Optional fork overrides. Omit config to inherit the source sandbox configuration.
|
|
15
|
+
* The source sandbox may be running or paused; running sources are checkpointed
|
|
16
|
+
* before the paused child sandbox is created.
|
|
15
17
|
*
|
|
16
18
|
* @export
|
|
17
19
|
* @interface ForkSandboxRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForkSandboxRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D
|
|
1
|
+
{"version":3,"file":"ForkSandboxRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"}
|
|
@@ -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
|
|
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
|
|
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;
|
|
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
|
}
|