Skip to content

Metric

Manage metrics.


Get

Endpoint

1
POST /metric/get

Authorized Role/Capability

1
device

JSON Body Fields

Field Type Required Notes
dimensions object Dimensions for metric
metric string Metric name
period number Metric timespan period
statistic string Metric statistic

Response


Fetch

Endpoint

1
POST /metric/fetch

Authorized Role/Capability

1
user

JSON Body Fields

Field Type Required Notes
items array Array of metric items to retrieve
deviceId string Device ID owning the metrics

Response


GetMetricList

Endpoint

1
POST /metric/getMetricList

Authorized Role/Capability

1
user

JSON Body Fields

Field Type Required Notes
cloudId string Device cloud ID
namespace string Metric namespace
metric string Metric name
model string Database model

Response


Set

Endpoint

1
POST /metric/set

Authorized Role/Capability

1
device

JSON Body Fields

Field Type Required Notes
metric string Metric name
value number Metric value
dimensions array Array of dimensions for metric
buffer object Metric buffering options

Response