@daytonaio/analytics-api-client 0.148.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/package.json +25 -0
- package/src/api/telemetry-api.d.ts +248 -0
- package/src/api/telemetry-api.js +459 -0
- package/src/api/telemetry-api.js.map +1 -0
- package/src/api/usage-api.d.ts +170 -0
- package/src/api/usage-api.js +317 -0
- package/src/api/usage-api.js.map +1 -0
- package/src/api.d.ts +13 -0
- package/src/api.js +32 -0
- package/src/api.js.map +1 -0
- package/src/base.d.ts +66 -0
- package/src/base.js +69 -0
- package/src/base.js.map +1 -0
- package/src/common.d.ts +65 -0
- package/src/common.js +146 -0
- package/src/common.js.map +1 -0
- package/src/configuration.d.ts +91 -0
- package/src/configuration.js +105 -0
- package/src/configuration.js.map +1 -0
- package/src/index.d.ts +14 -0
- package/src/index.js +33 -0
- package/src/index.js.map +1 -0
- package/src/models/index.d.ts +7 -0
- package/src/models/index.js +24 -0
- package/src/models/index.js.map +1 -0
- package/src/models/models-aggregated-usage.d.ts +66 -0
- package/src/models/models-aggregated-usage.js +16 -0
- package/src/models/models-aggregated-usage.js.map +1 -0
- package/src/models/models-log-entry.d.ts +76 -0
- package/src/models/models-log-entry.js +16 -0
- package/src/models/models-log-entry.js.map +1 -0
- package/src/models/models-metric-point.d.ts +36 -0
- package/src/models/models-metric-point.js +16 -0
- package/src/models/models-metric-point.js.map +1 -0
- package/src/models/models-sandbox-usage.d.ts +66 -0
- package/src/models/models-sandbox-usage.js +16 -0
- package/src/models/models-sandbox-usage.js.map +1 -0
- package/src/models/models-span.d.ts +74 -0
- package/src/models/models-span.js +16 -0
- package/src/models/models-span.js.map +1 -0
- package/src/models/models-trace-summary.d.ts +60 -0
- package/src/models/models-trace-summary.js +16 -0
- package/src/models/models-trace-summary.js.map +1 -0
- package/src/models/models-usage-period.d.ts +60 -0
- package/src/models/models-usage-period.js +16 -0
- package/src/models/models-usage-period.js.map +1 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Analytics API
|
|
6
|
+
* Daytona Analytics API - Read-only telemetry and usage data
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TelemetryApi = exports.TelemetryApiFactory = exports.TelemetryApiFp = exports.TelemetryApiAxiosParamCreator = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const common_1 = require("../common");
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
/**
|
|
24
|
+
* TelemetryApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
const TelemetryApiAxiosParamCreator = function (configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
* Returns paginated log entries with optional severity and search filters
|
|
31
|
+
* @summary Get sandbox logs
|
|
32
|
+
* @param {string} organizationId Organization ID
|
|
33
|
+
* @param {string} sandboxId Sandbox ID
|
|
34
|
+
* @param {string} from Start time (RFC3339)
|
|
35
|
+
* @param {string} to End time (RFC3339)
|
|
36
|
+
* @param {string} [severity] Comma-separated severity levels
|
|
37
|
+
* @param {string} [search] Search text (ILIKE)
|
|
38
|
+
* @param {number} [limit] Page size
|
|
39
|
+
* @param {number} [offset] Offset
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet: async (organizationId, sandboxId, from, to, severity, search, limit, offset, options = {}) => {
|
|
44
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
45
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet', 'organizationId', organizationId);
|
|
46
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet', 'sandboxId', sandboxId);
|
|
48
|
+
// verify required parameter 'from' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet', 'from', from);
|
|
50
|
+
// verify required parameter 'to' is not null or undefined
|
|
51
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet', 'to', to);
|
|
52
|
+
const localVarPath = `/organization/{organizationId}/sandbox/{sandboxId}/telemetry/logs`
|
|
53
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
54
|
+
.replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication Bearer required
|
|
65
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
66
|
+
if (from !== undefined) {
|
|
67
|
+
localVarQueryParameter['from'] = from;
|
|
68
|
+
}
|
|
69
|
+
if (to !== undefined) {
|
|
70
|
+
localVarQueryParameter['to'] = to;
|
|
71
|
+
}
|
|
72
|
+
if (severity !== undefined) {
|
|
73
|
+
localVarQueryParameter['severity'] = severity;
|
|
74
|
+
}
|
|
75
|
+
if (search !== undefined) {
|
|
76
|
+
localVarQueryParameter['search'] = search;
|
|
77
|
+
}
|
|
78
|
+
if (limit !== undefined) {
|
|
79
|
+
localVarQueryParameter['limit'] = limit;
|
|
80
|
+
}
|
|
81
|
+
if (offset !== undefined) {
|
|
82
|
+
localVarQueryParameter['offset'] = offset;
|
|
83
|
+
}
|
|
84
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
85
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
87
|
+
return {
|
|
88
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Returns gauge metrics aggregated in 1-minute intervals
|
|
94
|
+
* @summary Get sandbox metrics
|
|
95
|
+
* @param {string} organizationId Organization ID
|
|
96
|
+
* @param {string} sandboxId Sandbox ID
|
|
97
|
+
* @param {string} from Start time (RFC3339)
|
|
98
|
+
* @param {string} to End time (RFC3339)
|
|
99
|
+
* @param {string} [metricNames] Comma-separated metric names
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet: async (organizationId, sandboxId, from, to, metricNames, options = {}) => {
|
|
104
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
105
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet', 'organizationId', organizationId);
|
|
106
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
107
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet', 'sandboxId', sandboxId);
|
|
108
|
+
// verify required parameter 'from' is not null or undefined
|
|
109
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet', 'from', from);
|
|
110
|
+
// verify required parameter 'to' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet', 'to', to);
|
|
112
|
+
const localVarPath = `/organization/{organizationId}/sandbox/{sandboxId}/telemetry/metrics`
|
|
113
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
114
|
+
.replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
// authentication Bearer required
|
|
125
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
126
|
+
if (from !== undefined) {
|
|
127
|
+
localVarQueryParameter['from'] = from;
|
|
128
|
+
}
|
|
129
|
+
if (to !== undefined) {
|
|
130
|
+
localVarQueryParameter['to'] = to;
|
|
131
|
+
}
|
|
132
|
+
if (metricNames !== undefined) {
|
|
133
|
+
localVarQueryParameter['metricNames'] = metricNames;
|
|
134
|
+
}
|
|
135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
138
|
+
return {
|
|
139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Returns paginated trace summaries with span counts and root span info
|
|
145
|
+
* @summary Get sandbox traces
|
|
146
|
+
* @param {string} organizationId Organization ID
|
|
147
|
+
* @param {string} sandboxId Sandbox ID
|
|
148
|
+
* @param {string} from Start time (RFC3339)
|
|
149
|
+
* @param {string} to End time (RFC3339)
|
|
150
|
+
* @param {number} [limit] Page size
|
|
151
|
+
* @param {number} [offset] Offset
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet: async (organizationId, sandboxId, from, to, limit, offset, options = {}) => {
|
|
156
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
157
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet', 'organizationId', organizationId);
|
|
158
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
159
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet', 'sandboxId', sandboxId);
|
|
160
|
+
// verify required parameter 'from' is not null or undefined
|
|
161
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet', 'from', from);
|
|
162
|
+
// verify required parameter 'to' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet', 'to', to);
|
|
164
|
+
const localVarPath = `/organization/{organizationId}/sandbox/{sandboxId}/telemetry/traces`
|
|
165
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
166
|
+
.replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
}
|
|
173
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
174
|
+
const localVarHeaderParameter = {};
|
|
175
|
+
const localVarQueryParameter = {};
|
|
176
|
+
// authentication Bearer required
|
|
177
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
178
|
+
if (from !== undefined) {
|
|
179
|
+
localVarQueryParameter['from'] = from;
|
|
180
|
+
}
|
|
181
|
+
if (to !== undefined) {
|
|
182
|
+
localVarQueryParameter['to'] = to;
|
|
183
|
+
}
|
|
184
|
+
if (limit !== undefined) {
|
|
185
|
+
localVarQueryParameter['limit'] = limit;
|
|
186
|
+
}
|
|
187
|
+
if (offset !== undefined) {
|
|
188
|
+
localVarQueryParameter['offset'] = offset;
|
|
189
|
+
}
|
|
190
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
193
|
+
return {
|
|
194
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions,
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* Returns all spans belonging to a specific trace ID
|
|
200
|
+
* @summary Get trace spans
|
|
201
|
+
* @param {string} organizationId Organization ID
|
|
202
|
+
* @param {string} sandboxId Sandbox ID
|
|
203
|
+
* @param {string} traceId Trace ID
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet: async (organizationId, sandboxId, traceId, options = {}) => {
|
|
208
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet', 'organizationId', organizationId);
|
|
210
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
211
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet', 'sandboxId', sandboxId);
|
|
212
|
+
// verify required parameter 'traceId' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet', 'traceId', traceId);
|
|
214
|
+
const localVarPath = `/organization/{organizationId}/sandbox/{sandboxId}/telemetry/traces/{traceId}`
|
|
215
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
216
|
+
.replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)))
|
|
217
|
+
.replace(`{${"traceId"}}`, encodeURIComponent(String(traceId)));
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
225
|
+
const localVarHeaderParameter = {};
|
|
226
|
+
const localVarQueryParameter = {};
|
|
227
|
+
// authentication Bearer required
|
|
228
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
232
|
+
return {
|
|
233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
exports.TelemetryApiAxiosParamCreator = TelemetryApiAxiosParamCreator;
|
|
240
|
+
/**
|
|
241
|
+
* TelemetryApi - functional programming interface
|
|
242
|
+
* @export
|
|
243
|
+
*/
|
|
244
|
+
const TelemetryApiFp = function (configuration) {
|
|
245
|
+
const localVarAxiosParamCreator = (0, exports.TelemetryApiAxiosParamCreator)(configuration);
|
|
246
|
+
return {
|
|
247
|
+
/**
|
|
248
|
+
* Returns paginated log entries with optional severity and search filters
|
|
249
|
+
* @summary Get sandbox logs
|
|
250
|
+
* @param {string} organizationId Organization ID
|
|
251
|
+
* @param {string} sandboxId Sandbox ID
|
|
252
|
+
* @param {string} from Start time (RFC3339)
|
|
253
|
+
* @param {string} to End time (RFC3339)
|
|
254
|
+
* @param {string} [severity] Comma-separated severity levels
|
|
255
|
+
* @param {string} [search] Search text (ILIKE)
|
|
256
|
+
* @param {number} [limit] Page size
|
|
257
|
+
* @param {number} [offset] Offset
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
async organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet(organizationId, sandboxId, from, to, severity, search, limit, offset, options) {
|
|
262
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet(organizationId, sandboxId, from, to, severity, search, limit, offset, options);
|
|
263
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
264
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['TelemetryApi.organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet']?.[localVarOperationServerIndex]?.url;
|
|
265
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Returns gauge metrics aggregated in 1-minute intervals
|
|
269
|
+
* @summary Get sandbox metrics
|
|
270
|
+
* @param {string} organizationId Organization ID
|
|
271
|
+
* @param {string} sandboxId Sandbox ID
|
|
272
|
+
* @param {string} from Start time (RFC3339)
|
|
273
|
+
* @param {string} to End time (RFC3339)
|
|
274
|
+
* @param {string} [metricNames] Comma-separated metric names
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
async organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet(organizationId, sandboxId, from, to, metricNames, options) {
|
|
279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet(organizationId, sandboxId, from, to, metricNames, options);
|
|
280
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
281
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['TelemetryApi.organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet']?.[localVarOperationServerIndex]?.url;
|
|
282
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* Returns paginated trace summaries with span counts and root span info
|
|
286
|
+
* @summary Get sandbox traces
|
|
287
|
+
* @param {string} organizationId Organization ID
|
|
288
|
+
* @param {string} sandboxId Sandbox ID
|
|
289
|
+
* @param {string} from Start time (RFC3339)
|
|
290
|
+
* @param {string} to End time (RFC3339)
|
|
291
|
+
* @param {number} [limit] Page size
|
|
292
|
+
* @param {number} [offset] Offset
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
async organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet(organizationId, sandboxId, from, to, limit, offset, options) {
|
|
297
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet(organizationId, sandboxId, from, to, limit, offset, options);
|
|
298
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
299
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['TelemetryApi.organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet']?.[localVarOperationServerIndex]?.url;
|
|
300
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
* Returns all spans belonging to a specific trace ID
|
|
304
|
+
* @summary Get trace spans
|
|
305
|
+
* @param {string} organizationId Organization ID
|
|
306
|
+
* @param {string} sandboxId Sandbox ID
|
|
307
|
+
* @param {string} traceId Trace ID
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
async organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet(organizationId, sandboxId, traceId, options) {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet(organizationId, sandboxId, traceId, options);
|
|
313
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
314
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['TelemetryApi.organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet']?.[localVarOperationServerIndex]?.url;
|
|
315
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
316
|
+
},
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
exports.TelemetryApiFp = TelemetryApiFp;
|
|
320
|
+
/**
|
|
321
|
+
* TelemetryApi - factory interface
|
|
322
|
+
* @export
|
|
323
|
+
*/
|
|
324
|
+
const TelemetryApiFactory = function (configuration, basePath, axios) {
|
|
325
|
+
const localVarFp = (0, exports.TelemetryApiFp)(configuration);
|
|
326
|
+
return {
|
|
327
|
+
/**
|
|
328
|
+
* Returns paginated log entries with optional severity and search filters
|
|
329
|
+
* @summary Get sandbox logs
|
|
330
|
+
* @param {string} organizationId Organization ID
|
|
331
|
+
* @param {string} sandboxId Sandbox ID
|
|
332
|
+
* @param {string} from Start time (RFC3339)
|
|
333
|
+
* @param {string} to End time (RFC3339)
|
|
334
|
+
* @param {string} [severity] Comma-separated severity levels
|
|
335
|
+
* @param {string} [search] Search text (ILIKE)
|
|
336
|
+
* @param {number} [limit] Page size
|
|
337
|
+
* @param {number} [offset] Offset
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet(organizationId, sandboxId, from, to, severity, search, limit, offset, options) {
|
|
342
|
+
return localVarFp.organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet(organizationId, sandboxId, from, to, severity, search, limit, offset, options).then((request) => request(axios, basePath));
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* Returns gauge metrics aggregated in 1-minute intervals
|
|
346
|
+
* @summary Get sandbox metrics
|
|
347
|
+
* @param {string} organizationId Organization ID
|
|
348
|
+
* @param {string} sandboxId Sandbox ID
|
|
349
|
+
* @param {string} from Start time (RFC3339)
|
|
350
|
+
* @param {string} to End time (RFC3339)
|
|
351
|
+
* @param {string} [metricNames] Comma-separated metric names
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet(organizationId, sandboxId, from, to, metricNames, options) {
|
|
356
|
+
return localVarFp.organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet(organizationId, sandboxId, from, to, metricNames, options).then((request) => request(axios, basePath));
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
* Returns paginated trace summaries with span counts and root span info
|
|
360
|
+
* @summary Get sandbox traces
|
|
361
|
+
* @param {string} organizationId Organization ID
|
|
362
|
+
* @param {string} sandboxId Sandbox ID
|
|
363
|
+
* @param {string} from Start time (RFC3339)
|
|
364
|
+
* @param {string} to End time (RFC3339)
|
|
365
|
+
* @param {number} [limit] Page size
|
|
366
|
+
* @param {number} [offset] Offset
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet(organizationId, sandboxId, from, to, limit, offset, options) {
|
|
371
|
+
return localVarFp.organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet(organizationId, sandboxId, from, to, limit, offset, options).then((request) => request(axios, basePath));
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* Returns all spans belonging to a specific trace ID
|
|
375
|
+
* @summary Get trace spans
|
|
376
|
+
* @param {string} organizationId Organization ID
|
|
377
|
+
* @param {string} sandboxId Sandbox ID
|
|
378
|
+
* @param {string} traceId Trace ID
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet(organizationId, sandboxId, traceId, options) {
|
|
383
|
+
return localVarFp.organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet(organizationId, sandboxId, traceId, options).then((request) => request(axios, basePath));
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
exports.TelemetryApiFactory = TelemetryApiFactory;
|
|
388
|
+
/**
|
|
389
|
+
* TelemetryApi - object-oriented interface
|
|
390
|
+
* @export
|
|
391
|
+
* @class TelemetryApi
|
|
392
|
+
* @extends {BaseAPI}
|
|
393
|
+
*/
|
|
394
|
+
class TelemetryApi extends base_1.BaseAPI {
|
|
395
|
+
/**
|
|
396
|
+
* Returns paginated log entries with optional severity and search filters
|
|
397
|
+
* @summary Get sandbox logs
|
|
398
|
+
* @param {string} organizationId Organization ID
|
|
399
|
+
* @param {string} sandboxId Sandbox ID
|
|
400
|
+
* @param {string} from Start time (RFC3339)
|
|
401
|
+
* @param {string} to End time (RFC3339)
|
|
402
|
+
* @param {string} [severity] Comma-separated severity levels
|
|
403
|
+
* @param {string} [search] Search text (ILIKE)
|
|
404
|
+
* @param {number} [limit] Page size
|
|
405
|
+
* @param {number} [offset] Offset
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
* @memberof TelemetryApi
|
|
409
|
+
*/
|
|
410
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet(organizationId, sandboxId, from, to, severity, search, limit, offset, options) {
|
|
411
|
+
return (0, exports.TelemetryApiFp)(this.configuration).organizationOrganizationIdSandboxSandboxIdTelemetryLogsGet(organizationId, sandboxId, from, to, severity, search, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Returns gauge metrics aggregated in 1-minute intervals
|
|
415
|
+
* @summary Get sandbox metrics
|
|
416
|
+
* @param {string} organizationId Organization ID
|
|
417
|
+
* @param {string} sandboxId Sandbox ID
|
|
418
|
+
* @param {string} from Start time (RFC3339)
|
|
419
|
+
* @param {string} to End time (RFC3339)
|
|
420
|
+
* @param {string} [metricNames] Comma-separated metric names
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
* @memberof TelemetryApi
|
|
424
|
+
*/
|
|
425
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet(organizationId, sandboxId, from, to, metricNames, options) {
|
|
426
|
+
return (0, exports.TelemetryApiFp)(this.configuration).organizationOrganizationIdSandboxSandboxIdTelemetryMetricsGet(organizationId, sandboxId, from, to, metricNames, options).then((request) => request(this.axios, this.basePath));
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Returns paginated trace summaries with span counts and root span info
|
|
430
|
+
* @summary Get sandbox traces
|
|
431
|
+
* @param {string} organizationId Organization ID
|
|
432
|
+
* @param {string} sandboxId Sandbox ID
|
|
433
|
+
* @param {string} from Start time (RFC3339)
|
|
434
|
+
* @param {string} to End time (RFC3339)
|
|
435
|
+
* @param {number} [limit] Page size
|
|
436
|
+
* @param {number} [offset] Offset
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
* @memberof TelemetryApi
|
|
440
|
+
*/
|
|
441
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet(organizationId, sandboxId, from, to, limit, offset, options) {
|
|
442
|
+
return (0, exports.TelemetryApiFp)(this.configuration).organizationOrganizationIdSandboxSandboxIdTelemetryTracesGet(organizationId, sandboxId, from, to, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Returns all spans belonging to a specific trace ID
|
|
446
|
+
* @summary Get trace spans
|
|
447
|
+
* @param {string} organizationId Organization ID
|
|
448
|
+
* @param {string} sandboxId Sandbox ID
|
|
449
|
+
* @param {string} traceId Trace ID
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
* @memberof TelemetryApi
|
|
453
|
+
*/
|
|
454
|
+
organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet(organizationId, sandboxId, traceId, options) {
|
|
455
|
+
return (0, exports.TelemetryApiFp)(this.configuration).organizationOrganizationIdSandboxSandboxIdTelemetryTracesTraceIdGet(organizationId, sandboxId, traceId, options).then((request) => request(this.axios, this.basePath));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
exports.TelemetryApi = TelemetryApi;
|
|
459
|
+
//# sourceMappingURL=telemetry-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry-api.js","sourceRoot":"","sources":["../../../../../libs/analytics-api-client/src/api/telemetry-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAStH;;;GAGG;AACI,MAAM,6BAA6B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACH;;;;;;;;;;;;;WAaG;QACH,0DAA0D,EAAE,KAAK,EAAE,cAAsB,EAAE,SAAiB,EAAE,IAAY,EAAE,EAAU,EAAE,QAAiB,EAAE,MAAe,EAAE,KAAc,EAAE,MAAe,EAAE,UAAiC,EAAE,EAAwB,EAAE;YACtQ,sEAAsE;YACtE,IAAA,0BAAiB,EAAC,4DAA4D,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;YACjH,iEAAiE;YACjE,IAAA,0BAAiB,EAAC,4DAA4D,EAAE,WAAW,EAAE,SAAS,CAAC,CAAA;YACvG,4DAA4D;YAC5D,IAAA,0BAAiB,EAAC,4DAA4D,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;YAC7F,0DAA0D;YAC1D,IAAA,0BAAiB,EAAC,4DAA4D,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YACzF,MAAM,YAAY,GAAG,mEAAmE;iBACnF,OAAO,CAAC,IAAI,gBAAgB,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;iBAC5E,OAAO,CAAC,IAAI,WAAW,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxE,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,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ACI,4DAA4D,CAAC,cAAsB,EAAE,SAAiB,EAAE,IAAY,EAAE,EAAU,EAAE,KAAc,EAAE,MAAe,EAAE,OAA+B;QACrM,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,4DAA4D,CAAC,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9N,CAAC;IAED;;;;;;;;;OASG;IACI,mEAAmE,CAAC,cAAsB,EAAE,SAAiB,EAAE,OAAe,EAAE,OAA+B;QAClK,OAAO,IAAA,sBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mEAAmE,CAAC,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrN,CAAC;CACJ;AAlED,oCAkEC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Analytics API
|
|
3
|
+
* Daytona Analytics API - Read-only telemetry and usage data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
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 { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { ModelsAggregatedUsage } from '../models';
|
|
16
|
+
import type { ModelsSandboxUsage } from '../models';
|
|
17
|
+
import type { ModelsUsagePeriod } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* UsageApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const UsageApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* Returns individual usage records for a specific sandbox within a time range
|
|
25
|
+
* @summary Get sandbox usage periods
|
|
26
|
+
* @param {string} organizationId Organization ID
|
|
27
|
+
* @param {string} sandboxId Sandbox ID
|
|
28
|
+
* @param {string} from Start time (RFC3339)
|
|
29
|
+
* @param {string} to End time (RFC3339)
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
organizationOrganizationIdSandboxSandboxIdUsageGet: (organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* Returns organization-level resource usage totals for a given time period
|
|
36
|
+
* @summary Get aggregated usage
|
|
37
|
+
* @param {string} organizationId Organization ID
|
|
38
|
+
* @param {string} from Start time (RFC3339)
|
|
39
|
+
* @param {string} to End time (RFC3339)
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
organizationOrganizationIdUsageAggregatedGet: (organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns resource usage aggregated per sandbox for a given time period
|
|
46
|
+
* @summary Get per-sandbox usage
|
|
47
|
+
* @param {string} organizationId Organization ID
|
|
48
|
+
* @param {string} from Start time (RFC3339)
|
|
49
|
+
* @param {string} to End time (RFC3339)
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
organizationOrganizationIdUsageSandboxGet: (organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* UsageApi - functional programming interface
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const UsageApiFp: (configuration?: Configuration) => {
|
|
60
|
+
/**
|
|
61
|
+
* Returns individual usage records for a specific sandbox within a time range
|
|
62
|
+
* @summary Get sandbox usage periods
|
|
63
|
+
* @param {string} organizationId Organization ID
|
|
64
|
+
* @param {string} sandboxId Sandbox ID
|
|
65
|
+
* @param {string} from Start time (RFC3339)
|
|
66
|
+
* @param {string} to End time (RFC3339)
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelsUsagePeriod>>>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns organization-level resource usage totals for a given time period
|
|
73
|
+
* @summary Get aggregated usage
|
|
74
|
+
* @param {string} organizationId Organization ID
|
|
75
|
+
* @param {string} from Start time (RFC3339)
|
|
76
|
+
* @param {string} to End time (RFC3339)
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
organizationOrganizationIdUsageAggregatedGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsAggregatedUsage>>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns resource usage aggregated per sandbox for a given time period
|
|
83
|
+
* @summary Get per-sandbox usage
|
|
84
|
+
* @param {string} organizationId Organization ID
|
|
85
|
+
* @param {string} from Start time (RFC3339)
|
|
86
|
+
* @param {string} to End time (RFC3339)
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
organizationOrganizationIdUsageSandboxGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelsSandboxUsage>>>;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* UsageApi - factory interface
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export declare const UsageApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
97
|
+
/**
|
|
98
|
+
* Returns individual usage records for a specific sandbox within a time range
|
|
99
|
+
* @summary Get sandbox usage periods
|
|
100
|
+
* @param {string} organizationId Organization ID
|
|
101
|
+
* @param {string} sandboxId Sandbox ID
|
|
102
|
+
* @param {string} from Start time (RFC3339)
|
|
103
|
+
* @param {string} to End time (RFC3339)
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ModelsUsagePeriod>>;
|
|
108
|
+
/**
|
|
109
|
+
* Returns organization-level resource usage totals for a given time period
|
|
110
|
+
* @summary Get aggregated usage
|
|
111
|
+
* @param {string} organizationId Organization ID
|
|
112
|
+
* @param {string} from Start time (RFC3339)
|
|
113
|
+
* @param {string} to End time (RFC3339)
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
organizationOrganizationIdUsageAggregatedGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise<ModelsAggregatedUsage>;
|
|
118
|
+
/**
|
|
119
|
+
* Returns resource usage aggregated per sandbox for a given time period
|
|
120
|
+
* @summary Get per-sandbox usage
|
|
121
|
+
* @param {string} organizationId Organization ID
|
|
122
|
+
* @param {string} from Start time (RFC3339)
|
|
123
|
+
* @param {string} to End time (RFC3339)
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
organizationOrganizationIdUsageSandboxGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ModelsSandboxUsage>>;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* UsageApi - object-oriented interface
|
|
131
|
+
* @export
|
|
132
|
+
* @class UsageApi
|
|
133
|
+
* @extends {BaseAPI}
|
|
134
|
+
*/
|
|
135
|
+
export declare class UsageApi extends BaseAPI {
|
|
136
|
+
/**
|
|
137
|
+
* Returns individual usage records for a specific sandbox within a time range
|
|
138
|
+
* @summary Get sandbox usage periods
|
|
139
|
+
* @param {string} organizationId Organization ID
|
|
140
|
+
* @param {string} sandboxId Sandbox ID
|
|
141
|
+
* @param {string} from Start time (RFC3339)
|
|
142
|
+
* @param {string} to End time (RFC3339)
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
* @memberof UsageApi
|
|
146
|
+
*/
|
|
147
|
+
organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsUsagePeriod[], any, {}>>;
|
|
148
|
+
/**
|
|
149
|
+
* Returns organization-level resource usage totals for a given time period
|
|
150
|
+
* @summary Get aggregated usage
|
|
151
|
+
* @param {string} organizationId Organization ID
|
|
152
|
+
* @param {string} from Start time (RFC3339)
|
|
153
|
+
* @param {string} to End time (RFC3339)
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
* @memberof UsageApi
|
|
157
|
+
*/
|
|
158
|
+
organizationOrganizationIdUsageAggregatedGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsAggregatedUsage, any, {}>>;
|
|
159
|
+
/**
|
|
160
|
+
* Returns resource usage aggregated per sandbox for a given time period
|
|
161
|
+
* @summary Get per-sandbox usage
|
|
162
|
+
* @param {string} organizationId Organization ID
|
|
163
|
+
* @param {string} from Start time (RFC3339)
|
|
164
|
+
* @param {string} to End time (RFC3339)
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
* @memberof UsageApi
|
|
168
|
+
*/
|
|
169
|
+
organizationOrganizationIdUsageSandboxGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsSandboxUsage[], any, {}>>;
|
|
170
|
+
}
|