{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-request-rate-by-interval-input-schema.json",
  "title": "RequestRateByIntervalInput",
  "description": "Api request input for LogAnalytics getRequestRateByInterval Api.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-loganalytics-api-openapi.yml#/components/schemas/RequestRateByIntervalInput",
  "type": "object",
  "properties": {
    "intervalLength": {
      "$ref": "#/$defs/IntervalInMins",
      "description": "Interval value in minutes used to create LogAnalytics call rate logs."
    }
  },
  "required": [
    "intervalLength"
  ],
  "allOf": [
    {
      "$ref": "#/$defs/LogAnalyticsInputBase"
    }
  ],
  "$defs": {
    "IntervalInMins": {
      "type": "string",
      "description": "Interval value in minutes used to create LogAnalytics call rate logs.",
      "enum": [
        "ThreeMins",
        "FiveMins",
        "ThirtyMins",
        "SixtyMins"
      ],
      "x-ms-enum": {
        "name": "IntervalInMins",
        "modelAsString": false
      }
    },
    "LogAnalyticsInputBase": {
      "type": "object",
      "description": "Api input base class for LogAnalytics Api.",
      "properties": {
        "blobContainerSasUri": {
          "type": "string",
          "description": "SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to."
        },
        "fromTime": {
          "type": "string",
          "format": "date-time",
          "description": "From time of the query"
        },
        "toTime": {
          "type": "string",
          "format": "date-time",
          "description": "To time of the query"
        },
        "groupByThrottlePolicy": {
          "type": "boolean",
          "description": "Group query result by Throttle Policy applied."
        },
        "groupByOperationName": {
          "type": "boolean",
          "description": "Group query result by Operation Name."
        },
        "groupByResourceName": {
          "type": "boolean",
          "description": "Group query result by Resource Name."
        },
        "groupByClientApplicationId": {
          "type": "boolean",
          "description": "Group query result by Client Application ID."
        },
        "groupByUserAgent": {
          "type": "boolean",
          "description": "Group query result by User Agent."
        }
      },
      "required": [
        "blobContainerSasUri",
        "fromTime",
        "toTime"
      ]
    }
  }
}