gs2 1.4.115 → 1.4.118
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/core/AbstractGs2RestClient.js +3 -3
- package/core/AbstractGs2RestClient.js.map +1 -1
- package/log/model/AggregationConfig.d.ts +17 -0
- package/log/model/AggregationConfig.js +62 -0
- package/log/model/AggregationConfig.js.map +1 -0
- package/log/model/Dashboard.d.ts +43 -0
- package/log/model/Dashboard.js +199 -0
- package/log/model/Dashboard.js.map +1 -0
- package/log/model/Facet.d.ts +26 -0
- package/log/model/Facet.js +99 -0
- package/log/model/Facet.js.map +1 -0
- package/log/model/FacetModel.d.ts +35 -0
- package/log/model/FacetModel.js +171 -0
- package/log/model/FacetModel.js.map +1 -0
- package/log/model/FacetValueCount.d.ts +17 -0
- package/log/model/FacetValueCount.js +62 -0
- package/log/model/FacetValueCount.js.map +1 -0
- package/log/model/Label.d.ts +17 -0
- package/log/model/Label.js +62 -0
- package/log/model/Label.js.map +1 -0
- package/log/model/LogEntry.d.ts +30 -0
- package/log/model/LogEntry.js +112 -0
- package/log/model/LogEntry.js.map +1 -0
- package/log/model/MetricModel.d.ts +23 -0
- package/log/model/MetricModel.js +89 -0
- package/log/model/MetricModel.js.map +1 -0
- package/log/model/NumericRange.d.ts +17 -0
- package/log/model/NumericRange.js +62 -0
- package/log/model/NumericRange.js.map +1 -0
- package/log/model/TimeseriesMetadata.d.ts +17 -0
- package/log/model/TimeseriesMetadata.js +74 -0
- package/log/model/TimeseriesMetadata.js.map +1 -0
- package/log/model/TimeseriesPoint.d.ts +18 -0
- package/log/model/TimeseriesPoint.js +70 -0
- package/log/model/TimeseriesPoint.js.map +1 -0
- package/log/model/TimeseriesValue.d.ts +17 -0
- package/log/model/TimeseriesValue.js +62 -0
- package/log/model/TimeseriesValue.js.map +1 -0
- package/log/model/Trace.d.ts +22 -0
- package/log/model/Trace.js +84 -0
- package/log/model/Trace.js.map +1 -0
- package/log/model/index.d.ts +14 -1
- package/log/model/index.js +27 -1
- package/log/model/index.js.map +1 -1
- package/log/request/CreateDashboardRequest.d.ts +29 -0
- package/log/request/CreateDashboardRequest.js +97 -0
- package/log/request/CreateDashboardRequest.js.map +1 -0
- package/log/request/CreateFacetModelRequest.d.ts +37 -0
- package/log/request/CreateFacetModelRequest.js +125 -0
- package/log/request/CreateFacetModelRequest.js.map +1 -0
- package/log/request/DeleteDashboardRequest.d.ts +25 -0
- package/log/request/DeleteDashboardRequest.js +83 -0
- package/log/request/DeleteDashboardRequest.js.map +1 -0
- package/log/request/DeleteFacetModelRequest.d.ts +25 -0
- package/log/request/DeleteFacetModelRequest.js +83 -0
- package/log/request/DeleteFacetModelRequest.js.map +1 -0
- package/log/request/DescribeDashboardsRequest.d.ts +33 -0
- package/log/request/DescribeDashboardsRequest.js +111 -0
- package/log/request/DescribeDashboardsRequest.js.map +1 -0
- package/log/request/DescribeFacetModelsRequest.d.ts +33 -0
- package/log/request/DescribeFacetModelsRequest.js +111 -0
- package/log/request/DescribeFacetModelsRequest.js.map +1 -0
- package/log/request/DescribeLabelValuesRequest.d.ts +37 -0
- package/log/request/DescribeLabelValuesRequest.js +125 -0
- package/log/request/DescribeLabelValuesRequest.js.map +1 -0
- package/log/request/DescribeMetricsRequest.d.ts +33 -0
- package/log/request/DescribeMetricsRequest.js +111 -0
- package/log/request/DescribeMetricsRequest.js.map +1 -0
- package/log/request/DuplicateDashboardRequest.d.ts +25 -0
- package/log/request/DuplicateDashboardRequest.js +83 -0
- package/log/request/DuplicateDashboardRequest.js.map +1 -0
- package/log/request/GetDashboardRequest.d.ts +25 -0
- package/log/request/GetDashboardRequest.js +83 -0
- package/log/request/GetDashboardRequest.js.map +1 -0
- package/log/request/GetFacetModelRequest.d.ts +25 -0
- package/log/request/GetFacetModelRequest.js +83 -0
- package/log/request/GetFacetModelRequest.js.map +1 -0
- package/log/request/GetLogRequest.d.ts +33 -0
- package/log/request/GetLogRequest.js +111 -0
- package/log/request/GetLogRequest.js.map +1 -0
- package/log/request/GetTraceRequest.d.ts +33 -0
- package/log/request/GetTraceRequest.js +111 -0
- package/log/request/GetTraceRequest.js.map +1 -0
- package/log/request/QueryFacetsRequest.d.ts +33 -0
- package/log/request/QueryFacetsRequest.js +111 -0
- package/log/request/QueryFacetsRequest.js.map +1 -0
- package/log/request/QueryLogRequest.d.ts +41 -0
- package/log/request/QueryLogRequest.js +139 -0
- package/log/request/QueryLogRequest.js.map +1 -0
- package/log/request/QueryMetricsTimeseriesRequest.d.ts +58 -0
- package/log/request/QueryMetricsTimeseriesRequest.js +209 -0
- package/log/request/QueryMetricsTimeseriesRequest.js.map +1 -0
- package/log/request/QueryTimeseriesRequest.d.ts +58 -0
- package/log/request/QueryTimeseriesRequest.js +204 -0
- package/log/request/QueryTimeseriesRequest.js.map +1 -0
- package/log/request/UpdateDashboardRequest.d.ts +37 -0
- package/log/request/UpdateDashboardRequest.js +125 -0
- package/log/request/UpdateDashboardRequest.js.map +1 -0
- package/log/request/UpdateFacetModelRequest.d.ts +37 -0
- package/log/request/UpdateFacetModelRequest.js +125 -0
- package/log/request/UpdateFacetModelRequest.js.map +1 -0
- package/log/request/index.d.ts +20 -1
- package/log/request/index.js +39 -1
- package/log/request/index.js.map +1 -1
- package/log/rest.d.ts +19 -0
- package/log/rest.js +387 -0
- package/log/rest.js.map +1 -1
- package/log/result/CreateDashboardResult.d.ts +14 -0
- package/log/result/CreateDashboardResult.js +48 -0
- package/log/result/CreateDashboardResult.js.map +1 -0
- package/log/result/CreateFacetModelResult.d.ts +14 -0
- package/log/result/CreateFacetModelResult.js +48 -0
- package/log/result/CreateFacetModelResult.js.map +1 -0
- package/log/result/DeleteDashboardResult.d.ts +14 -0
- package/log/result/DeleteDashboardResult.js +48 -0
- package/log/result/DeleteDashboardResult.js.map +1 -0
- package/log/result/DeleteFacetModelResult.d.ts +14 -0
- package/log/result/DeleteFacetModelResult.js +48 -0
- package/log/result/DeleteFacetModelResult.js.map +1 -0
- package/log/result/DescribeDashboardsResult.d.ts +18 -0
- package/log/result/DescribeDashboardsResult.js +67 -0
- package/log/result/DescribeDashboardsResult.js.map +1 -0
- package/log/result/DescribeFacetModelsResult.d.ts +18 -0
- package/log/result/DescribeFacetModelsResult.js +67 -0
- package/log/result/DescribeFacetModelsResult.js.map +1 -0
- package/log/result/DescribeLabelValuesResult.d.ts +18 -0
- package/log/result/DescribeLabelValuesResult.js +67 -0
- package/log/result/DescribeLabelValuesResult.js.map +1 -0
- package/log/result/DescribeMetricsResult.d.ts +18 -0
- package/log/result/DescribeMetricsResult.js +67 -0
- package/log/result/DescribeMetricsResult.js.map +1 -0
- package/log/result/DuplicateDashboardResult.d.ts +14 -0
- package/log/result/DuplicateDashboardResult.js +48 -0
- package/log/result/DuplicateDashboardResult.js.map +1 -0
- package/log/result/GetDashboardResult.d.ts +14 -0
- package/log/result/GetDashboardResult.js +48 -0
- package/log/result/GetDashboardResult.js.map +1 -0
- package/log/result/GetFacetModelResult.d.ts +14 -0
- package/log/result/GetFacetModelResult.js +48 -0
- package/log/result/GetFacetModelResult.js.map +1 -0
- package/log/result/GetLogResult.d.ts +14 -0
- package/log/result/GetLogResult.js +48 -0
- package/log/result/GetLogResult.js.map +1 -0
- package/log/result/GetTraceResult.d.ts +22 -0
- package/log/result/GetTraceResult.js +82 -0
- package/log/result/GetTraceResult.js.map +1 -0
- package/log/result/QueryFacetsResult.d.ts +14 -0
- package/log/result/QueryFacetsResult.js +53 -0
- package/log/result/QueryFacetsResult.js.map +1 -0
- package/log/result/QueryLogResult.d.ts +22 -0
- package/log/result/QueryLogResult.js +81 -0
- package/log/result/QueryLogResult.js.map +1 -0
- package/log/result/QueryMetricsTimeseriesResult.d.ts +18 -0
- package/log/result/QueryMetricsTimeseriesResult.js +68 -0
- package/log/result/QueryMetricsTimeseriesResult.js.map +1 -0
- package/log/result/QueryTimeseriesResult.d.ts +22 -0
- package/log/result/QueryTimeseriesResult.js +82 -0
- package/log/result/QueryTimeseriesResult.js.map +1 -0
- package/log/result/UpdateDashboardResult.d.ts +14 -0
- package/log/result/UpdateDashboardResult.js +48 -0
- package/log/result/UpdateDashboardResult.js.map +1 -0
- package/log/result/UpdateFacetModelResult.d.ts +14 -0
- package/log/result/UpdateFacetModelResult.js +48 -0
- package/log/result/UpdateFacetModelResult.js.map +1 -0
- package/log/result/index.d.ts +20 -1
- package/log/result/index.js +39 -1
- package/log/result/index.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:log:{namespaceName}:model:facet:{field}";
|
|
19
|
+
var FacetModel = /** @class */ (function () {
|
|
20
|
+
function FacetModel() {
|
|
21
|
+
this.facetModelId = null;
|
|
22
|
+
this.field = null;
|
|
23
|
+
this.type = null;
|
|
24
|
+
this.displayName = null;
|
|
25
|
+
this.order = null;
|
|
26
|
+
}
|
|
27
|
+
FacetModel.getRegion = function (grn) {
|
|
28
|
+
var match = grn.match(grnFormat
|
|
29
|
+
.replace('{region}', '(.*)')
|
|
30
|
+
.replace('{ownerId}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{field}', '.*'));
|
|
33
|
+
if (match) {
|
|
34
|
+
return match[1];
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
FacetModel.getOwnerId = function (grn) {
|
|
39
|
+
var match = grn.match(grnFormat
|
|
40
|
+
.replace('{region}', '.*')
|
|
41
|
+
.replace('{ownerId}', '(.*)')
|
|
42
|
+
.replace('{namespaceName}', '.*')
|
|
43
|
+
.replace('{field}', '.*'));
|
|
44
|
+
if (match) {
|
|
45
|
+
return match[1];
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
FacetModel.getNamespaceName = function (grn) {
|
|
50
|
+
var match = grn.match(grnFormat
|
|
51
|
+
.replace('{region}', '.*')
|
|
52
|
+
.replace('{ownerId}', '.*')
|
|
53
|
+
.replace('{namespaceName}', '(.*)')
|
|
54
|
+
.replace('{field}', '.*'));
|
|
55
|
+
if (match) {
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
FacetModel.getField = function (grn) {
|
|
61
|
+
var match = grn.match(grnFormat
|
|
62
|
+
.replace('{region}', '.*')
|
|
63
|
+
.replace('{ownerId}', '.*')
|
|
64
|
+
.replace('{namespaceName}', '.*')
|
|
65
|
+
.replace('{field}', '(.*)'));
|
|
66
|
+
if (match) {
|
|
67
|
+
return match[1];
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
};
|
|
71
|
+
FacetModel.isValid = function (grn) {
|
|
72
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (this.getField(grn) == null || this.getField(grn) === '') {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
};
|
|
86
|
+
FacetModel.createGrn = function (region, ownerId, namespaceName, field) {
|
|
87
|
+
return grnFormat
|
|
88
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
89
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
90
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
91
|
+
.replace('{field}', field !== null && field !== void 0 ? field : '');
|
|
92
|
+
};
|
|
93
|
+
FacetModel.prototype.getFacetModelId = function () {
|
|
94
|
+
return this.facetModelId;
|
|
95
|
+
};
|
|
96
|
+
FacetModel.prototype.setFacetModelId = function (facetModelId) {
|
|
97
|
+
this.facetModelId = facetModelId;
|
|
98
|
+
return this;
|
|
99
|
+
};
|
|
100
|
+
FacetModel.prototype.withFacetModelId = function (facetModelId) {
|
|
101
|
+
this.facetModelId = facetModelId;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
FacetModel.prototype.getField = function () {
|
|
105
|
+
return this.field;
|
|
106
|
+
};
|
|
107
|
+
FacetModel.prototype.setField = function (field) {
|
|
108
|
+
this.field = field;
|
|
109
|
+
return this;
|
|
110
|
+
};
|
|
111
|
+
FacetModel.prototype.withField = function (field) {
|
|
112
|
+
this.field = field;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
FacetModel.prototype.getType = function () {
|
|
116
|
+
return this.type;
|
|
117
|
+
};
|
|
118
|
+
FacetModel.prototype.setType = function (type) {
|
|
119
|
+
this.type = type;
|
|
120
|
+
return this;
|
|
121
|
+
};
|
|
122
|
+
FacetModel.prototype.withType = function (type) {
|
|
123
|
+
this.type = type;
|
|
124
|
+
return this;
|
|
125
|
+
};
|
|
126
|
+
FacetModel.prototype.getDisplayName = function () {
|
|
127
|
+
return this.displayName;
|
|
128
|
+
};
|
|
129
|
+
FacetModel.prototype.setDisplayName = function (displayName) {
|
|
130
|
+
this.displayName = displayName;
|
|
131
|
+
return this;
|
|
132
|
+
};
|
|
133
|
+
FacetModel.prototype.withDisplayName = function (displayName) {
|
|
134
|
+
this.displayName = displayName;
|
|
135
|
+
return this;
|
|
136
|
+
};
|
|
137
|
+
FacetModel.prototype.getOrder = function () {
|
|
138
|
+
return this.order;
|
|
139
|
+
};
|
|
140
|
+
FacetModel.prototype.setOrder = function (order) {
|
|
141
|
+
this.order = order;
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
FacetModel.prototype.withOrder = function (order) {
|
|
145
|
+
this.order = order;
|
|
146
|
+
return this;
|
|
147
|
+
};
|
|
148
|
+
FacetModel.fromDict = function (data) {
|
|
149
|
+
if (data == undefined || data == null) {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
return new FacetModel()
|
|
153
|
+
.withFacetModelId(data["facetModelId"])
|
|
154
|
+
.withField(data["field"])
|
|
155
|
+
.withType(data["type"])
|
|
156
|
+
.withDisplayName(data["displayName"])
|
|
157
|
+
.withOrder(data["order"]);
|
|
158
|
+
};
|
|
159
|
+
FacetModel.prototype.toDict = function () {
|
|
160
|
+
return {
|
|
161
|
+
"facetModelId": this.getFacetModelId(),
|
|
162
|
+
"field": this.getField(),
|
|
163
|
+
"type": this.getType(),
|
|
164
|
+
"displayName": this.getDisplayName(),
|
|
165
|
+
"order": this.getOrder(),
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
return FacetModel;
|
|
169
|
+
}());
|
|
170
|
+
exports.default = FacetModel;
|
|
171
|
+
//# sourceMappingURL=FacetModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FacetModel.js","sourceRoot":"","sources":["../../../src/log/model/FacetModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAKH,IAAM,SAAS,GAAW,oEAAoE,CAAC;AAE/F;IAAA;QACY,iBAAY,GAAgB,IAAI,CAAC;QACjC,UAAK,GAAgB,IAAI,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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class FacetValueCount implements IModel {
|
|
3
|
+
private value;
|
|
4
|
+
private count;
|
|
5
|
+
getValue(): string | null;
|
|
6
|
+
setValue(value: string | null): this;
|
|
7
|
+
withValue(value: string | null): this;
|
|
8
|
+
getCount(): number | null;
|
|
9
|
+
setCount(count: number | null): this;
|
|
10
|
+
withCount(count: number | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): FacetValueCount | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var FacetValueCount = /** @class */ (function () {
|
|
19
|
+
function FacetValueCount() {
|
|
20
|
+
this.value = null;
|
|
21
|
+
this.count = null;
|
|
22
|
+
}
|
|
23
|
+
FacetValueCount.prototype.getValue = function () {
|
|
24
|
+
return this.value;
|
|
25
|
+
};
|
|
26
|
+
FacetValueCount.prototype.setValue = function (value) {
|
|
27
|
+
this.value = value;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
FacetValueCount.prototype.withValue = function (value) {
|
|
31
|
+
this.value = value;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
FacetValueCount.prototype.getCount = function () {
|
|
35
|
+
return this.count;
|
|
36
|
+
};
|
|
37
|
+
FacetValueCount.prototype.setCount = function (count) {
|
|
38
|
+
this.count = count;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
FacetValueCount.prototype.withCount = function (count) {
|
|
42
|
+
this.count = count;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
FacetValueCount.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new FacetValueCount()
|
|
50
|
+
.withValue(data["value"])
|
|
51
|
+
.withCount(data["count"]);
|
|
52
|
+
};
|
|
53
|
+
FacetValueCount.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"value": this.getValue(),
|
|
56
|
+
"count": this.getCount(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return FacetValueCount;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = FacetValueCount;
|
|
62
|
+
//# sourceMappingURL=FacetValueCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FacetValueCount.js","sourceRoot":"","sources":["../../../src/log/model/FacetValueCount.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,UAAK,GAAgB,IAAI,CAAC;QAC1B,UAAK,GAAgB,IAAI,CAAC;IAuCtC,CAAC;IAtCU,kCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACM,kCAAQ,GAAf,UAAgB,KAAkB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACM,kCAAQ,GAAf,UAAgB,KAAkB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,eAAe,EAAE;aACvB,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxB,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,gCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class Label implements IModel {
|
|
3
|
+
private key;
|
|
4
|
+
private value;
|
|
5
|
+
getKey(): string | null;
|
|
6
|
+
setKey(key: string | null): this;
|
|
7
|
+
withKey(key: string | null): this;
|
|
8
|
+
getValue(): string | null;
|
|
9
|
+
setValue(value: string | null): this;
|
|
10
|
+
withValue(value: string | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): Label | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var Label = /** @class */ (function () {
|
|
19
|
+
function Label() {
|
|
20
|
+
this.key = null;
|
|
21
|
+
this.value = null;
|
|
22
|
+
}
|
|
23
|
+
Label.prototype.getKey = function () {
|
|
24
|
+
return this.key;
|
|
25
|
+
};
|
|
26
|
+
Label.prototype.setKey = function (key) {
|
|
27
|
+
this.key = key;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
Label.prototype.withKey = function (key) {
|
|
31
|
+
this.key = key;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
Label.prototype.getValue = function () {
|
|
35
|
+
return this.value;
|
|
36
|
+
};
|
|
37
|
+
Label.prototype.setValue = function (value) {
|
|
38
|
+
this.value = value;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
Label.prototype.withValue = function (value) {
|
|
42
|
+
this.value = value;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
Label.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new Label()
|
|
50
|
+
.withKey(data["key"])
|
|
51
|
+
.withValue(data["value"]);
|
|
52
|
+
};
|
|
53
|
+
Label.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"key": this.getKey(),
|
|
56
|
+
"value": this.getValue(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return Label;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = Label;
|
|
62
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../src/log/model/Label.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,QAAG,GAAgB,IAAI,CAAC;QACxB,UAAK,GAAgB,IAAI,CAAC;IAuCtC,CAAC;IAtCU,sBAAM,GAAb;QACI,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IACM,sBAAM,GAAb,UAAc,GAAgB;QAC1B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,uBAAO,GAAd,UAAe,GAAgB;QAC3B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,wBAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACM,wBAAQ,GAAf,UAAgB,KAAkB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yBAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,cAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,KAAK,EAAE;aACb,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACpB,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,sBAAM,GAAb;QACI,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,YAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import * as Gs2Log from '../../log/model';
|
|
3
|
+
export default class LogEntry implements IModel {
|
|
4
|
+
private timestamp;
|
|
5
|
+
private status;
|
|
6
|
+
private duration;
|
|
7
|
+
private line;
|
|
8
|
+
private labels;
|
|
9
|
+
getTimestamp(): number | null;
|
|
10
|
+
setTimestamp(timestamp: number | null): this;
|
|
11
|
+
withTimestamp(timestamp: number | null): this;
|
|
12
|
+
getStatus(): string | null;
|
|
13
|
+
setStatus(status: string | null): this;
|
|
14
|
+
withStatus(status: string | null): this;
|
|
15
|
+
getDuration(): number | null;
|
|
16
|
+
setDuration(duration: number | null): this;
|
|
17
|
+
withDuration(duration: number | null): this;
|
|
18
|
+
getLine(): string | null;
|
|
19
|
+
setLine(line: string | null): this;
|
|
20
|
+
withLine(line: string | null): this;
|
|
21
|
+
getLabels(): Gs2Log.Label[] | null;
|
|
22
|
+
setLabels(labels: Gs2Log.Label[] | null): this;
|
|
23
|
+
withLabels(labels: Gs2Log.Label[] | null): this;
|
|
24
|
+
static fromDict(data: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}): LogEntry | null;
|
|
27
|
+
toDict(): {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Log = tslib_1.__importStar(require("../../log/model"));
|
|
20
|
+
var LogEntry = /** @class */ (function () {
|
|
21
|
+
function LogEntry() {
|
|
22
|
+
this.timestamp = null;
|
|
23
|
+
this.status = null;
|
|
24
|
+
this.duration = null;
|
|
25
|
+
this.line = null;
|
|
26
|
+
this.labels = null;
|
|
27
|
+
}
|
|
28
|
+
LogEntry.prototype.getTimestamp = function () {
|
|
29
|
+
return this.timestamp;
|
|
30
|
+
};
|
|
31
|
+
LogEntry.prototype.setTimestamp = function (timestamp) {
|
|
32
|
+
this.timestamp = timestamp;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
LogEntry.prototype.withTimestamp = function (timestamp) {
|
|
36
|
+
this.timestamp = timestamp;
|
|
37
|
+
return this;
|
|
38
|
+
};
|
|
39
|
+
LogEntry.prototype.getStatus = function () {
|
|
40
|
+
return this.status;
|
|
41
|
+
};
|
|
42
|
+
LogEntry.prototype.setStatus = function (status) {
|
|
43
|
+
this.status = status;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
LogEntry.prototype.withStatus = function (status) {
|
|
47
|
+
this.status = status;
|
|
48
|
+
return this;
|
|
49
|
+
};
|
|
50
|
+
LogEntry.prototype.getDuration = function () {
|
|
51
|
+
return this.duration;
|
|
52
|
+
};
|
|
53
|
+
LogEntry.prototype.setDuration = function (duration) {
|
|
54
|
+
this.duration = duration;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
LogEntry.prototype.withDuration = function (duration) {
|
|
58
|
+
this.duration = duration;
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
LogEntry.prototype.getLine = function () {
|
|
62
|
+
return this.line;
|
|
63
|
+
};
|
|
64
|
+
LogEntry.prototype.setLine = function (line) {
|
|
65
|
+
this.line = line;
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
LogEntry.prototype.withLine = function (line) {
|
|
69
|
+
this.line = line;
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
72
|
+
LogEntry.prototype.getLabels = function () {
|
|
73
|
+
return this.labels;
|
|
74
|
+
};
|
|
75
|
+
LogEntry.prototype.setLabels = function (labels) {
|
|
76
|
+
this.labels = labels;
|
|
77
|
+
return this;
|
|
78
|
+
};
|
|
79
|
+
LogEntry.prototype.withLabels = function (labels) {
|
|
80
|
+
this.labels = labels;
|
|
81
|
+
return this;
|
|
82
|
+
};
|
|
83
|
+
LogEntry.fromDict = function (data) {
|
|
84
|
+
if (data == undefined || data == null) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return new LogEntry()
|
|
88
|
+
.withTimestamp(data["timestamp"])
|
|
89
|
+
.withStatus(data["status"])
|
|
90
|
+
.withDuration(data["duration"])
|
|
91
|
+
.withLine(data["line"])
|
|
92
|
+
.withLabels(data.labels ?
|
|
93
|
+
data.labels.map(function (item) {
|
|
94
|
+
return Gs2Log.Label.fromDict(item);
|
|
95
|
+
}) : null);
|
|
96
|
+
};
|
|
97
|
+
LogEntry.prototype.toDict = function () {
|
|
98
|
+
return {
|
|
99
|
+
"timestamp": this.getTimestamp(),
|
|
100
|
+
"status": this.getStatus(),
|
|
101
|
+
"duration": this.getDuration(),
|
|
102
|
+
"line": this.getLine(),
|
|
103
|
+
"labels": this.getLabels() ?
|
|
104
|
+
this.getLabels().map(function (item) {
|
|
105
|
+
return item.toDict();
|
|
106
|
+
}) : null,
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
return LogEntry;
|
|
110
|
+
}());
|
|
111
|
+
exports.default = LogEntry;
|
|
112
|
+
//# sourceMappingURL=LogEntry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogEntry.js","sourceRoot":"","sources":["../../../src/log/model/LogEntry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,8DAAyC;AAGzC;IAAA;QACY,cAAS,GAAgB,IAAI,CAAC;QAC9B,WAAM,GAAgB,IAAI,CAAC;QAC3B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAwB,IAAI,CAAC;IAsF/C,CAAC;IArFU,+BAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,+BAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,gCAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4BAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,4BAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6BAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8BAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,8BAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,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AAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvC,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,yBAAM,GAAb;QACI,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAkB;oBACrC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,eAAC;AAAD,CAAC,AA3FD,IA2FC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class MetricModel implements IModel {
|
|
3
|
+
private name;
|
|
4
|
+
private type;
|
|
5
|
+
private labels;
|
|
6
|
+
static isValid(grn: string): boolean;
|
|
7
|
+
static createGrn(): string | null;
|
|
8
|
+
getName(): string | null;
|
|
9
|
+
setName(name: string | null): this;
|
|
10
|
+
withName(name: string | null): this;
|
|
11
|
+
getType(): string | null;
|
|
12
|
+
setType(type: string | null): this;
|
|
13
|
+
withType(type: string | null): this;
|
|
14
|
+
getLabels(): string[] | null;
|
|
15
|
+
setLabels(labels: string[] | null): this;
|
|
16
|
+
withLabels(labels: string[] | null): this;
|
|
17
|
+
static fromDict(data: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}): MetricModel | null;
|
|
20
|
+
toDict(): {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var grnFormat = "";
|
|
19
|
+
var MetricModel = /** @class */ (function () {
|
|
20
|
+
function MetricModel() {
|
|
21
|
+
this.name = null;
|
|
22
|
+
this.type = null;
|
|
23
|
+
this.labels = null;
|
|
24
|
+
}
|
|
25
|
+
MetricModel.isValid = function (grn) {
|
|
26
|
+
return true;
|
|
27
|
+
};
|
|
28
|
+
MetricModel.createGrn = function () {
|
|
29
|
+
return grnFormat;
|
|
30
|
+
};
|
|
31
|
+
MetricModel.prototype.getName = function () {
|
|
32
|
+
return this.name;
|
|
33
|
+
};
|
|
34
|
+
MetricModel.prototype.setName = function (name) {
|
|
35
|
+
this.name = name;
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
MetricModel.prototype.withName = function (name) {
|
|
39
|
+
this.name = name;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
MetricModel.prototype.getType = function () {
|
|
43
|
+
return this.type;
|
|
44
|
+
};
|
|
45
|
+
MetricModel.prototype.setType = function (type) {
|
|
46
|
+
this.type = type;
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
MetricModel.prototype.withType = function (type) {
|
|
50
|
+
this.type = type;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
MetricModel.prototype.getLabels = function () {
|
|
54
|
+
return this.labels;
|
|
55
|
+
};
|
|
56
|
+
MetricModel.prototype.setLabels = function (labels) {
|
|
57
|
+
this.labels = labels;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
60
|
+
MetricModel.prototype.withLabels = function (labels) {
|
|
61
|
+
this.labels = labels;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
MetricModel.fromDict = function (data) {
|
|
65
|
+
if (data == undefined || data == null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return new MetricModel()
|
|
69
|
+
.withName(data["name"])
|
|
70
|
+
.withType(data["type"])
|
|
71
|
+
.withLabels(data.labels ?
|
|
72
|
+
data.labels.map(function (item) {
|
|
73
|
+
return item;
|
|
74
|
+
}) : null);
|
|
75
|
+
};
|
|
76
|
+
MetricModel.prototype.toDict = function () {
|
|
77
|
+
return {
|
|
78
|
+
"name": this.getName(),
|
|
79
|
+
"type": this.getType(),
|
|
80
|
+
"labels": this.getLabels() ?
|
|
81
|
+
this.getLabels().map(function (item) {
|
|
82
|
+
return item;
|
|
83
|
+
}) : null,
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
return MetricModel;
|
|
87
|
+
}());
|
|
88
|
+
exports.default = MetricModel;
|
|
89
|
+
//# sourceMappingURL=MetricModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricModel.js","sourceRoot":"","sources":["../../../src/log/model/MetricModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAKH,IAAM,SAAS,GAAW,EAAE,CAAC;AAE7B;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAkB,IAAI,CAAC;IAqEzC,CAAC;IAnEiB,mBAAO,GAArB,UAAsB,GAAW;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAS,GAAvB;QAEI,OAAO,SAAS,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AC,IAA0B;gBACvC,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,4BAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC/B,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,kBAAC;AAAD,CAAC,AAxED,IAwEC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class NumericRange implements IModel {
|
|
3
|
+
private min;
|
|
4
|
+
private max;
|
|
5
|
+
getMin(): number | null;
|
|
6
|
+
setMin(min: number | null): this;
|
|
7
|
+
withMin(min: number | null): this;
|
|
8
|
+
getMax(): number | null;
|
|
9
|
+
setMax(max: number | null): this;
|
|
10
|
+
withMax(max: number | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): NumericRange | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|