@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.
Files changed (46) hide show
  1. package/package.json +25 -0
  2. package/src/api/telemetry-api.d.ts +248 -0
  3. package/src/api/telemetry-api.js +459 -0
  4. package/src/api/telemetry-api.js.map +1 -0
  5. package/src/api/usage-api.d.ts +170 -0
  6. package/src/api/usage-api.js +317 -0
  7. package/src/api/usage-api.js.map +1 -0
  8. package/src/api.d.ts +13 -0
  9. package/src/api.js +32 -0
  10. package/src/api.js.map +1 -0
  11. package/src/base.d.ts +66 -0
  12. package/src/base.js +69 -0
  13. package/src/base.js.map +1 -0
  14. package/src/common.d.ts +65 -0
  15. package/src/common.js +146 -0
  16. package/src/common.js.map +1 -0
  17. package/src/configuration.d.ts +91 -0
  18. package/src/configuration.js +105 -0
  19. package/src/configuration.js.map +1 -0
  20. package/src/index.d.ts +14 -0
  21. package/src/index.js +33 -0
  22. package/src/index.js.map +1 -0
  23. package/src/models/index.d.ts +7 -0
  24. package/src/models/index.js +24 -0
  25. package/src/models/index.js.map +1 -0
  26. package/src/models/models-aggregated-usage.d.ts +66 -0
  27. package/src/models/models-aggregated-usage.js +16 -0
  28. package/src/models/models-aggregated-usage.js.map +1 -0
  29. package/src/models/models-log-entry.d.ts +76 -0
  30. package/src/models/models-log-entry.js +16 -0
  31. package/src/models/models-log-entry.js.map +1 -0
  32. package/src/models/models-metric-point.d.ts +36 -0
  33. package/src/models/models-metric-point.js +16 -0
  34. package/src/models/models-metric-point.js.map +1 -0
  35. package/src/models/models-sandbox-usage.d.ts +66 -0
  36. package/src/models/models-sandbox-usage.js +16 -0
  37. package/src/models/models-sandbox-usage.js.map +1 -0
  38. package/src/models/models-span.d.ts +74 -0
  39. package/src/models/models-span.js +16 -0
  40. package/src/models/models-span.js.map +1 -0
  41. package/src/models/models-trace-summary.d.ts +60 -0
  42. package/src/models/models-trace-summary.js +16 -0
  43. package/src/models/models-trace-summary.js.map +1 -0
  44. package/src/models/models-usage-period.d.ts +60 -0
  45. package/src/models/models-usage-period.js +16 -0
  46. package/src/models/models-usage-period.js.map +1 -0
