{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-csm-operation-collection-schema.json",
  "title": "CsmOperationCollection",
  "description": "Collection of Azure resource manager operation metadata.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-operations-api-openapi.yml#/components/schemas/CsmOperationCollection",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "Collection of resources.",
      "items": {
        "$ref": "#/$defs/CsmOperationDescription"
      },
      "x-ms-identifiers": [
        "name"
      ]
    },
    "nextLink": {
      "type": "string",
      "description": "Link to next page of resources.",
      "readOnly": true
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "CsmOperationDescription": {
      "type": "object",
      "description": "Description of an operation available for Microsoft.Web resource provider.",
      "properties": {
        "name": {
          "type": "string"
        },
        "isDataAction": {
          "type": "boolean"
        },
        "display": {
          "$ref": "#/$defs/CsmOperationDisplay",
          "description": "Meta data about operation used for display in portal."
        },
        "origin": {
          "type": "string"
        },
        "properties": {
          "$ref": "#/$defs/CsmOperationDescriptionProperties",
          "description": "Properties available for a Microsoft.Web resource provider operation."
        }
      }
    },
    "CsmOperationDescriptionProperties": {
      "type": "object",
      "description": "Properties available for a Microsoft.Web resource provider operation.",
      "properties": {
        "serviceSpecification": {
          "$ref": "#/$defs/ServiceSpecification",
          "description": "Resource metrics service provided by Microsoft.Insights resource provider."
        }
      }
    },
    "CsmOperationDisplay": {
      "type": "object",
      "description": "Meta data about operation used for display in portal.",
      "properties": {
        "provider": {
          "type": "string"
        },
        "resource": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "Dimension": {
      "type": "object",
      "description": "Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app,\nwhere instance name is dimension of the metric HTTP request",
      "properties": {
        "name": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "internalName": {
          "type": "string"
        },
        "toBeExportedForShoebox": {
          "type": "boolean"
        }
      }
    },
    "LogSpecification": {
      "type": "object",
      "description": "Log Definition of a single resource metric.",
      "properties": {
        "name": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "blobDuration": {
          "type": "string"
        },
        "logFilterPattern": {
          "type": "string"
        }
      }
    },
    "MetricAvailability": {
      "type": "object",
      "description": "Retention policy of a resource metric.",
      "properties": {
        "timeGrain": {
          "type": "string"
        },
        "blobDuration": {
          "type": "string"
        }
      }
    },
    "MetricSpecification": {
      "type": "object",
      "description": "Definition of a single resource metric.",
      "properties": {
        "name": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "displayDescription": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "aggregationType": {
          "type": "string"
        },
        "supportsInstanceLevelAggregation": {
          "type": "boolean"
        },
        "enableRegionalMdmAccount": {
          "type": "boolean"
        },
        "sourceMdmAccount": {
          "type": "string"
        },
        "sourceMdmNamespace": {
          "type": "string"
        },
        "metricFilterPattern": {
          "type": "string"
        },
        "fillGapWithZero": {
          "type": "boolean"
        },
        "isInternal": {
          "type": "boolean"
        },
        "dimensions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Dimension"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "category": {
          "type": "string"
        },
        "availabilities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetricAvailability"
          },
          "x-ms-identifiers": []
        },
        "supportedTimeGrainTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "supportedAggregationTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ServiceSpecification": {
      "type": "object",
      "description": "Resource metrics service provided by Microsoft.Insights resource provider.",
      "properties": {
        "metricSpecifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetricSpecification"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "logSpecifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LogSpecification"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    }
  }
}