@sentio/api 1.0.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/BUILD.bazel +14 -0
- package/README.md +1 -0
- package/doc/index.html +11971 -0
- package/jest.config.ts +6 -0
- package/package.json +30 -0
- package/spec.json +2635 -0
- package/src/apis/DefaultApi.ts +910 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CommonAggregate.ts +80 -0
- package/src/models/CommonAggregateAggregateOps.ts +42 -0
- package/src/models/CommonAny.ts +120 -0
- package/src/models/CommonArgument.ts +104 -0
- package/src/models/CommonDuration.ts +73 -0
- package/src/models/CommonErrorRecord.ts +105 -0
- package/src/models/CommonFormula.ts +89 -0
- package/src/models/CommonFunction.ts +80 -0
- package/src/models/CommonJoinOperator.ts +39 -0
- package/src/models/CommonLogEntry.ts +153 -0
- package/src/models/CommonOrganization.ts +156 -0
- package/src/models/CommonOrganizationMember.ts +86 -0
- package/src/models/CommonOrganizationRole.ts +39 -0
- package/src/models/CommonOwner.ts +100 -0
- package/src/models/CommonPermission.ts +40 -0
- package/src/models/CommonProject.ts +172 -0
- package/src/models/CommonProjectInfo.ts +136 -0
- package/src/models/CommonProjectProjectMember.ts +80 -0
- package/src/models/CommonProjectVisibility.ts +39 -0
- package/src/models/CommonQuery.ts +126 -0
- package/src/models/CommonSegmentationQuery.ts +132 -0
- package/src/models/CommonSegmentationQueryAggregation.ts +102 -0
- package/src/models/CommonSegmentationQueryAggregationAggregateProperties.ts +80 -0
- package/src/models/CommonSegmentationQueryAggregationAggregatePropertiesAggregationType.ts +44 -0
- package/src/models/CommonSegmentationQueryAggregationCountUnique.ts +72 -0
- package/src/models/CommonSegmentationQueryResource.ts +80 -0
- package/src/models/CommonSegmentationQueryResourceType.ts +39 -0
- package/src/models/CommonSegmentationQuerySelectorExpr.ts +86 -0
- package/src/models/CommonSegmentationQuerySelectorExprLogicExpr.ts +86 -0
- package/src/models/CommonSelector.ts +94 -0
- package/src/models/CommonSelectorOperatorType.ts +50 -0
- package/src/models/CommonStringList.ts +65 -0
- package/src/models/CommonTier.ts +41 -0
- package/src/models/CommonTimeRange.ts +110 -0
- package/src/models/CommonTimeRangeLite.ts +89 -0
- package/src/models/CommonTimeRangeRelativeTime.ts +73 -0
- package/src/models/CommonTimeRangeTimeLike.ts +80 -0
- package/src/models/CommonUser.ts +182 -0
- package/src/models/CommonUserAccountStatus.ts +41 -0
- package/src/models/CommonUserInfo.ts +105 -0
- package/src/models/GoogleProtobufNullValue.ts +43 -0
- package/src/models/MetricsServiceLogQueryRequestFilter.ts +81 -0
- package/src/models/MetricsServiceLogQueryRequestSort.ts +73 -0
- package/src/models/MetricsServiceLogQueryResponse.ts +94 -0
- package/src/models/MetricsServiceMetricsQueryResponse.ts +72 -0
- package/src/models/MetricsServiceMetricsQueryResponseMatrix.ts +80 -0
- package/src/models/MetricsServiceMetricsQueryResponseMetric.ts +81 -0
- package/src/models/MetricsServiceMetricsQueryResponseResult.ts +96 -0
- package/src/models/MetricsServiceMetricsQueryResponseSample.ts +86 -0
- package/src/models/MetricsServiceMetricsQueryResponseValue.ts +73 -0
- package/src/models/MetricsServiceQueryValueResponse.ts +72 -0
- package/src/models/MetricsServiceQueryValueResponseResult.ts +96 -0
- package/src/models/ProcessorServiceChainState.ts +168 -0
- package/src/models/ProcessorServiceChainStateStatus.ts +86 -0
- package/src/models/ProcessorServiceChainStateStatusState.ts +41 -0
- package/src/models/ProcessorServiceDownloadProcessorResponse.ts +65 -0
- package/src/models/ProcessorServiceGetProcessorResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorEx.ts +170 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatus.ts +86 -0
- package/src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatusState.ts +41 -0
- package/src/models/ProcessorServiceGetProcessorWithProjectResponse.ts +86 -0
- package/src/models/ProcessorServiceGetProcessorsResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProjectVersionsResponse.ts +72 -0
- package/src/models/ProcessorServiceGetProjectVersionsResponseVersion.ts +88 -0
- package/src/models/ProcessorServiceProcessor.ts +150 -0
- package/src/models/ProcessorServiceProcessorVersionState.ts +41 -0
- package/src/models/QueryLogRequest.ts +146 -0
- package/src/models/QueryRangeRequest.ts +124 -0
- package/src/models/QueryRequest.ts +118 -0
- package/src/models/WebServiceChart.ts +156 -0
- package/src/models/WebServiceChartChartType.ts +45 -0
- package/src/models/WebServiceChartConfig.ts +156 -0
- package/src/models/WebServiceChartConfigBarGaugeConfig.ts +100 -0
- package/src/models/WebServiceChartConfigCalculation.ts +42 -0
- package/src/models/WebServiceChartConfigColorTheme.ts +81 -0
- package/src/models/WebServiceChartConfigColumnSort.ts +73 -0
- package/src/models/WebServiceChartConfigDirection.ts +39 -0
- package/src/models/WebServiceChartConfigMappingRule.ts +96 -0
- package/src/models/WebServiceChartConfigPieConfig.ts +102 -0
- package/src/models/WebServiceChartConfigPieConfigPieType.ts +39 -0
- package/src/models/WebServiceChartConfigQueryValueConfig.ts +94 -0
- package/src/models/WebServiceChartConfigSort.ts +80 -0
- package/src/models/WebServiceChartConfigSortBy.ts +39 -0
- package/src/models/WebServiceChartConfigTableConfig.ts +140 -0
- package/src/models/WebServiceChartConfigTimeRangeOverride.ts +80 -0
- package/src/models/WebServiceChartConfigValueConfig.ts +148 -0
- package/src/models/WebServiceChartConfigValueConfigStyle.ts +42 -0
- package/src/models/WebServiceChartConfigValueFormatter.ts +40 -0
- package/src/models/WebServiceChartConfigYAxisConfig.ts +89 -0
- package/src/models/WebServiceChartDataSourceType.ts +40 -0
- package/src/models/WebServiceDashboard.ts +162 -0
- package/src/models/WebServiceDashboardExtra.ts +86 -0
- package/src/models/WebServiceDashboardExtraTemplateVariable.ts +73 -0
- package/src/models/WebServiceDashboardExtraTemplateView.ts +65 -0
- package/src/models/WebServiceDashboardLayouts.ts +72 -0
- package/src/models/WebServiceDashboardLayoutsLayout.ts +97 -0
- package/src/models/WebServiceDashboardResponsiveLayouts.ts +72 -0
- package/src/models/WebServiceDashboardSharing.ts +89 -0
- package/src/models/WebServiceExportDashboardResponse.ts +65 -0
- package/src/models/WebServiceGetDashboardResponse.ts +86 -0
- package/src/models/WebServiceGetProjectResponse.ts +86 -0
- package/src/models/WebServiceImportDashboardRequest.ts +81 -0
- package/src/models/WebServiceImportDashboardResponse.ts +72 -0
- package/src/models/WebServiceNote.ts +94 -0
- package/src/models/WebServiceNoteAlignment.ts +40 -0
- package/src/models/WebServiceNoteFontSize.ts +42 -0
- package/src/models/WebServicePanel.ts +96 -0
- package/src/models/index.ts +110 -0
- package/src/runtime.ts +407 -0
- package/test/simple.test.ts +21 -0
- package/tsconfig.json +34 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MetricsServiceMetricsQueryResponseMatrix } from './MetricsServiceMetricsQueryResponseMatrix';
|
|
17
|
+
import {
|
|
18
|
+
MetricsServiceMetricsQueryResponseMatrixFromJSON,
|
|
19
|
+
MetricsServiceMetricsQueryResponseMatrixFromJSONTyped,
|
|
20
|
+
MetricsServiceMetricsQueryResponseMatrixToJSON,
|
|
21
|
+
} from './MetricsServiceMetricsQueryResponseMatrix';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface MetricsServiceMetricsQueryResponseResult
|
|
27
|
+
*/
|
|
28
|
+
export interface MetricsServiceMetricsQueryResponseResult {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MetricsServiceMetricsQueryResponseMatrix}
|
|
32
|
+
* @memberof MetricsServiceMetricsQueryResponseResult
|
|
33
|
+
*/
|
|
34
|
+
matrix?: MetricsServiceMetricsQueryResponseMatrix;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof MetricsServiceMetricsQueryResponseResult
|
|
39
|
+
*/
|
|
40
|
+
error?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof MetricsServiceMetricsQueryResponseResult
|
|
45
|
+
*/
|
|
46
|
+
alias?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof MetricsServiceMetricsQueryResponseResult
|
|
51
|
+
*/
|
|
52
|
+
id?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the MetricsServiceMetricsQueryResponseResult interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfMetricsServiceMetricsQueryResponseResult(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
|
|
61
|
+
return isInstance;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MetricsServiceMetricsQueryResponseResultFromJSON(json: any): MetricsServiceMetricsQueryResponseResult {
|
|
65
|
+
return MetricsServiceMetricsQueryResponseResultFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MetricsServiceMetricsQueryResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsServiceMetricsQueryResponseResult {
|
|
69
|
+
if ((json === undefined) || (json === null)) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'matrix': !exists(json, 'matrix') ? undefined : MetricsServiceMetricsQueryResponseMatrixFromJSON(json['matrix']),
|
|
75
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
76
|
+
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
|
77
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function MetricsServiceMetricsQueryResponseResultToJSON(value?: MetricsServiceMetricsQueryResponseResult | null): any {
|
|
82
|
+
if (value === undefined) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
if (value === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'matrix': MetricsServiceMetricsQueryResponseMatrixToJSON(value.matrix),
|
|
91
|
+
'error': value.error,
|
|
92
|
+
'alias': value.alias,
|
|
93
|
+
'id': value.id,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MetricsServiceMetricsQueryResponseMetric } from './MetricsServiceMetricsQueryResponseMetric';
|
|
17
|
+
import {
|
|
18
|
+
MetricsServiceMetricsQueryResponseMetricFromJSON,
|
|
19
|
+
MetricsServiceMetricsQueryResponseMetricFromJSONTyped,
|
|
20
|
+
MetricsServiceMetricsQueryResponseMetricToJSON,
|
|
21
|
+
} from './MetricsServiceMetricsQueryResponseMetric';
|
|
22
|
+
import type { MetricsServiceMetricsQueryResponseValue } from './MetricsServiceMetricsQueryResponseValue';
|
|
23
|
+
import {
|
|
24
|
+
MetricsServiceMetricsQueryResponseValueFromJSON,
|
|
25
|
+
MetricsServiceMetricsQueryResponseValueFromJSONTyped,
|
|
26
|
+
MetricsServiceMetricsQueryResponseValueToJSON,
|
|
27
|
+
} from './MetricsServiceMetricsQueryResponseValue';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface MetricsServiceMetricsQueryResponseSample
|
|
33
|
+
*/
|
|
34
|
+
export interface MetricsServiceMetricsQueryResponseSample {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {MetricsServiceMetricsQueryResponseMetric}
|
|
38
|
+
* @memberof MetricsServiceMetricsQueryResponseSample
|
|
39
|
+
*/
|
|
40
|
+
metric?: MetricsServiceMetricsQueryResponseMetric;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<MetricsServiceMetricsQueryResponseValue>}
|
|
44
|
+
* @memberof MetricsServiceMetricsQueryResponseSample
|
|
45
|
+
*/
|
|
46
|
+
values?: Array<MetricsServiceMetricsQueryResponseValue>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the MetricsServiceMetricsQueryResponseSample interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfMetricsServiceMetricsQueryResponseSample(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MetricsServiceMetricsQueryResponseSampleFromJSON(json: any): MetricsServiceMetricsQueryResponseSample {
|
|
59
|
+
return MetricsServiceMetricsQueryResponseSampleFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MetricsServiceMetricsQueryResponseSampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsServiceMetricsQueryResponseSample {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'metric': !exists(json, 'metric') ? undefined : MetricsServiceMetricsQueryResponseMetricFromJSON(json['metric']),
|
|
69
|
+
'values': !exists(json, 'values') ? undefined : ((json['values'] as Array<any>).map(MetricsServiceMetricsQueryResponseValueFromJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MetricsServiceMetricsQueryResponseSampleToJSON(value?: MetricsServiceMetricsQueryResponseSample | null): any {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'metric': MetricsServiceMetricsQueryResponseMetricToJSON(value.metric),
|
|
83
|
+
'values': value.values === undefined ? undefined : ((value.values as Array<any>).map(MetricsServiceMetricsQueryResponseValueToJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MetricsServiceMetricsQueryResponseValue
|
|
20
|
+
*/
|
|
21
|
+
export interface MetricsServiceMetricsQueryResponseValue {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MetricsServiceMetricsQueryResponseValue
|
|
26
|
+
*/
|
|
27
|
+
timestamp?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof MetricsServiceMetricsQueryResponseValue
|
|
32
|
+
*/
|
|
33
|
+
value?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MetricsServiceMetricsQueryResponseValue interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMetricsServiceMetricsQueryResponseValue(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MetricsServiceMetricsQueryResponseValueFromJSON(json: any): MetricsServiceMetricsQueryResponseValue {
|
|
46
|
+
return MetricsServiceMetricsQueryResponseValueFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MetricsServiceMetricsQueryResponseValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsServiceMetricsQueryResponseValue {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'timestamp': !exists(json, 'timestamp') ? undefined : json['timestamp'],
|
|
56
|
+
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MetricsServiceMetricsQueryResponseValueToJSON(value?: MetricsServiceMetricsQueryResponseValue | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'timestamp': value.timestamp,
|
|
70
|
+
'value': value.value,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MetricsServiceQueryValueResponseResult } from './MetricsServiceQueryValueResponseResult';
|
|
17
|
+
import {
|
|
18
|
+
MetricsServiceQueryValueResponseResultFromJSON,
|
|
19
|
+
MetricsServiceQueryValueResponseResultFromJSONTyped,
|
|
20
|
+
MetricsServiceQueryValueResponseResultToJSON,
|
|
21
|
+
} from './MetricsServiceQueryValueResponseResult';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface MetricsServiceQueryValueResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface MetricsServiceQueryValueResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<MetricsServiceQueryValueResponseResult>}
|
|
32
|
+
* @memberof MetricsServiceQueryValueResponse
|
|
33
|
+
*/
|
|
34
|
+
results?: Array<MetricsServiceQueryValueResponseResult>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the MetricsServiceQueryValueResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfMetricsServiceQueryValueResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function MetricsServiceQueryValueResponseFromJSON(json: any): MetricsServiceQueryValueResponse {
|
|
47
|
+
return MetricsServiceQueryValueResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function MetricsServiceQueryValueResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsServiceQueryValueResponse {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(MetricsServiceQueryValueResponseResultFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MetricsServiceQueryValueResponseToJSON(value?: MetricsServiceQueryValueResponse | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(MetricsServiceQueryValueResponseResultToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MetricsServiceMetricsQueryResponseSample } from './MetricsServiceMetricsQueryResponseSample';
|
|
17
|
+
import {
|
|
18
|
+
MetricsServiceMetricsQueryResponseSampleFromJSON,
|
|
19
|
+
MetricsServiceMetricsQueryResponseSampleFromJSONTyped,
|
|
20
|
+
MetricsServiceMetricsQueryResponseSampleToJSON,
|
|
21
|
+
} from './MetricsServiceMetricsQueryResponseSample';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface MetricsServiceQueryValueResponseResult
|
|
27
|
+
*/
|
|
28
|
+
export interface MetricsServiceQueryValueResponseResult {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<MetricsServiceMetricsQueryResponseSample>}
|
|
32
|
+
* @memberof MetricsServiceQueryValueResponseResult
|
|
33
|
+
*/
|
|
34
|
+
sample?: Array<MetricsServiceMetricsQueryResponseSample>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof MetricsServiceQueryValueResponseResult
|
|
39
|
+
*/
|
|
40
|
+
error?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof MetricsServiceQueryValueResponseResult
|
|
45
|
+
*/
|
|
46
|
+
alias?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof MetricsServiceQueryValueResponseResult
|
|
51
|
+
*/
|
|
52
|
+
id?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the MetricsServiceQueryValueResponseResult interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfMetricsServiceQueryValueResponseResult(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
|
|
61
|
+
return isInstance;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MetricsServiceQueryValueResponseResultFromJSON(json: any): MetricsServiceQueryValueResponseResult {
|
|
65
|
+
return MetricsServiceQueryValueResponseResultFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MetricsServiceQueryValueResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsServiceQueryValueResponseResult {
|
|
69
|
+
if ((json === undefined) || (json === null)) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'sample': !exists(json, 'sample') ? undefined : ((json['sample'] as Array<any>).map(MetricsServiceMetricsQueryResponseSampleFromJSON)),
|
|
75
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
76
|
+
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
|
77
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function MetricsServiceQueryValueResponseResultToJSON(value?: MetricsServiceQueryValueResponseResult | null): any {
|
|
82
|
+
if (value === undefined) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
if (value === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'sample': value.sample === undefined ? undefined : ((value.sample as Array<any>).map(MetricsServiceMetricsQueryResponseSampleToJSON)),
|
|
91
|
+
'error': value.error,
|
|
92
|
+
'alias': value.alias,
|
|
93
|
+
'id': value.id,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ProcessorServiceChainStateStatus } from './ProcessorServiceChainStateStatus';
|
|
17
|
+
import {
|
|
18
|
+
ProcessorServiceChainStateStatusFromJSON,
|
|
19
|
+
ProcessorServiceChainStateStatusFromJSONTyped,
|
|
20
|
+
ProcessorServiceChainStateStatusToJSON,
|
|
21
|
+
} from './ProcessorServiceChainStateStatus';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ProcessorServiceChainState
|
|
27
|
+
*/
|
|
28
|
+
export interface ProcessorServiceChainState {
|
|
29
|
+
/**
|
|
30
|
+
* The chain id.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ProcessorServiceChainState
|
|
33
|
+
*/
|
|
34
|
+
chainId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The most recently processed block number and block hash.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProcessorServiceChainState
|
|
39
|
+
*/
|
|
40
|
+
processedBlockNumber?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ProcessorServiceChainState
|
|
45
|
+
*/
|
|
46
|
+
processedTimestampMicros?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProcessorServiceChainState
|
|
51
|
+
*/
|
|
52
|
+
processedBlockHash?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ProcessorServiceChainState
|
|
57
|
+
*/
|
|
58
|
+
processedVersion?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ProcessorServiceChainStateStatus}
|
|
62
|
+
* @memberof ProcessorServiceChainState
|
|
63
|
+
*/
|
|
64
|
+
status?: ProcessorServiceChainStateStatus;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof ProcessorServiceChainState
|
|
69
|
+
*/
|
|
70
|
+
updatedAt?: Date;
|
|
71
|
+
/**
|
|
72
|
+
* The serialized templates info.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ProcessorServiceChainState
|
|
75
|
+
*/
|
|
76
|
+
templates?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The serialized indexer state.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof ProcessorServiceChainState
|
|
81
|
+
*/
|
|
82
|
+
indexerState?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The serialized meter state.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ProcessorServiceChainState
|
|
87
|
+
*/
|
|
88
|
+
meterState?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof ProcessorServiceChainState
|
|
93
|
+
*/
|
|
94
|
+
initialStartBlockNumber?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ProcessorServiceChainState
|
|
99
|
+
*/
|
|
100
|
+
estimatedLatestBlockNumber?: string;
|
|
101
|
+
/**
|
|
102
|
+
* To be deprecated after the migration.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof ProcessorServiceChainState
|
|
105
|
+
*/
|
|
106
|
+
trackers?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the ProcessorServiceChainState interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfProcessorServiceChainState(value: object): boolean {
|
|
113
|
+
let isInstance = true;
|
|
114
|
+
|
|
115
|
+
return isInstance;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function ProcessorServiceChainStateFromJSON(json: any): ProcessorServiceChainState {
|
|
119
|
+
return ProcessorServiceChainStateFromJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function ProcessorServiceChainStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessorServiceChainState {
|
|
123
|
+
if ((json === undefined) || (json === null)) {
|
|
124
|
+
return json;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
129
|
+
'processedBlockNumber': !exists(json, 'processedBlockNumber') ? undefined : json['processedBlockNumber'],
|
|
130
|
+
'processedTimestampMicros': !exists(json, 'processedTimestampMicros') ? undefined : json['processedTimestampMicros'],
|
|
131
|
+
'processedBlockHash': !exists(json, 'processedBlockHash') ? undefined : json['processedBlockHash'],
|
|
132
|
+
'processedVersion': !exists(json, 'processedVersion') ? undefined : json['processedVersion'],
|
|
133
|
+
'status': !exists(json, 'status') ? undefined : ProcessorServiceChainStateStatusFromJSON(json['status']),
|
|
134
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
135
|
+
'templates': !exists(json, 'templates') ? undefined : json['templates'],
|
|
136
|
+
'indexerState': !exists(json, 'indexerState') ? undefined : json['indexerState'],
|
|
137
|
+
'meterState': !exists(json, 'meterState') ? undefined : json['meterState'],
|
|
138
|
+
'initialStartBlockNumber': !exists(json, 'initialStartBlockNumber') ? undefined : json['initialStartBlockNumber'],
|
|
139
|
+
'estimatedLatestBlockNumber': !exists(json, 'estimatedLatestBlockNumber') ? undefined : json['estimatedLatestBlockNumber'],
|
|
140
|
+
'trackers': !exists(json, 'trackers') ? undefined : json['trackers'],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function ProcessorServiceChainStateToJSON(value?: ProcessorServiceChainState | null): any {
|
|
145
|
+
if (value === undefined) {
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
if (value === null) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'chainId': value.chainId,
|
|
154
|
+
'processedBlockNumber': value.processedBlockNumber,
|
|
155
|
+
'processedTimestampMicros': value.processedTimestampMicros,
|
|
156
|
+
'processedBlockHash': value.processedBlockHash,
|
|
157
|
+
'processedVersion': value.processedVersion,
|
|
158
|
+
'status': ProcessorServiceChainStateStatusToJSON(value.status),
|
|
159
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
160
|
+
'templates': value.templates,
|
|
161
|
+
'indexerState': value.indexerState,
|
|
162
|
+
'meterState': value.meterState,
|
|
163
|
+
'initialStartBlockNumber': value.initialStartBlockNumber,
|
|
164
|
+
'estimatedLatestBlockNumber': value.estimatedLatestBlockNumber,
|
|
165
|
+
'trackers': value.trackers,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { CommonErrorRecord } from './CommonErrorRecord';
|
|
17
|
+
import {
|
|
18
|
+
CommonErrorRecordFromJSON,
|
|
19
|
+
CommonErrorRecordFromJSONTyped,
|
|
20
|
+
CommonErrorRecordToJSON,
|
|
21
|
+
} from './CommonErrorRecord';
|
|
22
|
+
import type { ProcessorServiceChainStateStatusState } from './ProcessorServiceChainStateStatusState';
|
|
23
|
+
import {
|
|
24
|
+
ProcessorServiceChainStateStatusStateFromJSON,
|
|
25
|
+
ProcessorServiceChainStateStatusStateFromJSONTyped,
|
|
26
|
+
ProcessorServiceChainStateStatusStateToJSON,
|
|
27
|
+
} from './ProcessorServiceChainStateStatusState';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface ProcessorServiceChainStateStatus
|
|
33
|
+
*/
|
|
34
|
+
export interface ProcessorServiceChainStateStatus {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ProcessorServiceChainStateStatusState}
|
|
38
|
+
* @memberof ProcessorServiceChainStateStatus
|
|
39
|
+
*/
|
|
40
|
+
state?: ProcessorServiceChainStateStatusState;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {CommonErrorRecord}
|
|
44
|
+
* @memberof ProcessorServiceChainStateStatus
|
|
45
|
+
*/
|
|
46
|
+
errorRecord?: CommonErrorRecord;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ProcessorServiceChainStateStatus interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfProcessorServiceChainStateStatus(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ProcessorServiceChainStateStatusFromJSON(json: any): ProcessorServiceChainStateStatus {
|
|
59
|
+
return ProcessorServiceChainStateStatusFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ProcessorServiceChainStateStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessorServiceChainStateStatus {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'state': !exists(json, 'state') ? undefined : ProcessorServiceChainStateStatusStateFromJSON(json['state']),
|
|
69
|
+
'errorRecord': !exists(json, 'errorRecord') ? undefined : CommonErrorRecordFromJSON(json['errorRecord']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ProcessorServiceChainStateStatusToJSON(value?: ProcessorServiceChainStateStatus | null): any {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'state': ProcessorServiceChainStateStatusStateToJSON(value.state),
|
|
83
|
+
'errorRecord': CommonErrorRecordToJSON(value.errorRecord),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|