contentstack · Schema

UsageAnalyticsRequest

View JSON Schema on GitHub

JSON Schema

contentstack-usageanalyticsrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UsageAnalyticsRequest",
  "title": "UsageAnalyticsRequest",
  "allOf": [
    {
      "$ref": "#/components/schemas/AnalyticsRequest"
    },
    {
      "type": "object",
      "properties": {
        "services": {
          "type": "array",
          "description": "List of Contentstack services to include in the analytics query.",
          "items": {
            "type": "string",
            "enum": [
              "cdn",
              "cma",
              "automations",
              "launch"
            ]
          }
        },
        "api_key": {
          "type": "string",
          "description": "Optional stack API key to filter metrics to a specific stack."
        }
      }
    }
  ]
}