New Relic · JSON Structure

Metric Api Common Block Structure

Shared attributes applied to all metrics in this data object unless overridden at the metric level

Type: object Properties: 3
AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

CommonBlock is a JSON Structure definition published by New Relic, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

timestamp interval.ms attributes

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-common-block-structure.json",
  "name": "CommonBlock",
  "description": "Shared attributes applied to all metrics in this data object unless overridden at the metric level",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "int32",
      "description": "Unix timestamp in milliseconds for all metrics in this batch",
      "example": 1718153645993
    },
    "interval.ms": {
      "type": "int32",
      "description": "Default measurement interval in milliseconds for count and summary metrics",
      "example": 100
    },
    "attributes": {
      "type": "object",
      "description": "Key-value pairs applied to all metrics in the batch. Values can be strings, numbers, or booleans.",
      "additionalProperties": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "double"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "example": {
        "customAttribute": "example_value"
      }
    }
  }
}