# Azure Metric

Reusable Azure Metric contract.

Canonical URL: https://opennodeflow.dev/wiki/reference-dev-azure-monitor-type-metric/
JSON reference: https://opennodeflow.dev/wiki/reference-dev-azure-monitor-type-metric/index.json
Source snapshot: 2026-10-23

Azure Metric preserves known provider fields and explicit JSON extensions. It is shared across the Azure Monitor operations that use this resource. Optional absence and explicit null are distinct.

Schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "name": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "localizedValue": {
          "type": "string"
        }
      },
      "required": [],
      "additionalProperties": {
        "$ref": "#/definitions/ONFJsonValue"
      }
    },
    "unit": {
      "type": "string"
    },
    "errorCode": {
      "type": "string"
    },
    "errorMessage": {
      "type": "string"
    },
    "timeseries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "metadatavalues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string"
                    },
                    "localizedValue": {
                      "type": "string"
                    }
                  },
                  "required": [],
                  "additionalProperties": {
                    "$ref": "#/definitions/ONFJsonValue"
                  }
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [],
              "additionalProperties": {
                "$ref": "#/definitions/ONFJsonValue"
              }
            }
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "timeStamp": {
                  "type": "string"
                },
                "average": {
                  "type": "number"
                },
                "minimum": {
                  "type": "number"
                },
                "maximum": {
                  "type": "number"
                },
                "total": {
                  "type": "number"
                },
                "count": {
                  "type": "number"
                }
              },
              "required": [],
              "additionalProperties": {
                "$ref": "#/definitions/ONFJsonValue"
              }
            }
          }
        },
        "required": [],
        "additionalProperties": {
          "$ref": "#/definitions/ONFJsonValue"
        }
      }
    }
  },
  "required": [],
  "additionalProperties": {
    "$ref": "#/definitions/ONFJsonValue"
  },
  "definitions": {
    "ONFJsonValue": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ONFJsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/ONFJsonValue"
          }
        }
      ]
    }
  }
}
```

Source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2023-10-01/metrics_API.json https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2023-10-01/metricDefinitions_API.json https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2018-03-01/metricAlert_API.json https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2023-01-01/actionGroups_API.json https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2015-04-01/activityLogs_API.json https://learn.microsoft.com/en-us/rest/api/logsquery/query/execute?view=rest-logsquery-v1 https://learn.microsoft.com/en-us/rest/api/application-insights/query/execute?view=rest-application-insights-v1

Pure type; no credentials or external effects.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `dev.azure-monitor.type.metric` |
| Kind | type |
| Family | azure-monitor |
| Pack | pack_azure |

[Integration guide](/wiki/integration-azure-monitor/) · [Browse the catalog](/wiki/integration-catalog/)



## Configuration schema


```json
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```





## Source and installed versions

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See [versioning](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
