Skip to content

datasets_attributes_get

Guest

Returns available options of dataset attributes of type enum.

Params

attribute description
x_type
['time']
The dataset X-axis types. When omitted all datasets are returned.

Return

attribute description
types*
[Dataset Type]
Definition of the datasets to load

Dataset Type

attribute description
label*
string@datasets
A translation key for the type label to be used in interactive environments
label_file*
string@datasets
A translation key for the type label to be used for file names
id*
string
The unique ID of the type
values
['y_value'|'y_stdev'|'y_min'|'y_max'|'y_threshold_low'|'y_threshold_high']
The supported y_values

Example

The result object value:

{
  "types": [
    {
      "id": "cpu_temp",
      "label": "cpu_temperature",
      "label_file": "cpuTemperature",
      "values": ["y_value", "y_stdev"]
    },
    {
      "id": "in_voltage",
      "label": "input_voltage",
      "label_file": "inputVoltage",
      "values": ["y_value"]
    }
    {
      "id": "events",
      "label": "events",
      "label_file": "events"
    }
  ]
}