reporting.netdata_get_data

Get reporting data for given graphs.

List of possible graphs can be retrieved using reporting.netdata_graphs call.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: graphs

graphs

Type: array of object

Array of graph identifiers specifying which metrics to retrieve.

Must contain a minimum of 1 items

No Additional Items
Each item of this array must be:

GraphIdentifier

Type: object
No Additional Properties

Name

Type: enum (of string)

Type of performance metric to retrieve.

  • cpu: CPU usage statistics
  • cputemp: CPU temperature readings
  • disk: Disk I/O statistics
  • interface: Network interface statistics
  • load: System load averages
  • processes: Process count and statistics
  • memory: Memory usage statistics
  • uptime: System uptime
  • arcsize: ZFS ARC cache size
  • disktemp: Disk temperature readings
  • upscharge: UPS battery charge level
  • upsruntime: UPS estimated runtime
  • upsvoltage: UPS voltage readings
  • upscurrent: UPS current readings
  • upsfrequency: UPS frequency readings
  • upsload: UPS load percentage
  • upstemperature: UPS temperature readings
Must be one of:
  • "cpu"
  • "cputemp"
  • "disk"
  • "interface"
  • "load"
  • "processes"
  • "memory"
  • "uptime"
  • "arcsize"
  • "disktemp"
  • "upscharge"
  • "upsruntime"
  • "upsvoltage"
  • "upscurrent"
  • "upsfrequency"
  • "upsload"
  • "upstemperature"

Identifier

Default: null

Specific instance identifier for the metric (e.g., device name, interface name). null for system-wide metrics.

Type: string

Must be at least 1 characters long

Type: null
Parameter 2: query

query

Type: object

Query parameters for filtering and formatting the returned data.

No Additional Properties

Unit

Default: null

Time unit for data aggregation. null for default aggregation.

Type: enum (of string)
Must be one of:
  • "HOUR"
  • "DAY"
  • "WEEK"
  • "MONTH"
  • "YEAR"
Type: null

Page

Type: integer Default: 1

Page number for paginated results.

Value must be greater or equal to 1

Aggregate

Type: boolean Default: true

Whether to return aggregated data or raw data points.

Start

Default: null

Start timestamp for the data range. null for default start time.

Type: integer

Value must be strictly greater than 0

Type: null

End

Default: null

End timestamp for the data range. null for current time.

Type: integer

Value must be strictly greater than 0

Type: null

Result

Type: array of object

Array of performance data responses for each requested graph.

No Additional Items
Each item of this array must be:

ReportingGetDataResponse

Type: object
No Additional Properties

Name

Type: string

Name of the performance metric.

Must be at least 1 characters long

Identifier


Specific instance identifier for the metric. null for system-wide metrics.

Type: string
Type: null

Data

Type: array

Array of time-series data points for the requested time period.

No Additional Items
Each item of this array must be:
Type: object


Statistical aggregations of the data over the time period.

Aggregations

Type: object
No Additional Properties

Min

Type: object

Minimum value for each data series over the time period.

Each additional property must conform to the following schema

Type: number

Mean

Type: object

Average value for each data series over the time period.

Each additional property must conform to the following schema

Type: number

Max

Type: object

Maximum value for each data series over the time period.

Each additional property must conform to the following schema

Type: number
Type: null

Start

Type: integer

Actual start timestamp of the returned data.

Value must be strictly greater than 0

End

Type: integer

Actual end timestamp of the returned data.

Value must be strictly greater than 0

Legend

Type: array of string

Array of labels describing each data series in the results.

No Additional Items
Each item of this array must be:
Type: string


Required roles: REPORTING_READ