package/src/common.js ADDED
@@ -0,0 +1,146 @@
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.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
+ const base_1 = require("./base");
18
+ /**
19
+ *
20
+ * @export
21
+ */
22
+ exports.DUMMY_BASE_URL = 'https://example.com';
23
+ /**
24
+ *
25
+ * @throws {RequiredError}
26
+ * @export
27
+ */
28
+ const assertParamExists = function (functionName, paramName, paramValue) {
29
+ if (paramValue === null || paramValue === undefined) {
30
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
31
+ }
32
+ };
33
+ exports.assertParamExists = assertParamExists;
34
+ /**
35
+ *
36
+ * @export
37
+ */
38
+ const setApiKeyToObject = async function (object, keyParamName, configuration) {
39
+ if (configuration && configuration.apiKey) {
40
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
41
+ ? await configuration.apiKey(keyParamName)
42
+ : await configuration.apiKey;
43
+ object[keyParamName] = localVarApiKeyValue;
44
+ }
45
+ };
46
+ exports.setApiKeyToObject = setApiKeyToObject;
47
+ /**
48
+ *
49
+ * @export
50
+ */
51
+ const setBasicAuthToObject = function (object, configuration) {
52
+ if (configuration && (configuration.username || configuration.password)) {
53
+ object["auth"] = { username: configuration.username, password: configuration.password };
54
+ }
55
+ };
56
+ exports.setBasicAuthToObject = setBasicAuthToObject;
57
+ /**
58
+ *
59
+ * @export
60
+ */
61
+ const setBearerAuthToObject = async function (object, configuration) {
62
+ if (configuration && configuration.accessToken) {
63
+ const accessToken = typeof configuration.accessToken === 'function'
64
+ ? await configuration.accessToken()
65
+ : await configuration.accessToken;
66
+ object["Authorization"] = "Bearer " + accessToken;
67
+ }
68
+ };
69
+ exports.setBearerAuthToObject = setBearerAuthToObject;
70
+ /**
71
+ *
72
+ * @export
73
+ */
74
+ const setOAuthToObject = async function (object, name, scopes, configuration) {
75
+ if (configuration && configuration.accessToken) {
76
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
77
+ ? await configuration.accessToken(name, scopes)
78
+ : await configuration.accessToken;
79
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
80
+ }
81
+ };
82
+ exports.setOAuthToObject = setOAuthToObject;
83
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
84
+ if (parameter == null)
85
+ return;
86
+ if (typeof parameter === "object") {
87
+ if (Array.isArray(parameter)) {
88
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
89
+ }
90
+ else {
91
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
92
+ }
93
+ }
94
+ else {
95
+ if (urlSearchParams.has(key)) {
96
+ urlSearchParams.append(key, parameter);
97
+ }
98
+ else {
99
+ urlSearchParams.set(key, parameter);
100
+ }
101
+ }
102
+ }
103
+ /**
104
+ *
105
+ * @export
106
+ */
107
+ const setSearchParams = function (url, ...objects) {
108
+ const searchParams = new URLSearchParams(url.search);
109
+ setFlattenedQueryParams(searchParams, objects);
110
+ url.search = searchParams.toString();
111
+ };
112
+ exports.setSearchParams = setSearchParams;
113
+ /**
114
+ *
115
+ * @export
116
+ */
117
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
118
+ const nonString = typeof value !== 'string';
119
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
120
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
121
+ : nonString;
122
+ return needsSerialization
123
+ ? JSON.stringify(value !== undefined ? value : {})
124
+ : (value || "");
125
+ };
126
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
127
+ /**
128
+ *
129
+ * @export
130
+ */
131
+ const toPathString = function (url) {
132
+ return url.pathname + url.search + url.hash;
133
+ };
134
+ exports.toPathString = toPathString;
135
+ /**
136
+ *
137
+ * @export
138
+ */
139
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
+ return (axios = globalAxios, basePath = BASE_PATH) => {
141
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
142
+ return axios.request(axiosRequestArgs);
143
+ };
144
+ };
145
+ exports.createRequestFunction = createRequestFunction;
146
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../libs/analytics-api-client/src/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAMH,iCAAuC;AAEvC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;IAC9H,CAAC;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,MAAM,iBAAiB,GAAG,KAAK,WAAW,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AAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,QAAQ,IAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,EAAC,CAAC;QAC1I,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA;AALY,QAAA,qBAAqB,yBAKjC"}
@@ -0,0 +1,91 @@
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
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export declare class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ * @memberof Configuration
27
+ */
28
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
+ /**
30
+ * parameter for basic security
31
+ *
32
+ * @type {string}
33
+ * @memberof Configuration
34
+ */
35
+ username?: string;
36
+ /**
37
+ * parameter for basic security
38
+ *
39
+ * @type {string}
40
+ * @memberof Configuration
41
+ */
42
+ password?: string;
43
+ /**
44
+ * parameter for oauth2 security
45
+ * @param name security name
46
+ * @param scopes oauth2 scope
47
+ * @memberof Configuration
48
+ */
49
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
+ /**
51
+ * override base path
52
+ *
53
+ * @type {string}
54
+ * @memberof Configuration
55
+ */
56
+ basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
64
+ /**
65
+ * base options for axios calls
66
+ *
67
+ * @type {any}
68
+ * @memberof Configuration
69
+ */
70
+ baseOptions?: any;
71
+ /**
72
+ * The FormData constructor that will be used to create multipart form data
73
+ * requests. You can inject this here so that execution environments that
74
+ * do not support the FormData class can still run the generated client.
75
+ *
76
+ * @type {new () => FormData}
77
+ */
78
+ formDataCtor?: new () => any;
79
+ constructor(param?: ConfigurationParameters);
80
+ /**
81
+ * Check if the given MIME is a JSON MIME.
82
+ * JSON MIME examples:
83
+ * application/json
84
+ * application/json; charset=UTF8
85
+ * APPLICATION/JSON
86
+ * application/vnd.company+json
87
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
+ * @return True if the given MIME is JSON, false otherwise.
89
+ */
90
+ isJsonMime(mime: string): boolean;
91
+ }
@@ -0,0 +1,105 @@
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.Configuration = void 0;
17
+ class Configuration {
18
+ /**
19
+ * parameter for apiKey security
20
+ * @param name security name
21
+ * @memberof Configuration
22
+ */
23
+ apiKey;
24
+ /**
25
+ * parameter for basic security
26
+ *
27
+ * @type {string}
28
+ * @memberof Configuration
29
+ */
30
+ username;
31
+ /**
32
+ * parameter for basic security
33
+ *
34
+ * @type {string}
35
+ * @memberof Configuration
36
+ */
37
+ password;
38
+ /**
39
+ * parameter for oauth2 security
40
+ * @param name security name
41
+ * @param scopes oauth2 scope
42
+ * @memberof Configuration
43
+ */
44
+ accessToken;
45
+ /**
46
+ * override base path
47
+ *
48
+ * @type {string}
49
+ * @memberof Configuration
50
+ */
51
+ basePath;
52
+ /**
53
+ * override server index
54
+ *
55
+ * @type {number}
56
+ * @memberof Configuration
57
+ */
58
+ serverIndex;
59
+ /**
60
+ * base options for axios calls
61
+ *
62
+ * @type {any}
63
+ * @memberof Configuration
64
+ */
65
+ baseOptions;
66
+ /**
67
+ * The FormData constructor that will be used to create multipart form data
68
+ * requests. You can inject this here so that execution environments that
69
+ * do not support the FormData class can still run the generated client.
70
+ *
71
+ * @type {new () => FormData}
72
+ */
73
+ formDataCtor;
74
+ constructor(param = {}) {
75
+ this.apiKey = param.apiKey;
76
+ this.username = param.username;
77
+ this.password = param.password;
78
+ this.accessToken = param.accessToken;
79
+ this.basePath = param.basePath;
80
+ this.serverIndex = param.serverIndex;
81
+ this.baseOptions = {
82
+ ...param.baseOptions,
83
+ headers: {
84
+ ...param.baseOptions?.headers,
85
+ },
86
+ };
87
+ this.formDataCtor = param.formDataCtor;
88
+ }
89
+ /**
90
+ * Check if the given MIME is a JSON MIME.
91
+ * JSON MIME examples:
92
+ * application/json
93
+ * application/json; charset=UTF8
94
+ * APPLICATION/JSON
95
+ * application/vnd.company+json
96
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
97
+ * @return True if the given MIME is JSON, false otherwise.
98
+ */
99
+ isJsonMime(mime) {
100
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
101
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
102
+ }
103
+ }
104
+ exports.Configuration = Configuration;
105
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../libs/analytics-api-client/src/configuration.ts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index.d.ts ADDED
@@ -0,0 +1,14 @@
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
+ export * from "./api";
13
+ export * from "./configuration";
14
+ export * from "./models";
package/src/index.js ADDED
@@ -0,0 +1,33 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
32
+ __exportStar(require("./models"), exports);
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/analytics-api-client/src/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAGH,wCAAsB;AACtB,kDAAgC;AAChC,2CAAyB"}
@@ -0,0 +1,7 @@
1
+ export * from './models-aggregated-usage';
2
+ export * from './models-log-entry';
3
+ export * from './models-metric-point';
4
+ export * from './models-sandbox-usage';
5
+ export * from './models-span';
6
+ export * from './models-trace-summary';
7
+ export * from './models-usage-period';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./models-aggregated-usage"), exports);
18
+ __exportStar(require("./models-log-entry"), exports);
19
+ __exportStar(require("./models-metric-point"), exports);
20
+ __exportStar(require("./models-sandbox-usage"), exports);
21
+ __exportStar(require("./models-span"), exports);
22
+ __exportStar(require("./models-trace-summary"), exports);
23
+ __exportStar(require("./models-usage-period"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/analytics-api-client/src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,qDAAmC;AACnC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,yDAAuC;AACvC,wDAAsC"}
@@ -0,0 +1,66 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ModelsAggregatedUsage
16
+ */
17
+ export interface ModelsAggregatedUsage {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ModelsAggregatedUsage
22
+ */
23
+ 'firstStart'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ModelsAggregatedUsage
28
+ */
29
+ 'lastEnd'?: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ModelsAggregatedUsage
34
+ */
35
+ 'sandboxCount'?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ModelsAggregatedUsage
40
+ */
41
+ 'totalCPUSeconds'?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ModelsAggregatedUsage
46
+ */
47
+ 'totalDiskGBSeconds'?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ModelsAggregatedUsage
52
+ */
53
+ 'totalGPUSeconds'?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ModelsAggregatedUsage
58
+ */
59
+ 'totalPrice'?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ModelsAggregatedUsage
64
+ */
65
+ 'totalRAMGBSeconds'?: number;
66
+ }
@@ -0,0 +1,16 @@
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
+ //# sourceMappingURL=models-aggregated-usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models-aggregated-usage.js","sourceRoot":"","sources":["../../../../../libs/analytics-api-client/src/models/models-aggregated-usage.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,76 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ModelsLogEntry
16
+ */
17
+ export interface ModelsLogEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ModelsLogEntry
22
+ */
23
+ 'body'?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof ModelsLogEntry
28
+ */
29
+ 'logAttributes'?: {
30
+ [key: string]: string;
31
+ };
32
+ /**
33
+ *
34
+ * @type {{ [key: string]: string; }}
35
+ * @memberof ModelsLogEntry
36
+ */
37
+ 'resourceAttributes'?: {
38
+ [key: string]: string;
39
+ };
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ModelsLogEntry
44
+ */
45
+ 'serviceName'?: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ModelsLogEntry
50
+ */
51
+ 'severityNumber'?: number;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ModelsLogEntry
56
+ */
57
+ 'severityText'?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ModelsLogEntry
62
+ */
63
+ 'spanId'?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ModelsLogEntry
68
+ */
69
+ 'timestamp'?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof ModelsLogEntry
74
+ */
75
+ 'traceId'?: string;
76
+ }
@@ -0,0 +1,16 @@
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
+ //# sourceMappingURL=models-log-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models-log-entry.js","sourceRoot":"","sources":["../../../../../libs/analytics-api-client/src/models/models-log-entry.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,36 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ModelsMetricPoint
16
+ */
17
+ export interface ModelsMetricPoint {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ModelsMetricPoint
22
+ */
23
+ 'metricName'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ModelsMetricPoint
28
+ */
29
+ 'timestamp'?: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ModelsMetricPoint
34
+ */
35
+ 'value'?: number;
36
+ }