{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/chronosphere/main/json-schema/chronosphere-configv1-create-azure-metrics-integration-request-schema.json", "title": "configv1CreateAzureMetricsIntegrationRequest", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/chronosphere-azuremetricsintegration-api-openapi.yml#/components/schemas/configv1CreateAzureMetricsIntegrationRequest", "properties": { "azure_metrics_integration": { "allOf": [ { "$ref": "#/$defs/configv1AzureMetricsIntegration" } ], "description": "The AzureMetricsIntegration to create." }, "dry_run": { "description": "If `true`, validates the specified configuration without creating the AzureMetricsIntegration. If the specified configuration is valid, the endpoint returns a partial response without the AzureMetricsIntegration. If the specified configuration is invalid, the endpoint returns an error.", "type": "boolean" } }, "type": "object", "$defs": { "AzureMetricsIntegrationAzurePrincipal": { "properties": { "client_id": { "description": "Specifies the OAuth2 client ID of the managed identity principal.", "type": "string" }, "tenant_id": { "description": "Specifies the ID of the Azure tenant that hosts the managed identity principal.", "type": "string" } }, "type": "object" }, "AzureMetricsIntegrationAzureResourceType": { "properties": { "metric_names": { "description": "List of metric names to be targeted (these apply to this resource type; use empty for all metrics).", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the resource type.", "type": "string" } }, "type": "object" }, "AzureMetricsIntegrationAzureScrapeConfig": { "properties": { "locations": { "description": "Locations to be ingested for this integration (these apply to all subscriptions; use empty for all locations).", "items": { "type": "string" }, "type": "array" }, "resource_types": { "description": "Metric groups to be ingested for this integration.", "items": { "$ref": "#/$defs/AzureMetricsIntegrationAzureResourceType" }, "type": "array" }, "subscription_ids": { "description": "Subscriptions to be targeted for this integration (use empty for all subscriptions).", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "configv1AzureMetricsIntegration": { "properties": { "count_metrics_enabled": { "description": "Enables Azure count metrics for the configured resources.", "type": "boolean" }, "created_at": { "description": "Timestamp of when the AzureMetricsIntegration was created. Cannot be set by clients.", "format": "date-time", "readOnly": true, "type": "string" }, "name": { "description": "The name of the AzureMetricsIntegration. You can modify this value after the AzureMetricsIntegration is created.", "type": "string" }, "principal": { "allOf": [ { "$ref": "#/$defs/AzureMetricsIntegrationAzurePrincipal" } ], "description": "The Azure principal that should be used for this config." }, "propagate_tags": { "description": "Specifies whether Azure resource, group, and subscription tags should be propagated as metric labels.", "type": "boolean" }, "scrape_config": { "allOf": [ { "$ref": "#/$defs/AzureMetricsIntegrationAzureScrapeConfig" } ], "description": "Specifies the scrape config for this integration." }, "slug": { "description": "The unique identifier of the AzureMetricsIntegration. If a `slug` isn't provided, one is generated based on the `name` field. You can't modify this field after the AzureMetricsIntegration is created.", "type": "string" }, "updated_at": { "description": "Timestamp of when the AzureMetricsIntegration was last updated. Cannot be set by clients.", "format": "date-time", "readOnly": true, "type": "string" }, "usage_metrics_enabled": { "description": "Enables collection of azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).", "type": "boolean" } }, "required": [ "name" ], "type": "object" } } }