Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Datapoint

Metric value for a specific timestamp.

Properties

Optional count

count: undefined | number

The number of occurrences of the associated value in the set of data.

Default is 1. Value must be greater than zero. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

timestamp

timestamp: Date

Timestamp for this metric value. Format defined by RFC3339. For a data point to be posted, its timestamp must be near current time (less than two hours in the past and less than 10 minutes in the future).

Example: {@code 2023-02-01T01:02:29.600Z}

value

value: number

Numeric value of the metric.

Example: {@code 10.23} Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Datapoint): object

getJsonObj