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,139 @@
|
|
|
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 QueryLogRequest = /** @class */ (function () {
|
|
19
|
+
function QueryLogRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.begin = null;
|
|
24
|
+
this.end = null;
|
|
25
|
+
this.query = null;
|
|
26
|
+
this.pageToken = null;
|
|
27
|
+
this.limit = null;
|
|
28
|
+
}
|
|
29
|
+
QueryLogRequest.prototype.getRequestId = function () {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
};
|
|
32
|
+
QueryLogRequest.prototype.setRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
QueryLogRequest.prototype.withRequestId = function (requestId) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
QueryLogRequest.prototype.getContextStack = function () {
|
|
41
|
+
return this.contextStack;
|
|
42
|
+
};
|
|
43
|
+
QueryLogRequest.prototype.setContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
QueryLogRequest.prototype.withContextStack = function (contextStack) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
QueryLogRequest.prototype.getNamespaceName = function () {
|
|
52
|
+
return this.namespaceName;
|
|
53
|
+
};
|
|
54
|
+
QueryLogRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
55
|
+
this.namespaceName = namespaceName;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
QueryLogRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
59
|
+
this.namespaceName = namespaceName;
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
QueryLogRequest.prototype.getBegin = function () {
|
|
63
|
+
return this.begin;
|
|
64
|
+
};
|
|
65
|
+
QueryLogRequest.prototype.setBegin = function (begin) {
|
|
66
|
+
this.begin = begin;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
QueryLogRequest.prototype.withBegin = function (begin) {
|
|
70
|
+
this.begin = begin;
|
|
71
|
+
return this;
|
|
72
|
+
};
|
|
73
|
+
QueryLogRequest.prototype.getEnd = function () {
|
|
74
|
+
return this.end;
|
|
75
|
+
};
|
|
76
|
+
QueryLogRequest.prototype.setEnd = function (end) {
|
|
77
|
+
this.end = end;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
QueryLogRequest.prototype.withEnd = function (end) {
|
|
81
|
+
this.end = end;
|
|
82
|
+
return this;
|
|
83
|
+
};
|
|
84
|
+
QueryLogRequest.prototype.getQuery = function () {
|
|
85
|
+
return this.query;
|
|
86
|
+
};
|
|
87
|
+
QueryLogRequest.prototype.setQuery = function (query) {
|
|
88
|
+
this.query = query;
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
QueryLogRequest.prototype.withQuery = function (query) {
|
|
92
|
+
this.query = query;
|
|
93
|
+
return this;
|
|
94
|
+
};
|
|
95
|
+
QueryLogRequest.prototype.getPageToken = function () {
|
|
96
|
+
return this.pageToken;
|
|
97
|
+
};
|
|
98
|
+
QueryLogRequest.prototype.setPageToken = function (pageToken) {
|
|
99
|
+
this.pageToken = pageToken;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
QueryLogRequest.prototype.withPageToken = function (pageToken) {
|
|
103
|
+
this.pageToken = pageToken;
|
|
104
|
+
return this;
|
|
105
|
+
};
|
|
106
|
+
QueryLogRequest.prototype.getLimit = function () {
|
|
107
|
+
return this.limit;
|
|
108
|
+
};
|
|
109
|
+
QueryLogRequest.prototype.setLimit = function (limit) {
|
|
110
|
+
this.limit = limit;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
QueryLogRequest.prototype.withLimit = function (limit) {
|
|
114
|
+
this.limit = limit;
|
|
115
|
+
return this;
|
|
116
|
+
};
|
|
117
|
+
QueryLogRequest.fromDict = function (data) {
|
|
118
|
+
return new QueryLogRequest()
|
|
119
|
+
.withNamespaceName(data["namespaceName"])
|
|
120
|
+
.withBegin(data["begin"])
|
|
121
|
+
.withEnd(data["end"])
|
|
122
|
+
.withQuery(data["query"])
|
|
123
|
+
.withPageToken(data["pageToken"])
|
|
124
|
+
.withLimit(data["limit"]);
|
|
125
|
+
};
|
|
126
|
+
QueryLogRequest.prototype.toDict = function () {
|
|
127
|
+
return {
|
|
128
|
+
"namespaceName": this.getNamespaceName(),
|
|
129
|
+
"begin": this.getBegin(),
|
|
130
|
+
"end": this.getEnd(),
|
|
131
|
+
"query": this.getQuery(),
|
|
132
|
+
"pageToken": this.getPageToken(),
|
|
133
|
+
"limit": this.getLimit(),
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
return QueryLogRequest;
|
|
137
|
+
}());
|
|
138
|
+
exports.default = QueryLogRequest;
|
|
139
|
+
//# sourceMappingURL=QueryLogRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryLogRequest.js","sourceRoot":"","sources":["../../../src/log/request/QueryLogRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,UAAK,GAAgB,IAAI,CAAC;QAC1B,QAAG,GAAgB,IAAI,CAAC;QACxB,UAAK,GAAgB,IAAI,CAAC;QAC1B,cAAS,GAAgB,IAAI,CAAC;QAC9B,UAAK,GAAgB,IAAI,CAAC;IAoHtC,CAAC;IAlHU,sCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,sCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uCAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,yCAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAgB,GAAvB;QACI,OAAO,IAA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 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Log from '../model';
|
|
3
|
+
export default class QueryMetricsTimeseriesRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private begin;
|
|
8
|
+
private end;
|
|
9
|
+
private query;
|
|
10
|
+
private groupBy;
|
|
11
|
+
private aggregations;
|
|
12
|
+
private interval;
|
|
13
|
+
private seriesLimit;
|
|
14
|
+
private orderKey;
|
|
15
|
+
private orderBy;
|
|
16
|
+
getRequestId(): string | null;
|
|
17
|
+
setRequestId(requestId: string | null): this;
|
|
18
|
+
withRequestId(requestId: string | null): this;
|
|
19
|
+
getContextStack(): string | null;
|
|
20
|
+
setContextStack(contextStack: string | null): this;
|
|
21
|
+
withContextStack(contextStack: string | null): this;
|
|
22
|
+
getNamespaceName(): string | null;
|
|
23
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
24
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
25
|
+
getBegin(): number | null;
|
|
26
|
+
setBegin(begin: number | null): this;
|
|
27
|
+
withBegin(begin: number | null): this;
|
|
28
|
+
getEnd(): number | null;
|
|
29
|
+
setEnd(end: number | null): this;
|
|
30
|
+
withEnd(end: number | null): this;
|
|
31
|
+
getQuery(): string | null;
|
|
32
|
+
setQuery(query: string | null): this;
|
|
33
|
+
withQuery(query: string | null): this;
|
|
34
|
+
getGroupBy(): string[] | null;
|
|
35
|
+
setGroupBy(groupBy: string[] | null): this;
|
|
36
|
+
withGroupBy(groupBy: string[] | null): this;
|
|
37
|
+
getAggregations(): Gs2Log.AggregationConfig[] | null;
|
|
38
|
+
setAggregations(aggregations: Gs2Log.AggregationConfig[] | null): this;
|
|
39
|
+
withAggregations(aggregations: Gs2Log.AggregationConfig[] | null): this;
|
|
40
|
+
getInterval(): number | null;
|
|
41
|
+
setInterval(interval: number | null): this;
|
|
42
|
+
withInterval(interval: number | null): this;
|
|
43
|
+
getSeriesLimit(): number | null;
|
|
44
|
+
setSeriesLimit(seriesLimit: number | null): this;
|
|
45
|
+
withSeriesLimit(seriesLimit: number | null): this;
|
|
46
|
+
getOrderKey(): string | null;
|
|
47
|
+
setOrderKey(orderKey: string | null): this;
|
|
48
|
+
withOrderKey(orderKey: string | null): this;
|
|
49
|
+
getOrderBy(): string | null;
|
|
50
|
+
setOrderBy(orderBy: string | null): this;
|
|
51
|
+
withOrderBy(orderBy: string | null): this;
|
|
52
|
+
static fromDict(data: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}): QueryMetricsTimeseriesRequest;
|
|
55
|
+
toDict(): {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
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("../model"));
|
|
20
|
+
var QueryMetricsTimeseriesRequest = /** @class */ (function () {
|
|
21
|
+
function QueryMetricsTimeseriesRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.begin = null;
|
|
26
|
+
this.end = null;
|
|
27
|
+
this.query = null;
|
|
28
|
+
this.groupBy = null;
|
|
29
|
+
this.aggregations = null;
|
|
30
|
+
this.interval = null;
|
|
31
|
+
this.seriesLimit = null;
|
|
32
|
+
this.orderKey = null;
|
|
33
|
+
this.orderBy = null;
|
|
34
|
+
}
|
|
35
|
+
QueryMetricsTimeseriesRequest.prototype.getRequestId = function () {
|
|
36
|
+
return this.requestId;
|
|
37
|
+
};
|
|
38
|
+
QueryMetricsTimeseriesRequest.prototype.setRequestId = function (requestId) {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
QueryMetricsTimeseriesRequest.prototype.withRequestId = function (requestId) {
|
|
43
|
+
this.requestId = requestId;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
QueryMetricsTimeseriesRequest.prototype.getContextStack = function () {
|
|
47
|
+
return this.contextStack;
|
|
48
|
+
};
|
|
49
|
+
QueryMetricsTimeseriesRequest.prototype.setContextStack = function (contextStack) {
|
|
50
|
+
this.contextStack = contextStack;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
QueryMetricsTimeseriesRequest.prototype.withContextStack = function (contextStack) {
|
|
54
|
+
this.contextStack = contextStack;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
QueryMetricsTimeseriesRequest.prototype.getNamespaceName = function () {
|
|
58
|
+
return this.namespaceName;
|
|
59
|
+
};
|
|
60
|
+
QueryMetricsTimeseriesRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
QueryMetricsTimeseriesRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
65
|
+
this.namespaceName = namespaceName;
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
QueryMetricsTimeseriesRequest.prototype.getBegin = function () {
|
|
69
|
+
return this.begin;
|
|
70
|
+
};
|
|
71
|
+
QueryMetricsTimeseriesRequest.prototype.setBegin = function (begin) {
|
|
72
|
+
this.begin = begin;
|
|
73
|
+
return this;
|
|
74
|
+
};
|
|
75
|
+
QueryMetricsTimeseriesRequest.prototype.withBegin = function (begin) {
|
|
76
|
+
this.begin = begin;
|
|
77
|
+
return this;
|
|
78
|
+
};
|
|
79
|
+
QueryMetricsTimeseriesRequest.prototype.getEnd = function () {
|
|
80
|
+
return this.end;
|
|
81
|
+
};
|
|
82
|
+
QueryMetricsTimeseriesRequest.prototype.setEnd = function (end) {
|
|
83
|
+
this.end = end;
|
|
84
|
+
return this;
|
|
85
|
+
};
|
|
86
|
+
QueryMetricsTimeseriesRequest.prototype.withEnd = function (end) {
|
|
87
|
+
this.end = end;
|
|
88
|
+
return this;
|
|
89
|
+
};
|
|
90
|
+
QueryMetricsTimeseriesRequest.prototype.getQuery = function () {
|
|
91
|
+
return this.query;
|
|
92
|
+
};
|
|
93
|
+
QueryMetricsTimeseriesRequest.prototype.setQuery = function (query) {
|
|
94
|
+
this.query = query;
|
|
95
|
+
return this;
|
|
96
|
+
};
|
|
97
|
+
QueryMetricsTimeseriesRequest.prototype.withQuery = function (query) {
|
|
98
|
+
this.query = query;
|
|
99
|
+
return this;
|
|
100
|
+
};
|
|
101
|
+
QueryMetricsTimeseriesRequest.prototype.getGroupBy = function () {
|
|
102
|
+
return this.groupBy;
|
|
103
|
+
};
|
|
104
|
+
QueryMetricsTimeseriesRequest.prototype.setGroupBy = function (groupBy) {
|
|
105
|
+
this.groupBy = groupBy;
|
|
106
|
+
return this;
|
|
107
|
+
};
|
|
108
|
+
QueryMetricsTimeseriesRequest.prototype.withGroupBy = function (groupBy) {
|
|
109
|
+
this.groupBy = groupBy;
|
|
110
|
+
return this;
|
|
111
|
+
};
|
|
112
|
+
QueryMetricsTimeseriesRequest.prototype.getAggregations = function () {
|
|
113
|
+
return this.aggregations;
|
|
114
|
+
};
|
|
115
|
+
QueryMetricsTimeseriesRequest.prototype.setAggregations = function (aggregations) {
|
|
116
|
+
this.aggregations = aggregations;
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
QueryMetricsTimeseriesRequest.prototype.withAggregations = function (aggregations) {
|
|
120
|
+
this.aggregations = aggregations;
|
|
121
|
+
return this;
|
|
122
|
+
};
|
|
123
|
+
QueryMetricsTimeseriesRequest.prototype.getInterval = function () {
|
|
124
|
+
return this.interval;
|
|
125
|
+
};
|
|
126
|
+
QueryMetricsTimeseriesRequest.prototype.setInterval = function (interval) {
|
|
127
|
+
this.interval = interval;
|
|
128
|
+
return this;
|
|
129
|
+
};
|
|
130
|
+
QueryMetricsTimeseriesRequest.prototype.withInterval = function (interval) {
|
|
131
|
+
this.interval = interval;
|
|
132
|
+
return this;
|
|
133
|
+
};
|
|
134
|
+
QueryMetricsTimeseriesRequest.prototype.getSeriesLimit = function () {
|
|
135
|
+
return this.seriesLimit;
|
|
136
|
+
};
|
|
137
|
+
QueryMetricsTimeseriesRequest.prototype.setSeriesLimit = function (seriesLimit) {
|
|
138
|
+
this.seriesLimit = seriesLimit;
|
|
139
|
+
return this;
|
|
140
|
+
};
|
|
141
|
+
QueryMetricsTimeseriesRequest.prototype.withSeriesLimit = function (seriesLimit) {
|
|
142
|
+
this.seriesLimit = seriesLimit;
|
|
143
|
+
return this;
|
|
144
|
+
};
|
|
145
|
+
QueryMetricsTimeseriesRequest.prototype.getOrderKey = function () {
|
|
146
|
+
return this.orderKey;
|
|
147
|
+
};
|
|
148
|
+
QueryMetricsTimeseriesRequest.prototype.setOrderKey = function (orderKey) {
|
|
149
|
+
this.orderKey = orderKey;
|
|
150
|
+
return this;
|
|
151
|
+
};
|
|
152
|
+
QueryMetricsTimeseriesRequest.prototype.withOrderKey = function (orderKey) {
|
|
153
|
+
this.orderKey = orderKey;
|
|
154
|
+
return this;
|
|
155
|
+
};
|
|
156
|
+
QueryMetricsTimeseriesRequest.prototype.getOrderBy = function () {
|
|
157
|
+
return this.orderBy;
|
|
158
|
+
};
|
|
159
|
+
QueryMetricsTimeseriesRequest.prototype.setOrderBy = function (orderBy) {
|
|
160
|
+
this.orderBy = orderBy;
|
|
161
|
+
return this;
|
|
162
|
+
};
|
|
163
|
+
QueryMetricsTimeseriesRequest.prototype.withOrderBy = function (orderBy) {
|
|
164
|
+
this.orderBy = orderBy;
|
|
165
|
+
return this;
|
|
166
|
+
};
|
|
167
|
+
QueryMetricsTimeseriesRequest.fromDict = function (data) {
|
|
168
|
+
return new QueryMetricsTimeseriesRequest()
|
|
169
|
+
.withNamespaceName(data["namespaceName"])
|
|
170
|
+
.withBegin(data["begin"])
|
|
171
|
+
.withEnd(data["end"])
|
|
172
|
+
.withQuery(data["query"])
|
|
173
|
+
.withGroupBy(data.groupBy ?
|
|
174
|
+
data.groupBy.map(function (item) {
|
|
175
|
+
return item;
|
|
176
|
+
}) : null)
|
|
177
|
+
.withAggregations(data.aggregations ?
|
|
178
|
+
data.aggregations.map(function (item) {
|
|
179
|
+
return Gs2Log.AggregationConfig.fromDict(item);
|
|
180
|
+
}) : null)
|
|
181
|
+
.withInterval(data["interval"])
|
|
182
|
+
.withSeriesLimit(data["seriesLimit"])
|
|
183
|
+
.withOrderKey(data["orderKey"])
|
|
184
|
+
.withOrderBy(data["orderBy"]);
|
|
185
|
+
};
|
|
186
|
+
QueryMetricsTimeseriesRequest.prototype.toDict = function () {
|
|
187
|
+
return {
|
|
188
|
+
"namespaceName": this.getNamespaceName(),
|
|
189
|
+
"begin": this.getBegin(),
|
|
190
|
+
"end": this.getEnd(),
|
|
191
|
+
"query": this.getQuery(),
|
|
192
|
+
"groupBy": this.getGroupBy() ?
|
|
193
|
+
this.getGroupBy().map(function (item) {
|
|
194
|
+
return item;
|
|
195
|
+
}) : null,
|
|
196
|
+
"aggregations": this.getAggregations() ?
|
|
197
|
+
this.getAggregations().map(function (item) {
|
|
198
|
+
return item.toDict();
|
|
199
|
+
}) : null,
|
|
200
|
+
"interval": this.getInterval(),
|
|
201
|
+
"seriesLimit": this.getSeriesLimit(),
|
|
202
|
+
"orderKey": this.getOrderKey(),
|
|
203
|
+
"orderBy": this.getOrderBy(),
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
return QueryMetricsTimeseriesRequest;
|
|
207
|
+
}());
|
|
208
|
+
exports.default = QueryMetricsTimeseriesRequest;
|
|
209
|
+
//# sourceMappingURL=QueryMetricsTimeseriesRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryMetricsTimeseriesRequest.js","sourceRoot":"","sources":["../../../src/log/request/QueryMetricsTimeseriesRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,uDAAkC;AAElC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,UAAK,GAAgB,IAAI,CAAC;QAC1B,QAAG,GAAgB,IAAI,CAAC;QACxB,UAAK,GAAgB,IAAI,CAAC;QAC1B,YAAO,GAAkB,IAAI,CAAC;QAC9B,iBAAY,GAAoC,IAAI,CAAC;QACrD,aAAQ,GAAgB,IAAI,CAAC;QAC7B,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,YAAO,GAAgB,IAAI,CAAC;IAwLxC,CAAC;IAtLU,oDAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,oDAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qDAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,uDAAe,GAAtB,U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|
3
|
+
export default class QueryTimeseriesRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private begin;
|
|
8
|
+
private end;
|
|
9
|
+
private query;
|
|
10
|
+
private groupBy;
|
|
11
|
+
private aggregation;
|
|
12
|
+
private interval;
|
|
13
|
+
private seriesLimit;
|
|
14
|
+
private pageToken;
|
|
15
|
+
private limit;
|
|
16
|
+
getRequestId(): string | null;
|
|
17
|
+
setRequestId(requestId: string | null): this;
|
|
18
|
+
withRequestId(requestId: string | null): this;
|
|
19
|
+
getContextStack(): string | null;
|
|
20
|
+
setContextStack(contextStack: string | null): this;
|
|
21
|
+
withContextStack(contextStack: string | null): this;
|
|
22
|
+
getNamespaceName(): string | null;
|
|
23
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
24
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
25
|
+
getBegin(): number | null;
|
|
26
|
+
setBegin(begin: number | null): this;
|
|
27
|
+
withBegin(begin: number | null): this;
|
|
28
|
+
getEnd(): number | null;
|
|
29
|
+
setEnd(end: number | null): this;
|
|
30
|
+
withEnd(end: number | null): this;
|
|
31
|
+
getQuery(): string | null;
|
|
32
|
+
setQuery(query: string | null): this;
|
|
33
|
+
withQuery(query: string | null): this;
|
|
34
|
+
getGroupBy(): string[] | null;
|
|
35
|
+
setGroupBy(groupBy: string[] | null): this;
|
|
36
|
+
withGroupBy(groupBy: string[] | null): this;
|
|
37
|
+
getAggregation(): Gs2Log.AggregationConfig | null;
|
|
38
|
+
setAggregation(aggregation: Gs2Log.AggregationConfig | null): this;
|
|
39
|
+
withAggregation(aggregation: Gs2Log.AggregationConfig | null): this;
|
|
40
|
+
getInterval(): number | null;
|
|
41
|
+
setInterval(interval: number | null): this;
|
|
42
|
+
withInterval(interval: number | null): this;
|
|
43
|
+
getSeriesLimit(): number | null;
|
|
44
|
+
setSeriesLimit(seriesLimit: number | null): this;
|
|
45
|
+
withSeriesLimit(seriesLimit: number | null): this;
|
|
46
|
+
getPageToken(): string | null;
|
|
47
|
+
setPageToken(pageToken: string | null): this;
|
|
48
|
+
withPageToken(pageToken: string | null): this;
|
|
49
|
+
getLimit(): number | null;
|
|
50
|
+
setLimit(limit: number | null): this;
|
|
51
|
+
withLimit(limit: number | null): this;
|
|
52
|
+
static fromDict(data: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}): QueryTimeseriesRequest;
|
|
55
|
+
toDict(): {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
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("../model"));
|
|
20
|
+
var QueryTimeseriesRequest = /** @class */ (function () {
|
|
21
|
+
function QueryTimeseriesRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.begin = null;
|
|
26
|
+
this.end = null;
|
|
27
|
+
this.query = null;
|
|
28
|
+
this.groupBy = null;
|
|
29
|
+
this.aggregation = null;
|
|
30
|
+
this.interval = null;
|
|
31
|
+
this.seriesLimit = null;
|
|
32
|
+
this.pageToken = null;
|
|
33
|
+
this.limit = null;
|
|
34
|
+
}
|
|
35
|
+
QueryTimeseriesRequest.prototype.getRequestId = function () {
|
|
36
|
+
return this.requestId;
|
|
37
|
+
};
|
|
38
|
+
QueryTimeseriesRequest.prototype.setRequestId = function (requestId) {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
QueryTimeseriesRequest.prototype.withRequestId = function (requestId) {
|
|
43
|
+
this.requestId = requestId;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
QueryTimeseriesRequest.prototype.getContextStack = function () {
|
|
47
|
+
return this.contextStack;
|
|
48
|
+
};
|
|
49
|
+
QueryTimeseriesRequest.prototype.setContextStack = function (contextStack) {
|
|
50
|
+
this.contextStack = contextStack;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
QueryTimeseriesRequest.prototype.withContextStack = function (contextStack) {
|
|
54
|
+
this.contextStack = contextStack;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
QueryTimeseriesRequest.prototype.getNamespaceName = function () {
|
|
58
|
+
return this.namespaceName;
|
|
59
|
+
};
|
|
60
|
+
QueryTimeseriesRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
61
|
+
this.namespaceName = namespaceName;
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
QueryTimeseriesRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
65
|
+
this.namespaceName = namespaceName;
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
QueryTimeseriesRequest.prototype.getBegin = function () {
|
|
69
|
+
return this.begin;
|
|
70
|
+
};
|
|
71
|
+
QueryTimeseriesRequest.prototype.setBegin = function (begin) {
|
|
72
|
+
this.begin = begin;
|
|
73
|
+
return this;
|
|
74
|
+
};
|
|
75
|
+
QueryTimeseriesRequest.prototype.withBegin = function (begin) {
|
|
76
|
+
this.begin = begin;
|
|
77
|
+
return this;
|
|
78
|
+
};
|
|
79
|
+
QueryTimeseriesRequest.prototype.getEnd = function () {
|
|
80
|
+
return this.end;
|
|
81
|
+
};
|
|
82
|
+
QueryTimeseriesRequest.prototype.setEnd = function (end) {
|
|
83
|
+
this.end = end;
|
|
84
|
+
return this;
|
|
85
|
+
};
|
|
86
|
+
QueryTimeseriesRequest.prototype.withEnd = function (end) {
|
|
87
|
+
this.end = end;
|
|
88
|
+
return this;
|
|
89
|
+
};
|
|
90
|
+
QueryTimeseriesRequest.prototype.getQuery = function () {
|
|
91
|
+
return this.query;
|
|
92
|
+
};
|
|
93
|
+
QueryTimeseriesRequest.prototype.setQuery = function (query) {
|
|
94
|
+
this.query = query;
|
|
95
|
+
return this;
|
|
96
|
+
};
|
|
97
|
+
QueryTimeseriesRequest.prototype.withQuery = function (query) {
|
|
98
|
+
this.query = query;
|
|
99
|
+
return this;
|
|
100
|
+
};
|
|
101
|
+
QueryTimeseriesRequest.prototype.getGroupBy = function () {
|
|
102
|
+
return this.groupBy;
|
|
103
|
+
};
|
|
104
|
+
QueryTimeseriesRequest.prototype.setGroupBy = function (groupBy) {
|
|
105
|
+
this.groupBy = groupBy;
|
|
106
|
+
return this;
|
|
107
|
+
};
|
|
108
|
+
QueryTimeseriesRequest.prototype.withGroupBy = function (groupBy) {
|
|
109
|
+
this.groupBy = groupBy;
|
|
110
|
+
return this;
|
|
111
|
+
};
|
|
112
|
+
QueryTimeseriesRequest.prototype.getAggregation = function () {
|
|
113
|
+
return this.aggregation;
|
|
114
|
+
};
|
|
115
|
+
QueryTimeseriesRequest.prototype.setAggregation = function (aggregation) {
|
|
116
|
+
this.aggregation = aggregation;
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
QueryTimeseriesRequest.prototype.withAggregation = function (aggregation) {
|
|
120
|
+
this.aggregation = aggregation;
|
|
121
|
+
return this;
|
|
122
|
+
};
|
|
123
|
+
QueryTimeseriesRequest.prototype.getInterval = function () {
|
|
124
|
+
return this.interval;
|
|
125
|
+
};
|
|
126
|
+
QueryTimeseriesRequest.prototype.setInterval = function (interval) {
|
|
127
|
+
this.interval = interval;
|
|
128
|
+
return this;
|
|
129
|
+
};
|
|
130
|
+
QueryTimeseriesRequest.prototype.withInterval = function (interval) {
|
|
131
|
+
this.interval = interval;
|
|
132
|
+
return this;
|
|
133
|
+
};
|
|
134
|
+
QueryTimeseriesRequest.prototype.getSeriesLimit = function () {
|
|
135
|
+
return this.seriesLimit;
|
|
136
|
+
};
|
|
137
|
+
QueryTimeseriesRequest.prototype.setSeriesLimit = function (seriesLimit) {
|
|
138
|
+
this.seriesLimit = seriesLimit;
|
|
139
|
+
return this;
|
|
140
|
+
};
|
|
141
|
+
QueryTimeseriesRequest.prototype.withSeriesLimit = function (seriesLimit) {
|
|
142
|
+
this.seriesLimit = seriesLimit;
|
|
143
|
+
return this;
|
|
144
|
+
};
|
|
145
|
+
QueryTimeseriesRequest.prototype.getPageToken = function () {
|
|
146
|
+
return this.pageToken;
|
|
147
|
+
};
|
|
148
|
+
QueryTimeseriesRequest.prototype.setPageToken = function (pageToken) {
|
|
149
|
+
this.pageToken = pageToken;
|
|
150
|
+
return this;
|
|
151
|
+
};
|
|
152
|
+
QueryTimeseriesRequest.prototype.withPageToken = function (pageToken) {
|
|
153
|
+
this.pageToken = pageToken;
|
|
154
|
+
return this;
|
|
155
|
+
};
|
|
156
|
+
QueryTimeseriesRequest.prototype.getLimit = function () {
|
|
157
|
+
return this.limit;
|
|
158
|
+
};
|
|
159
|
+
QueryTimeseriesRequest.prototype.setLimit = function (limit) {
|
|
160
|
+
this.limit = limit;
|
|
161
|
+
return this;
|
|
162
|
+
};
|
|
163
|
+
QueryTimeseriesRequest.prototype.withLimit = function (limit) {
|
|
164
|
+
this.limit = limit;
|
|
165
|
+
return this;
|
|
166
|
+
};
|
|
167
|
+
QueryTimeseriesRequest.fromDict = function (data) {
|
|
168
|
+
return new QueryTimeseriesRequest()
|
|
169
|
+
.withNamespaceName(data["namespaceName"])
|
|
170
|
+
.withBegin(data["begin"])
|
|
171
|
+
.withEnd(data["end"])
|
|
172
|
+
.withQuery(data["query"])
|
|
173
|
+
.withGroupBy(data.groupBy ?
|
|
174
|
+
data.groupBy.map(function (item) {
|
|
175
|
+
return item;
|
|
176
|
+
}) : null)
|
|
177
|
+
.withAggregation(Gs2Log.AggregationConfig.fromDict(data["aggregation"]))
|
|
178
|
+
.withInterval(data["interval"])
|
|
179
|
+
.withSeriesLimit(data["seriesLimit"])
|
|
180
|
+
.withPageToken(data["pageToken"])
|
|
181
|
+
.withLimit(data["limit"]);
|
|
182
|
+
};
|
|
183
|
+
QueryTimeseriesRequest.prototype.toDict = function () {
|
|
184
|
+
var _a;
|
|
185
|
+
return {
|
|
186
|
+
"namespaceName": this.getNamespaceName(),
|
|
187
|
+
"begin": this.getBegin(),
|
|
188
|
+
"end": this.getEnd(),
|
|
189
|
+
"query": this.getQuery(),
|
|
190
|
+
"groupBy": this.getGroupBy() ?
|
|
191
|
+
this.getGroupBy().map(function (item) {
|
|
192
|
+
return item;
|
|
193
|
+
}) : null,
|
|
194
|
+
"aggregation": (_a = this.getAggregation()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
195
|
+
"interval": this.getInterval(),
|
|
196
|
+
"seriesLimit": this.getSeriesLimit(),
|
|
197
|
+
"pageToken": this.getPageToken(),
|
|
198
|
+
"limit": this.getLimit(),
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
return QueryTimeseriesRequest;
|
|
202
|
+
}());
|
|
203
|
+
exports.default = QueryTimeseriesRequest;
|
|
204
|
+
//# sourceMappingURL=QueryTimeseriesRequest.js.map
|