{
  "name": "GetMetricStatistics",
  "plane": "data",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudMetrics.GetMetricStatistics",
    "service": "metrics"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "endTime": {
        "default": null,
        "format": "uint64",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "metricName": {
        "type": "string"
      },
      "namespace": {
        "type": "string"
      },
      "period": {
        "default": null,
        "format": "uint64",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "startTime": {
        "default": null,
        "format": "uint64",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "statistics": {
        "default": null,
        "items": {
          "type": "string"
        },
        "type": [
          "array",
          "null"
        ]
      }
    },
    "required": [
      "metricName",
      "namespace"
    ],
    "title": "GetMetricStatisticsRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "Datapoint": {
        "properties": {
          "timestamp": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "unit": {
            "type": "string"
          },
          "value": {
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "timestamp",
          "unit",
          "value"
        ],
        "type": "object"
      }
    },
    "properties": {
      "datapoints": {
        "items": {
          "$ref": "#/definitions/Datapoint"
        },
        "type": "array"
      }
    },
    "required": [
      "datapoints"
    ],
    "title": "GetMetricStatisticsResponse",
    "type": "object"
  }
}
