gs2-cdk 1.0.136 → 1.0.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/guild/model/LastGuildMasterActivity.d.ts +1 -0
  2. package/guild/model/LastGuildMasterActivity.js +3 -0
  3. package/guild/model/LastGuildMasterActivity.js.map +1 -1
  4. package/guild/model/LastGuildMasterActivity.ts +2 -0
  5. package/guild/model/options/LastGuildMasterActivityOptions.d.ts +1 -0
  6. package/guild/model/options/LastGuildMasterActivityOptions.ts +1 -0
  7. package/log/model/AggregationConfig.d.ts +9 -0
  8. package/log/model/AggregationConfig.js +23 -0
  9. package/log/model/AggregationConfig.js.map +1 -0
  10. package/log/model/AggregationConfig.ts +43 -0
  11. package/log/model/Dashboard.d.ts +18 -0
  12. package/log/model/Dashboard.js +62 -0
  13. package/log/model/Dashboard.js.map +1 -0
  14. package/log/model/Dashboard.ts +96 -0
  15. package/log/model/Facet.d.ts +11 -0
  16. package/log/model/Facet.js +33 -0
  17. package/log/model/Facet.js.map +1 -0
  18. package/log/model/Facet.ts +58 -0
  19. package/log/model/FacetModel.d.ts +21 -0
  20. package/log/model/FacetModel.js +68 -0
  21. package/log/model/FacetModel.js.map +1 -0
  22. package/log/model/FacetModel.ts +106 -0
  23. package/log/model/FacetValueCount.d.ts +9 -0
  24. package/log/model/FacetValueCount.js +20 -0
  25. package/log/model/FacetValueCount.js.map +1 -0
  26. package/log/model/FacetValueCount.ts +44 -0
  27. package/log/model/Label.d.ts +9 -0
  28. package/log/model/Label.js +20 -0
  29. package/log/model/Label.js.map +1 -0
  30. package/log/model/Label.ts +44 -0
  31. package/log/model/LogEntry.d.ts +13 -0
  32. package/log/model/LogEntry.js +34 -0
  33. package/log/model/LogEntry.js.map +1 -0
  34. package/log/model/LogEntry.ts +64 -0
  35. package/log/model/MetricModel.d.ts +11 -0
  36. package/log/model/MetricModel.js +26 -0
  37. package/log/model/MetricModel.js.map +1 -0
  38. package/log/model/MetricModel.ts +50 -0
  39. package/log/model/NumericRange.d.ts +9 -0
  40. package/log/model/NumericRange.js +20 -0
  41. package/log/model/NumericRange.js.map +1 -0
  42. package/log/model/NumericRange.ts +44 -0
  43. package/log/model/TimeseriesMetadata.d.ts +9 -0
  44. package/log/model/TimeseriesMetadata.js +23 -0
  45. package/log/model/TimeseriesMetadata.js.map +1 -0
  46. package/log/model/TimeseriesMetadata.ts +42 -0
  47. package/log/model/TimeseriesPoint.d.ts +9 -0
  48. package/log/model/TimeseriesPoint.js +22 -0
  49. package/log/model/TimeseriesPoint.js.map +1 -0
  50. package/log/model/TimeseriesPoint.ts +45 -0
  51. package/log/model/TimeseriesValue.d.ts +9 -0
  52. package/log/model/TimeseriesValue.js +20 -0
  53. package/log/model/TimeseriesValue.js.map +1 -0
  54. package/log/model/TimeseriesValue.ts +44 -0
  55. package/log/model/Trace.d.ts +9 -0
  56. package/log/model/Trace.js +22 -0
  57. package/log/model/Trace.js.map +1 -0
  58. package/log/model/Trace.ts +46 -0
  59. package/log/model/enums/AggregationConfigType.d.ts +12 -0
  60. package/log/model/enums/AggregationConfigType.js +30 -0
  61. package/log/model/enums/AggregationConfigType.js.map +1 -0
  62. package/log/model/enums/AggregationConfigType.ts +30 -0
  63. package/log/model/enums/FacetModelType.d.ts +6 -0
  64. package/log/model/enums/FacetModelType.js +24 -0
  65. package/log/model/enums/FacetModelType.js.map +1 -0
  66. package/log/model/enums/FacetModelType.ts +24 -0
  67. package/log/model/enums/LogEntryStatus.d.ts +9 -0
  68. package/log/model/enums/LogEntryStatus.js +27 -0
  69. package/log/model/enums/LogEntryStatus.js.map +1 -0
  70. package/log/model/enums/LogEntryStatus.ts +27 -0
  71. package/log/model/enums/MetricModelType.d.ts +6 -0
  72. package/log/model/enums/MetricModelType.js +24 -0
  73. package/log/model/enums/MetricModelType.js.map +1 -0
  74. package/log/model/enums/MetricModelType.ts +24 -0
  75. package/log/model/index.d.ts +31 -1
  76. package/log/model/index.js +35 -1
  77. package/log/model/index.js.map +1 -1
  78. package/log/model/index.ts +60 -0
  79. package/log/model/options/AggregationConfigOptions.d.ts +5 -0
  80. package/log/model/options/AggregationConfigOptions.js +3 -0
  81. package/log/model/options/AggregationConfigOptions.js.map +1 -0
  82. package/log/model/options/AggregationConfigOptions.ts +22 -0
  83. package/log/model/options/DashboardOptions.d.ts +3 -0
  84. package/log/model/options/DashboardOptions.js +18 -0
  85. package/log/model/options/DashboardOptions.js.map +1 -0
  86. package/log/model/options/DashboardOptions.ts +20 -0
  87. package/log/model/options/FacetModelOptions.d.ts +3 -0
  88. package/log/model/options/FacetModelOptions.js +3 -0
  89. package/log/model/options/FacetModelOptions.js.map +1 -0
  90. package/log/model/options/FacetModelOptions.ts +21 -0
  91. package/log/model/options/FacetOptions.d.ts +7 -0
  92. package/log/model/options/FacetOptions.js +3 -0
  93. package/log/model/options/FacetOptions.js.map +1 -0
  94. package/log/model/options/FacetOptions.ts +24 -0
  95. package/log/model/options/FacetValueCountOptions.d.ts +2 -0
  96. package/log/model/options/FacetValueCountOptions.js +18 -0
  97. package/log/model/options/FacetValueCountOptions.js.map +1 -0
  98. package/log/model/options/FacetValueCountOptions.ts +19 -0
  99. package/log/model/options/LabelOptions.d.ts +2 -0
  100. package/log/model/options/LabelOptions.js +18 -0
  101. package/log/model/options/LabelOptions.js.map +1 -0
  102. package/log/model/options/LabelOptions.ts +19 -0
  103. package/log/model/options/LogEntryOptions.d.ts +4 -0
  104. package/log/model/options/LogEntryOptions.js +3 -0
  105. package/log/model/options/LogEntryOptions.js.map +1 -0
  106. package/log/model/options/LogEntryOptions.ts +22 -0
  107. package/log/model/options/MetricModelOptions.d.ts +3 -0
  108. package/log/model/options/MetricModelOptions.js +3 -0
  109. package/log/model/options/MetricModelOptions.js.map +1 -0
  110. package/log/model/options/MetricModelOptions.ts +21 -0
  111. package/log/model/options/NumericRangeOptions.d.ts +2 -0
  112. package/log/model/options/NumericRangeOptions.js +18 -0
  113. package/log/model/options/NumericRangeOptions.js.map +1 -0
  114. package/log/model/options/NumericRangeOptions.ts +19 -0
  115. package/log/model/options/TimeseriesMetadataOptions.d.ts +4 -0
  116. package/log/model/options/TimeseriesMetadataOptions.js +18 -0
  117. package/log/model/options/TimeseriesMetadataOptions.js.map +1 -0
  118. package/log/model/options/TimeseriesMetadataOptions.ts +21 -0
  119. package/log/model/options/TimeseriesPointOptions.d.ts +4 -0
  120. package/log/model/options/TimeseriesPointOptions.js +3 -0
  121. package/log/model/options/TimeseriesPointOptions.js.map +1 -0
  122. package/log/model/options/TimeseriesPointOptions.ts +21 -0
  123. package/log/model/options/TimeseriesValueOptions.d.ts +2 -0
  124. package/log/model/options/TimeseriesValueOptions.js +18 -0
  125. package/log/model/options/TimeseriesValueOptions.js.map +1 -0
  126. package/log/model/options/TimeseriesValueOptions.ts +19 -0
  127. package/log/model/options/TraceOptions.d.ts +4 -0
  128. package/log/model/options/TraceOptions.js +3 -0
  129. package/log/model/options/TraceOptions.js.map +1 -0
  130. package/log/model/options/TraceOptions.ts +22 -0
  131. package/log/ref/DashboardRef.d.ts +6 -0
  132. package/log/ref/DashboardRef.js +38 -0
  133. package/log/ref/DashboardRef.js.map +1 -0
  134. package/log/ref/DashboardRef.ts +52 -0
  135. package/log/ref/FacetModelRef.d.ts +6 -0
  136. package/log/ref/FacetModelRef.js +39 -0
  137. package/log/ref/FacetModelRef.js.map +1 -0
  138. package/log/ref/FacetModelRef.ts +53 -0
  139. package/log/ref/MetricModelRef.d.ts +5 -0
  140. package/log/ref/MetricModelRef.js +25 -0
  141. package/log/ref/MetricModelRef.js.map +1 -0
  142. package/log/ref/MetricModelRef.ts +30 -0
  143. package/log/ref/NamespaceRef.js.map +1 -1
  144. package/log/ref/NamespaceRef.ts +3 -0
  145. package/log/ref/index.d.ts +4 -1
  146. package/log/ref/index.js +7 -1
  147. package/log/ref/index.js.map +1 -1
  148. package/log/ref/index.ts +6 -0
  149. package/package.json +1 -1
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { FacetValueCountOptions } from "./options/FacetValueCountOptions";
17
+
18
+ export default class FacetValueCount {
19
+ private readonly value: string;
20
+ private readonly count: number;
21
+
22
+ public constructor(
23
+ value: string,
24
+ count: number,
25
+ options: FacetValueCountOptions|null = null,
26
+ ) {
27
+ this.value = value;
28
+ this.count = count;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.value != null) {
36
+ properties["value"] = this.value;
37
+ }
38
+ if (this.count != null) {
39
+ properties["count"] = this.count;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -0,0 +1,9 @@
1
+ import { LabelOptions } from "./options/LabelOptions";
2
+ export default class Label {
3
+ private readonly key;
4
+ private readonly value;
5
+ constructor(key: string, value: string, options?: LabelOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Label {
4
+ constructor(key, value, options = null) {
5
+ this.key = key;
6
+ this.value = value;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.key != null) {
11
+ properties["key"] = this.key;
12
+ }
13
+ if (this.value != null) {
14
+ properties["value"] = this.value;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = Label;
20
+ //# sourceMappingURL=Label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.js","sourceRoot":"","sources":["Label.ts"],"names":[],"mappings":";;AAiBA,MAAqB,KAAK;IAItB,YACI,GAAW,EACX,KAAa,EACb,UAA6B,IAAI;QAEjC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,wBA0BC"}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { LabelOptions } from "./options/LabelOptions";
17
+
18
+ export default class Label {
19
+ private readonly key: string;
20
+ private readonly value: string;
21
+
22
+ public constructor(
23
+ key: string,
24
+ value: string,
25
+ options: LabelOptions|null = null,
26
+ ) {
27
+ this.key = key;
28
+ this.value = value;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.key != null) {
36
+ properties["key"] = this.key;
37
+ }
38
+ if (this.value != null) {
39
+ properties["value"] = this.value;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -0,0 +1,13 @@
1
+ import { LogEntryOptions } from "./options/LogEntryOptions";
2
+ import { LogEntryStatus } from "./enums/LogEntryStatus";
3
+ export default class LogEntry {
4
+ private readonly timestamp;
5
+ private readonly status;
6
+ private readonly duration;
7
+ private readonly line;
8
+ private readonly labels;
9
+ constructor(timestamp: number, status: LogEntryStatus, duration: number, line: string, options?: LogEntryOptions | null);
10
+ properties(): {
11
+ [name: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class LogEntry {
4
+ constructor(timestamp, status, duration, line, options = null) {
5
+ var _a;
6
+ this.labels = null;
7
+ this.timestamp = timestamp;
8
+ this.status = status;
9
+ this.duration = duration;
10
+ this.line = line;
11
+ this.labels = (_a = options === null || options === void 0 ? void 0 : options.labels) !== null && _a !== void 0 ? _a : null;
12
+ }
13
+ properties() {
14
+ let properties = {};
15
+ if (this.timestamp != null) {
16
+ properties["timestamp"] = this.timestamp;
17
+ }
18
+ if (this.status != null) {
19
+ properties["status"] = this.status;
20
+ }
21
+ if (this.duration != null) {
22
+ properties["duration"] = this.duration;
23
+ }
24
+ if (this.line != null) {
25
+ properties["line"] = this.line;
26
+ }
27
+ if (this.labels != null) {
28
+ properties["labels"] = this.labels.map(v => v.properties());
29
+ }
30
+ return properties;
31
+ }
32
+ }
33
+ exports.default = LogEntry;
34
+ //# sourceMappingURL=LogEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogEntry.js","sourceRoot":"","sources":["LogEntry.ts"],"names":[],"mappings":";;AAmBA,MAAqB,QAAQ;IAOzB,YACI,SAAiB,EACjB,MAAsB,EACtB,QAAgB,EAChB,IAAY,EACZ,UAAgC,IAAI;;QAPvB,WAAM,GAAiB,IAAI,CAAC;QASzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;IAC1C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnD,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA5CD,2BA4CC"}
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import Label from "./Label";
17
+ import { LogEntryOptions } from "./options/LogEntryOptions";
18
+ import { LogEntryStatus } from "./enums/LogEntryStatus";
19
+
20
+ export default class LogEntry {
21
+ private readonly timestamp: number;
22
+ private readonly status: LogEntryStatus;
23
+ private readonly duration: number;
24
+ private readonly line: string;
25
+ private readonly labels: Label[]|null = null;
26
+
27
+ public constructor(
28
+ timestamp: number,
29
+ status: LogEntryStatus,
30
+ duration: number,
31
+ line: string,
32
+ options: LogEntryOptions|null = null,
33
+ ) {
34
+ this.timestamp = timestamp;
35
+ this.status = status;
36
+ this.duration = duration;
37
+ this.line = line;
38
+ this.labels = options?.labels ?? null;
39
+ }
40
+
41
+ public properties(
42
+ ): {[name: string]: any} {
43
+ let properties: {[name: string]: any} = {};
44
+
45
+ if (this.timestamp != null) {
46
+ properties["timestamp"] = this.timestamp;
47
+ }
48
+ if (this.status != null) {
49
+ properties["status"] = this.status;
50
+ }
51
+ if (this.duration != null) {
52
+ properties["duration"] = this.duration;
53
+ }
54
+ if (this.line != null) {
55
+ properties["line"] = this.line;
56
+ }
57
+ if (this.labels != null) {
58
+ properties["labels"] = this.labels.map(v => v.properties(
59
+ ));
60
+ }
61
+
62
+ return properties;
63
+ }
64
+ }
@@ -0,0 +1,11 @@
1
+ import { MetricModelOptions } from "./options/MetricModelOptions";
2
+ import { MetricModelType } from "./enums/MetricModelType";
3
+ export default class MetricModel {
4
+ private readonly name;
5
+ private readonly type;
6
+ private readonly labels;
7
+ constructor(name: string, type: MetricModelType, options?: MetricModelOptions | null);
8
+ properties(): {
9
+ [name: string]: any;
10
+ };
11
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class MetricModel {
4
+ constructor(name, type, options = null) {
5
+ var _a;
6
+ this.labels = null;
7
+ this.name = name;
8
+ this.type = type;
9
+ this.labels = (_a = options === null || options === void 0 ? void 0 : options.labels) !== null && _a !== void 0 ? _a : null;
10
+ }
11
+ properties() {
12
+ let properties = {};
13
+ if (this.name != null) {
14
+ properties["name"] = this.name;
15
+ }
16
+ if (this.type != null) {
17
+ properties["type"] = this.type;
18
+ }
19
+ if (this.labels != null) {
20
+ properties["labels"] = this.labels;
21
+ }
22
+ return properties;
23
+ }
24
+ }
25
+ exports.default = MetricModel;
26
+ //# sourceMappingURL=MetricModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricModel.js","sourceRoot":"","sources":["MetricModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,WAAW;IAK5B,YACI,IAAY,EACZ,IAAqB,EACrB,UAAmC,IAAI;;QAL1B,WAAM,GAAkB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;IAC1C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA/BD,8BA+BC"}
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { MetricModelOptions } from "./options/MetricModelOptions";
17
+ import { MetricModelType } from "./enums/MetricModelType";
18
+
19
+ export default class MetricModel {
20
+ private readonly name: string;
21
+ private readonly type: MetricModelType;
22
+ private readonly labels: string[]|null = null;
23
+
24
+ public constructor(
25
+ name: string,
26
+ type: MetricModelType,
27
+ options: MetricModelOptions|null = null,
28
+ ) {
29
+ this.name = name;
30
+ this.type = type;
31
+ this.labels = options?.labels ?? null;
32
+ }
33
+
34
+ public properties(
35
+ ): {[name: string]: any} {
36
+ let properties: {[name: string]: any} = {};
37
+
38
+ if (this.name != null) {
39
+ properties["name"] = this.name;
40
+ }
41
+ if (this.type != null) {
42
+ properties["type"] = this.type;
43
+ }
44
+ if (this.labels != null) {
45
+ properties["labels"] = this.labels;
46
+ }
47
+
48
+ return properties;
49
+ }
50
+ }
@@ -0,0 +1,9 @@
1
+ import { NumericRangeOptions } from "./options/NumericRangeOptions";
2
+ export default class NumericRange {
3
+ private readonly min;
4
+ private readonly max;
5
+ constructor(min: number, max: number, options?: NumericRangeOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class NumericRange {
4
+ constructor(min, max, options = null) {
5
+ this.min = min;
6
+ this.max = max;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.min != null) {
11
+ properties["min"] = this.min;
12
+ }
13
+ if (this.max != null) {
14
+ properties["max"] = this.max;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = NumericRange;
20
+ //# sourceMappingURL=NumericRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericRange.js","sourceRoot":"","sources":["NumericRange.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAI7B,YACI,GAAW,EACX,GAAW,EACX,UAAoC,IAAI;QAExC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,+BA0BC"}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { NumericRangeOptions } from "./options/NumericRangeOptions";
17
+
18
+ export default class NumericRange {
19
+ private readonly min: number;
20
+ private readonly max: number;
21
+
22
+ public constructor(
23
+ min: number,
24
+ max: number,
25
+ options: NumericRangeOptions|null = null,
26
+ ) {
27
+ this.min = min;
28
+ this.max = max;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.min != null) {
36
+ properties["min"] = this.min;
37
+ }
38
+ if (this.max != null) {
39
+ properties["max"] = this.max;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -0,0 +1,9 @@
1
+ import { TimeseriesMetadataOptions } from "./options/TimeseriesMetadataOptions";
2
+ export default class TimeseriesMetadata {
3
+ private readonly keys;
4
+ private readonly groupBy;
5
+ constructor(options?: TimeseriesMetadataOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TimeseriesMetadata {
4
+ constructor(options = null) {
5
+ var _a, _b;
6
+ this.keys = null;
7
+ this.groupBy = null;
8
+ this.keys = (_a = options === null || options === void 0 ? void 0 : options.keys) !== null && _a !== void 0 ? _a : null;
9
+ this.groupBy = (_b = options === null || options === void 0 ? void 0 : options.groupBy) !== null && _b !== void 0 ? _b : null;
10
+ }
11
+ properties() {
12
+ let properties = {};
13
+ if (this.keys != null) {
14
+ properties["keys"] = this.keys;
15
+ }
16
+ if (this.groupBy != null) {
17
+ properties["groupBy"] = this.groupBy;
18
+ }
19
+ return properties;
20
+ }
21
+ }
22
+ exports.default = TimeseriesMetadata;
23
+ //# sourceMappingURL=TimeseriesMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeseriesMetadata.js","sourceRoot":"","sources":["TimeseriesMetadata.ts"],"names":[],"mappings":";;AAiBA,MAAqB,kBAAkB;IAInC,YACI,UAA0C,IAAI;;QAJjC,SAAI,GAAkB,IAAI,CAAC;QAC3B,YAAO,GAAkB,IAAI,CAAC;QAK3C,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,IAAI,CAAC;IAC5C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxBD,qCAwBC"}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { TimeseriesMetadataOptions } from "./options/TimeseriesMetadataOptions";
17
+
18
+ export default class TimeseriesMetadata {
19
+ private readonly keys: string[]|null = null;
20
+ private readonly groupBy: string[]|null = null;
21
+
22
+ public constructor(
23
+ options: TimeseriesMetadataOptions|null = null,
24
+ ) {
25
+ this.keys = options?.keys ?? null;
26
+ this.groupBy = options?.groupBy ?? null;
27
+ }
28
+
29
+ public properties(
30
+ ): {[name: string]: any} {
31
+ let properties: {[name: string]: any} = {};
32
+
33
+ if (this.keys != null) {
34
+ properties["keys"] = this.keys;
35
+ }
36
+ if (this.groupBy != null) {
37
+ properties["groupBy"] = this.groupBy;
38
+ }
39
+
40
+ return properties;
41
+ }
42
+ }
@@ -0,0 +1,9 @@
1
+ import { TimeseriesPointOptions } from "./options/TimeseriesPointOptions";
2
+ export default class TimeseriesPoint {
3
+ private readonly timestamp;
4
+ private readonly values;
5
+ constructor(timestamp: number, options?: TimeseriesPointOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TimeseriesPoint {
4
+ constructor(timestamp, options = null) {
5
+ var _a;
6
+ this.values = null;
7
+ this.timestamp = timestamp;
8
+ this.values = (_a = options === null || options === void 0 ? void 0 : options.values) !== null && _a !== void 0 ? _a : null;
9
+ }
10
+ properties() {
11
+ let properties = {};
12
+ if (this.timestamp != null) {
13
+ properties["timestamp"] = this.timestamp;
14
+ }
15
+ if (this.values != null) {
16
+ properties["values"] = this.values.map(v => v.properties());
17
+ }
18
+ return properties;
19
+ }
20
+ }
21
+ exports.default = TimeseriesPoint;
22
+ //# sourceMappingURL=TimeseriesPoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeseriesPoint.js","sourceRoot":"","sources":["TimeseriesPoint.ts"],"names":[],"mappings":";;AAkBA,MAAqB,eAAe;IAIhC,YACI,SAAiB,EACjB,UAAuC,IAAI;;QAJ9B,WAAM,GAA2B,IAAI,CAAC;QAMnD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAI,CAAC;IAC1C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnD,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,kCA0BC"}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import TimeseriesValue from "./TimeseriesValue";
17
+ import { TimeseriesPointOptions } from "./options/TimeseriesPointOptions";
18
+
19
+ export default class TimeseriesPoint {
20
+ private readonly timestamp: number;
21
+ private readonly values: TimeseriesValue[]|null = null;
22
+
23
+ public constructor(
24
+ timestamp: number,
25
+ options: TimeseriesPointOptions|null = null,
26
+ ) {
27
+ this.timestamp = timestamp;
28
+ this.values = options?.values ?? null;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.timestamp != null) {
36
+ properties["timestamp"] = this.timestamp;
37
+ }
38
+ if (this.values != null) {
39
+ properties["values"] = this.values.map(v => v.properties(
40
+ ));
41
+ }
42
+
43
+ return properties;
44
+ }
45
+ }
@@ -0,0 +1,9 @@
1
+ import { TimeseriesValueOptions } from "./options/TimeseriesValueOptions";
2
+ export default class TimeseriesValue {
3
+ private readonly key;
4
+ private readonly value;
5
+ constructor(key: string, value: number, options?: TimeseriesValueOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TimeseriesValue {
4
+ constructor(key, value, options = null) {
5
+ this.key = key;
6
+ this.value = value;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.key != null) {
11
+ properties["key"] = this.key;
12
+ }
13
+ if (this.value != null) {
14
+ properties["value"] = this.value;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = TimeseriesValue;
20
+ //# sourceMappingURL=TimeseriesValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeseriesValue.js","sourceRoot":"","sources":["TimeseriesValue.ts"],"names":[],"mappings":";;AAiBA,MAAqB,eAAe;IAIhC,YACI,GAAW,EACX,KAAa,EACb,UAAuC,IAAI;QAE3C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,kCA0BC"}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { TimeseriesValueOptions } from "./options/TimeseriesValueOptions";
17
+
18
+ export default class TimeseriesValue {
19
+ private readonly key: string;
20
+ private readonly value: number;
21
+
22
+ public constructor(
23
+ key: string,
24
+ value: number,
25
+ options: TimeseriesValueOptions|null = null,
26
+ ) {
27
+ this.key = key;
28
+ this.value = value;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.key != null) {
36
+ properties["key"] = this.key;
37
+ }
38
+ if (this.value != null) {
39
+ properties["value"] = this.value;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }