New Relic · JSON Structure

Metric Api Metric Data Object Structure

A container for a batch of metrics with optional shared attributes

Type: object Properties: 2 Required: 1
AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

MetricDataObject is a JSON Structure definition published by New Relic, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

common metrics

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/new-relic/refs/heads/main/json-structure/metric-api-metric-data-object-structure.json",
  "name": "MetricDataObject",
  "description": "A container for a batch of metrics with optional shared attributes",
  "type": "object",
  "properties": {
    "common": {
      "$ref": "#/components/schemas/CommonBlock"
    },
    "metrics": {
      "type": "array",
      "description": "Array of individual metric data points",
      "items": {
        "$ref": "#/components/schemas/MetricDataPoint"
      },
      "example": [
        {
          "name": "example-resource-01",
          "type": "gauge",
          "value": 42.5,
          "timestamp": 1718153645993,
          "interval.ms": 100,
          "attributes": {
            "customAttribute": "example_value"
          }
        }
      ]
    }
  },
  "required": [
    "metrics"
  ]
}