@twin.org/telemetry-service 0.0.2-next.1 → 0.0.2-next.3

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.
@@ -437,7 +437,7 @@ async function telemetryMetricList(httpRequestContext, componentName, request) {
437
437
  core.Guards.object(ROUTES_SOURCE, "request", request);
438
438
  core.Guards.object(ROUTES_SOURCE, "request.query", request.query);
439
439
  const component = core.ComponentFactory.get(componentName);
440
- const itemsAndCursor = await component.query(core.Coerce.number(request?.query?.type), request?.query?.cursor, core.Coerce.number(request?.query?.pageSize));
440
+ const itemsAndCursor = await component.query(core.Coerce.number(request?.query?.type), request?.query?.cursor, core.Coerce.number(request?.query?.limit));
441
441
  return {
442
442
  body: itemsAndCursor
443
443
  };
@@ -454,7 +454,7 @@ async function telemetryMetricValueList(httpRequestContext, componentName, reque
454
454
  core.Guards.object(ROUTES_SOURCE, "request.query", request.query);
455
455
  core.Guards.stringValue(ROUTES_SOURCE, "request.pathParams.id", request.pathParams.id);
456
456
  const component = core.ComponentFactory.get(componentName);
457
- const itemsAndCursor = await component.queryValues(request?.pathParams.id, core.Coerce.number(request?.query?.timeStart), core.Coerce.number(request?.query?.timeEnd), request?.query?.cursor, core.Coerce.number(request?.query?.pageSize));
457
+ const itemsAndCursor = await component.queryValues(request?.pathParams.id, core.Coerce.number(request?.query?.timeStart), core.Coerce.number(request?.query?.timeEnd), request?.query?.cursor, core.Coerce.number(request?.query?.limit));
458
458
  return {
459
459
  body: itemsAndCursor
460
460
  };
@@ -469,7 +469,7 @@ class TelemetryService {
469
469
  /**
470
470
  * Runtime name for the class.
471
471
  */
472
- CLASS_NAME = "TelemetryService";
472
+ static CLASS_NAME = "TelemetryService";
473
473
  /**
474
474
  * Telemetry connector used by the service.
475
475
  * @internal
@@ -488,7 +488,7 @@ class TelemetryService {
488
488
  * @returns Nothing.
489
489
  */
490
490
  async createMetric(metric) {
491
- core.Guards.object(this.CLASS_NAME, "metric", metric);
491
+ core.Guards.object(TelemetryService.CLASS_NAME, "metric", metric);
492
492
  await this._telemetryConnector.createMetric(metric);
493
493
  }
494
494
  /**
@@ -497,7 +497,7 @@ class TelemetryService {
497
497
  * @returns The metric details and it's most recent value.
498
498
  */
499
499
  async getMetric(id) {
500
- core.Guards.stringValue(this.CLASS_NAME, "id", id);
500
+ core.Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
501
501
  return this._telemetryConnector.getMetric(id);
502
502
  }
503
503
  /**
@@ -506,8 +506,8 @@ class TelemetryService {
506
506
  * @returns Nothing.
507
507
  */
508
508
  async updateMetric(metric) {
509
- core.Guards.object(this.CLASS_NAME, "metric", metric);
510
- core.Guards.stringValue(this.CLASS_NAME, "metric.id", metric.id);
509
+ core.Guards.object(TelemetryService.CLASS_NAME, "metric", metric);
510
+ core.Guards.stringValue(TelemetryService.CLASS_NAME, "metric.id", metric.id);
511
511
  return this._telemetryConnector.updateMetric(metric);
512
512
  }
513
513
  /**
@@ -518,8 +518,8 @@ class TelemetryService {
518
518
  * @returns The created metric value id.
519
519
  */
520
520
  async addMetricValue(id, value, customData) {
521
- core.Guards.stringValue(this.CLASS_NAME, "id", id);
522
- core.Guards.defined(this.CLASS_NAME, "value", value);
521
+ core.Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
522
+ core.Guards.defined(TelemetryService.CLASS_NAME, "value", value);
523
523
  return this._telemetryConnector.addMetricValue(id, value, customData);
524
524
  }
525
525
  /**
@@ -528,35 +528,35 @@ class TelemetryService {
528
528
  * @returns Nothing.
529
529
  */
530
530
  async removeMetric(id) {
531
- core.Guards.stringValue(this.CLASS_NAME, "id", id);
531
+ core.Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
532
532
  return this._telemetryConnector.removeMetric(id);
533
533
  }
534
534
  /**
535
535
  * Query the metrics.
536
536
  * @param type The type of the metric.
537
- * @param cursor The cursor to request the next page of entities.
538
- * @param pageSize The maximum number of entities in a page.
537
+ * @param cursor The cursor to request the next chunk of entities.
538
+ * @param limit Limit the number of entities to return.
539
539
  * @returns All the entities for the storage matching the conditions,
540
540
  * and a cursor which can be used to request more entities.
541
541
  * @throws NotImplementedError if the implementation does not support retrieval.
542
542
  */
543
- async query(type, cursor, pageSize) {
544
- return this._telemetryConnector.query(type, cursor, pageSize);
543
+ async query(type, cursor, limit) {
544
+ return this._telemetryConnector.query(type, cursor, limit);
545
545
  }
546
546
  /**
547
547
  * Query the metric values.
548
548
  * @param id The id of the metric.
549
549
  * @param timeStart The inclusive time as the start of the metric entries.
550
550
  * @param timeEnd The inclusive time as the end of the metric entries.
551
- * @param cursor The cursor to request the next page of entities.
552
- * @param pageSize The maximum number of entities in a page.
551
+ * @param cursor The cursor to request the next chunk of entities.
552
+ * @param limit Limit the number of entities to return.
553
553
  * @returns All the entities for the storage matching the conditions,
554
554
  * and a cursor which can be used to request more entities.
555
555
  * @throws NotImplementedError if the implementation does not support retrieval.
556
556
  */
557
- async queryValues(id, timeStart, timeEnd, cursor, pageSize) {
558
- core.Guards.stringValue(this.CLASS_NAME, "id", id);
559
- return this._telemetryConnector.queryValues(id, timeStart, timeEnd, cursor, pageSize);
557
+ async queryValues(id, timeStart, timeEnd, cursor, limit) {
558
+ core.Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
559
+ return this._telemetryConnector.queryValues(id, timeStart, timeEnd, cursor, limit);
560
560
  }
561
561
  }
562
562
 
@@ -435,7 +435,7 @@ async function telemetryMetricList(httpRequestContext, componentName, request) {
435
435
  Guards.object(ROUTES_SOURCE, "request", request);
436
436
  Guards.object(ROUTES_SOURCE, "request.query", request.query);
437
437
  const component = ComponentFactory.get(componentName);
438
- const itemsAndCursor = await component.query(Coerce.number(request?.query?.type), request?.query?.cursor, Coerce.number(request?.query?.pageSize));
438
+ const itemsAndCursor = await component.query(Coerce.number(request?.query?.type), request?.query?.cursor, Coerce.number(request?.query?.limit));
439
439
  return {
440
440
  body: itemsAndCursor
441
441
  };
@@ -452,7 +452,7 @@ async function telemetryMetricValueList(httpRequestContext, componentName, reque
452
452
  Guards.object(ROUTES_SOURCE, "request.query", request.query);
453
453
  Guards.stringValue(ROUTES_SOURCE, "request.pathParams.id", request.pathParams.id);
454
454
  const component = ComponentFactory.get(componentName);
455
- const itemsAndCursor = await component.queryValues(request?.pathParams.id, Coerce.number(request?.query?.timeStart), Coerce.number(request?.query?.timeEnd), request?.query?.cursor, Coerce.number(request?.query?.pageSize));
455
+ const itemsAndCursor = await component.queryValues(request?.pathParams.id, Coerce.number(request?.query?.timeStart), Coerce.number(request?.query?.timeEnd), request?.query?.cursor, Coerce.number(request?.query?.limit));
456
456
  return {
457
457
  body: itemsAndCursor
458
458
  };
@@ -467,7 +467,7 @@ class TelemetryService {
467
467
  /**
468
468
  * Runtime name for the class.
469
469
  */
470
- CLASS_NAME = "TelemetryService";
470
+ static CLASS_NAME = "TelemetryService";
471
471
  /**
472
472
  * Telemetry connector used by the service.
473
473
  * @internal
@@ -486,7 +486,7 @@ class TelemetryService {
486
486
  * @returns Nothing.
487
487
  */
488
488
  async createMetric(metric) {
489
- Guards.object(this.CLASS_NAME, "metric", metric);
489
+ Guards.object(TelemetryService.CLASS_NAME, "metric", metric);
490
490
  await this._telemetryConnector.createMetric(metric);
491
491
  }
492
492
  /**
@@ -495,7 +495,7 @@ class TelemetryService {
495
495
  * @returns The metric details and it's most recent value.
496
496
  */
497
497
  async getMetric(id) {
498
- Guards.stringValue(this.CLASS_NAME, "id", id);
498
+ Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
499
499
  return this._telemetryConnector.getMetric(id);
500
500
  }
501
501
  /**
@@ -504,8 +504,8 @@ class TelemetryService {
504
504
  * @returns Nothing.
505
505
  */
506
506
  async updateMetric(metric) {
507
- Guards.object(this.CLASS_NAME, "metric", metric);
508
- Guards.stringValue(this.CLASS_NAME, "metric.id", metric.id);
507
+ Guards.object(TelemetryService.CLASS_NAME, "metric", metric);
508
+ Guards.stringValue(TelemetryService.CLASS_NAME, "metric.id", metric.id);
509
509
  return this._telemetryConnector.updateMetric(metric);
510
510
  }
511
511
  /**
@@ -516,8 +516,8 @@ class TelemetryService {
516
516
  * @returns The created metric value id.
517
517
  */
518
518
  async addMetricValue(id, value, customData) {
519
- Guards.stringValue(this.CLASS_NAME, "id", id);
520
- Guards.defined(this.CLASS_NAME, "value", value);
519
+ Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
520
+ Guards.defined(TelemetryService.CLASS_NAME, "value", value);
521
521
  return this._telemetryConnector.addMetricValue(id, value, customData);
522
522
  }
523
523
  /**
@@ -526,35 +526,35 @@ class TelemetryService {
526
526
  * @returns Nothing.
527
527
  */
528
528
  async removeMetric(id) {
529
- Guards.stringValue(this.CLASS_NAME, "id", id);
529
+ Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
530
530
  return this._telemetryConnector.removeMetric(id);
531
531
  }
532
532
  /**
533
533
  * Query the metrics.
534
534
  * @param type The type of the metric.
535
- * @param cursor The cursor to request the next page of entities.
536
- * @param pageSize The maximum number of entities in a page.
535
+ * @param cursor The cursor to request the next chunk of entities.
536
+ * @param limit Limit the number of entities to return.
537
537
  * @returns All the entities for the storage matching the conditions,
538
538
  * and a cursor which can be used to request more entities.
539
539
  * @throws NotImplementedError if the implementation does not support retrieval.
540
540
  */
541
- async query(type, cursor, pageSize) {
542
- return this._telemetryConnector.query(type, cursor, pageSize);
541
+ async query(type, cursor, limit) {
542
+ return this._telemetryConnector.query(type, cursor, limit);
543
543
  }
544
544
  /**
545
545
  * Query the metric values.
546
546
  * @param id The id of the metric.
547
547
  * @param timeStart The inclusive time as the start of the metric entries.
548
548
  * @param timeEnd The inclusive time as the end of the metric entries.
549
- * @param cursor The cursor to request the next page of entities.
550
- * @param pageSize The maximum number of entities in a page.
549
+ * @param cursor The cursor to request the next chunk of entities.
550
+ * @param limit Limit the number of entities to return.
551
551
  * @returns All the entities for the storage matching the conditions,
552
552
  * and a cursor which can be used to request more entities.
553
553
  * @throws NotImplementedError if the implementation does not support retrieval.
554
554
  */
555
- async queryValues(id, timeStart, timeEnd, cursor, pageSize) {
556
- Guards.stringValue(this.CLASS_NAME, "id", id);
557
- return this._telemetryConnector.queryValues(id, timeStart, timeEnd, cursor, pageSize);
555
+ async queryValues(id, timeStart, timeEnd, cursor, limit) {
556
+ Guards.stringValue(TelemetryService.CLASS_NAME, "id", id);
557
+ return this._telemetryConnector.queryValues(id, timeStart, timeEnd, cursor, limit);
558
558
  }
559
559
  }
560
560
 
@@ -7,7 +7,7 @@ export declare class TelemetryService implements ITelemetryComponent {
7
7
  /**
8
8
  * Runtime name for the class.
9
9
  */
10
- readonly CLASS_NAME: string;
10
+ static readonly CLASS_NAME: string;
11
11
  /**
12
12
  * Create a new instance of TelemetryService.
13
13
  * @param options The options for the connector.
@@ -53,13 +53,13 @@ export declare class TelemetryService implements ITelemetryComponent {
53
53
  /**
54
54
  * Query the metrics.
55
55
  * @param type The type of the metric.
56
- * @param cursor The cursor to request the next page of entities.
57
- * @param pageSize The maximum number of entities in a page.
56
+ * @param cursor The cursor to request the next chunk of entities.
57
+ * @param limit Limit the number of entities to return.
58
58
  * @returns All the entities for the storage matching the conditions,
59
59
  * and a cursor which can be used to request more entities.
60
60
  * @throws NotImplementedError if the implementation does not support retrieval.
61
61
  */
62
- query(type?: MetricType, cursor?: string, pageSize?: number): Promise<{
62
+ query(type?: MetricType, cursor?: string, limit?: number): Promise<{
63
63
  /**
64
64
  * The metrics.
65
65
  */
@@ -74,13 +74,13 @@ export declare class TelemetryService implements ITelemetryComponent {
74
74
  * @param id The id of the metric.
75
75
  * @param timeStart The inclusive time as the start of the metric entries.
76
76
  * @param timeEnd The inclusive time as the end of the metric entries.
77
- * @param cursor The cursor to request the next page of entities.
78
- * @param pageSize The maximum number of entities in a page.
77
+ * @param cursor The cursor to request the next chunk of entities.
78
+ * @param limit Limit the number of entities to return.
79
79
  * @returns All the entities for the storage matching the conditions,
80
80
  * and a cursor which can be used to request more entities.
81
81
  * @throws NotImplementedError if the implementation does not support retrieval.
82
82
  */
83
- queryValues(id: string, timeStart?: number, timeEnd?: number, cursor?: string, pageSize?: number): Promise<{
83
+ queryValues(id: string, timeStart?: number, timeEnd?: number, cursor?: string, limit?: number): Promise<{
84
84
  /**
85
85
  * The metric details.
86
86
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @twin.org/telemetry-service - Changelog
2
2
 
3
+ ## [0.0.2-next.3](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.2-next.2...telemetry-service-v0.0.2-next.3) (2025-10-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * add validate-locales ([24ed804](https://github.com/twinfoundation/telemetry/commit/24ed804f7ebc47036f323722bc18452729860c92))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/telemetry-models bumped from 0.0.2-next.2 to 0.0.2-next.3
16
+
17
+ ## [0.0.2-next.2](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.2-next.1...telemetry-service-v0.0.2-next.2) (2025-08-29)
18
+
19
+
20
+ ### Features
21
+
22
+ * eslint migration to flat config ([69ac91a](https://github.com/twinfoundation/telemetry/commit/69ac91a89d0b5bc63374a0bd314f770b557dabb4))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/telemetry-models bumped from 0.0.2-next.1 to 0.0.2-next.2
30
+
3
31
  ## [0.0.2-next.1](https://github.com/twinfoundation/telemetry/compare/telemetry-service-v0.0.2-next.0...telemetry-service-v0.0.2-next.1) (2025-08-20)
4
32
 
5
33
 
@@ -78,7 +78,7 @@
78
78
  "exampleResponse": {
79
79
  "value": {
80
80
  "name": "GeneralError",
81
- "message": "component.error",
81
+ "message": "errorMessage",
82
82
  "properties": {
83
83
  "foo": "bar"
84
84
  }
@@ -99,7 +99,7 @@
99
99
  "exampleResponse": {
100
100
  "value": {
101
101
  "name": "UnauthorizedError",
102
- "message": "component.error"
102
+ "message": "errorMessage"
103
103
  }
104
104
  }
105
105
  }
@@ -117,7 +117,7 @@
117
117
  "exampleResponse": {
118
118
  "value": {
119
119
  "name": "InternalServerError",
120
- "message": "component.error"
120
+ "message": "errorMessage"
121
121
  }
122
122
  }
123
123
  }
@@ -152,15 +152,12 @@
152
152
  }
153
153
  },
154
154
  {
155
- "name": "pageSize",
156
- "description": "The maximum number of entities in a page.",
155
+ "name": "limit",
156
+ "description": "Limit the number of entities to return.",
157
157
  "in": "query",
158
158
  "required": false,
159
159
  "schema": {
160
- "type": [
161
- "number",
162
- "string"
163
- ]
160
+ "type": "string"
164
161
  }
165
162
  }
166
163
  ],
@@ -212,7 +209,7 @@
212
209
  "exampleResponse": {
213
210
  "value": {
214
211
  "name": "GeneralError",
215
- "message": "component.error",
212
+ "message": "errorMessage",
216
213
  "properties": {
217
214
  "foo": "bar"
218
215
  }
@@ -233,7 +230,7 @@
233
230
  "exampleResponse": {
234
231
  "value": {
235
232
  "name": "UnauthorizedError",
236
- "message": "component.error"
233
+ "message": "errorMessage"
237
234
  }
238
235
  }
239
236
  }
@@ -251,7 +248,7 @@
251
248
  "exampleResponse": {
252
249
  "value": {
253
250
  "name": "InternalServerError",
254
- "message": "component.error"
251
+ "message": "errorMessage"
255
252
  }
256
253
  }
257
254
  }
@@ -326,7 +323,7 @@
326
323
  "exampleResponse": {
327
324
  "value": {
328
325
  "name": "GeneralError",
329
- "message": "component.error",
326
+ "message": "errorMessage",
330
327
  "properties": {
331
328
  "foo": "bar"
332
329
  }
@@ -347,7 +344,7 @@
347
344
  "exampleResponse": {
348
345
  "value": {
349
346
  "name": "UnauthorizedError",
350
- "message": "component.error"
347
+ "message": "errorMessage"
351
348
  }
352
349
  }
353
350
  }
@@ -365,7 +362,7 @@
365
362
  "exampleResponse": {
366
363
  "value": {
367
364
  "name": "InternalServerError",
368
- "message": "component.error"
365
+ "message": "errorMessage"
369
366
  }
370
367
  }
371
368
  }
@@ -431,7 +428,7 @@
431
428
  "exampleResponse": {
432
429
  "value": {
433
430
  "name": "GeneralError",
434
- "message": "component.error",
431
+ "message": "errorMessage",
435
432
  "properties": {
436
433
  "foo": "bar"
437
434
  }
@@ -452,7 +449,7 @@
452
449
  "exampleResponse": {
453
450
  "value": {
454
451
  "name": "UnauthorizedError",
455
- "message": "component.error"
452
+ "message": "errorMessage"
456
453
  }
457
454
  }
458
455
  }
@@ -470,7 +467,7 @@
470
467
  "exampleResponse": {
471
468
  "value": {
472
469
  "name": "InternalServerError",
473
- "message": "component.error"
470
+ "message": "errorMessage"
474
471
  }
475
472
  }
476
473
  }
@@ -518,7 +515,7 @@
518
515
  "exampleResponse": {
519
516
  "value": {
520
517
  "name": "GeneralError",
521
- "message": "component.error",
518
+ "message": "errorMessage",
522
519
  "properties": {
523
520
  "foo": "bar"
524
521
  }
@@ -539,7 +536,7 @@
539
536
  "exampleResponse": {
540
537
  "value": {
541
538
  "name": "UnauthorizedError",
542
- "message": "component.error"
539
+ "message": "errorMessage"
543
540
  }
544
541
  }
545
542
  }
@@ -557,7 +554,7 @@
557
554
  "exampleResponse": {
558
555
  "value": {
559
556
  "name": "InternalServerError",
560
- "message": "component.error"
557
+ "message": "errorMessage"
561
558
  }
562
559
  }
563
560
  }
@@ -638,7 +635,7 @@
638
635
  "exampleResponse": {
639
636
  "value": {
640
637
  "name": "GeneralError",
641
- "message": "component.error",
638
+ "message": "errorMessage",
642
639
  "properties": {
643
640
  "foo": "bar"
644
641
  }
@@ -659,7 +656,7 @@
659
656
  "exampleResponse": {
660
657
  "value": {
661
658
  "name": "UnauthorizedError",
662
- "message": "component.error"
659
+ "message": "errorMessage"
663
660
  }
664
661
  }
665
662
  }
@@ -677,7 +674,7 @@
677
674
  "exampleResponse": {
678
675
  "value": {
679
676
  "name": "InternalServerError",
680
- "message": "component.error"
677
+ "message": "errorMessage"
681
678
  }
682
679
  }
683
680
  }
@@ -738,15 +735,12 @@
738
735
  }
739
736
  },
740
737
  {
741
- "name": "pageSize",
742
- "description": "The maximum number of entities in a page.",
738
+ "name": "limit",
739
+ "description": "Limit the number of entities to return.",
743
740
  "in": "query",
744
741
  "required": false,
745
742
  "schema": {
746
- "type": [
747
- "number",
748
- "string"
749
- ]
743
+ "type": "string"
750
744
  }
751
745
  }
752
746
  ],
@@ -802,7 +796,7 @@
802
796
  "exampleResponse": {
803
797
  "value": {
804
798
  "name": "GeneralError",
805
- "message": "component.error",
799
+ "message": "errorMessage",
806
800
  "properties": {
807
801
  "foo": "bar"
808
802
  }
@@ -823,7 +817,7 @@
823
817
  "exampleResponse": {
824
818
  "value": {
825
819
  "name": "UnauthorizedError",
826
- "message": "component.error"
820
+ "message": "errorMessage"
827
821
  }
828
822
  }
829
823
  }
@@ -841,7 +835,7 @@
841
835
  "exampleResponse": {
842
836
  "value": {
843
837
  "name": "InternalServerError",
844
- "message": "component.error"
838
+ "message": "errorMessage"
845
839
  }
846
840
  }
847
841
  }
@@ -30,14 +30,10 @@ The options for the connector.
30
30
 
31
31
  ### CLASS\_NAME
32
32
 
33
- > `readonly` **CLASS\_NAME**: `string`
33
+ > `readonly` `static` **CLASS\_NAME**: `string`
34
34
 
35
35
  Runtime name for the class.
36
36
 
37
- #### Implementation of
38
-
39
- `ITelemetryComponent.CLASS_NAME`
40
-
41
37
  ## Methods
42
38
 
43
39
  ### createMetric()
@@ -182,7 +178,7 @@ Nothing.
182
178
 
183
179
  ### query()
184
180
 
185
- > **query**(`type?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `ITelemetryMetric`[]; `cursor?`: `string`; \}\>
181
+ > **query**(`type?`, `cursor?`, `limit?`): `Promise`\<\{ `entities`: `ITelemetryMetric`[]; `cursor?`: `string`; \}\>
186
182
 
187
183
  Query the metrics.
188
184
 
@@ -198,13 +194,13 @@ The type of the metric.
198
194
 
199
195
  `string`
200
196
 
201
- The cursor to request the next page of entities.
197
+ The cursor to request the next chunk of entities.
202
198
 
203
- ##### pageSize?
199
+ ##### limit?
204
200
 
205
201
  `number`
206
202
 
207
- The maximum number of entities in a page.
203
+ Limit the number of entities to return.
208
204
 
209
205
  #### Returns
210
206
 
@@ -225,7 +221,7 @@ NotImplementedError if the implementation does not support retrieval.
225
221
 
226
222
  ### queryValues()
227
223
 
228
- > **queryValues**(`id`, `timeStart?`, `timeEnd?`, `cursor?`, `pageSize?`): `Promise`\<\{ `metric`: `ITelemetryMetric`; `entities`: `ITelemetryMetricValue`[]; `cursor?`: `string`; \}\>
224
+ > **queryValues**(`id`, `timeStart?`, `timeEnd?`, `cursor?`, `limit?`): `Promise`\<\{ `metric`: `ITelemetryMetric`; `entities`: `ITelemetryMetricValue`[]; `cursor?`: `string`; \}\>
229
225
 
230
226
  Query the metric values.
231
227
 
@@ -253,13 +249,13 @@ The inclusive time as the end of the metric entries.
253
249
 
254
250
  `string`
255
251
 
256
- The cursor to request the next page of entities.
252
+ The cursor to request the next chunk of entities.
257
253
 
258
- ##### pageSize?
254
+ ##### limit?
259
255
 
260
256
  `number`
261
257
 
262
- The maximum number of entities in a page.
258
+ Limit the number of entities to return.
263
259
 
264
260
  #### Returns
265
261
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/telemetry-service",
3
- "version": "0.0.2-next.1",
3
+ "version": "0.0.2-next.3",
4
4
  "description": "Telemetry contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
18
18
  "@twin.org/core": "next",
19
19
  "@twin.org/entity": "next",
20
20
  "@twin.org/nameof": "next",
21
- "@twin.org/telemetry-models": "0.0.2-next.1",
21
+ "@twin.org/telemetry-models": "0.0.2-next.3",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/cjs/index.cjs",
@@ -38,5 +38,20 @@
38
38
  "dist/types",
39
39
  "locales",
40
40
  "docs"
41
- ]
41
+ ],
42
+ "keywords": [
43
+ "twin",
44
+ "trade",
45
+ "iota",
46
+ "framework",
47
+ "blockchain",
48
+ "telemetry",
49
+ "service",
50
+ "microservice",
51
+ "business-logic"
52
+ ],
53
+ "bugs": {
54
+ "url": "git+https://github.com/twinfoundation/telemetry/issues"
55
+ },
56
+ "homepage": "https://twindev.org"
42
57
  }