New Relic · JSON Structure

New Relic Metric Metric Data Point Structure

A single metric data point

Type: object Properties: 6 Required: 3
AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

MetricDataPoint is a JSON Structure definition published by New Relic, describing 6 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

name type value timestamp interval.ms attributes

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "A single metric data point",
  "name": "MetricDataPoint",
  "properties": {
    "name": {
      "type": "string",
      "description": "The metric name (e.g., cpu.usage.percent)"
    },
    "type": {
      "type": "string",
      "description": "The metric type",
      "enum": [
        "gauge",
        "count",
        "summary"
      ]
    },
    "value": {
      "type": "object",
      "description": "The metric value. For gauge and count, a number. For summary, an object with count, sum, min, and max fields."
    },
    "timestamp": {
      "type": "integer",
      "description": "Unix timestamp in milliseconds. Overrides the common timestamp for this metric."
    },
    "interval.ms": {
      "type": "integer",
      "description": "Measurement interval in milliseconds. Required for count and summary types."
    },
    "attributes": {
      "type": "object",
      "description": "Additional key-value attributes for this metric point"
    }
  },
  "required": [
    "name",
    "type",
    "value"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}