{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-kubernetes-engine/json-schema/google-kubernetes-engine-set-monitoring-service-request-schema.json",
  "title": "SetMonitoringServiceRequest",
  "description": "SetMonitoringServiceRequest sets the monitoring service of a cluster.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-kubernetes-engine-container-projects-api-openapi.yml#/components/schemas/SetMonitoringServiceRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name (project, location, cluster) of the cluster to set monitoring. Specified in the format `projects/*/locations/*/clusters/*`."
    },
    "zone": {
      "description": "Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.",
      "type": "string",
      "deprecated": true
    },
    "monitoringService": {
      "type": "string",
      "description": "Required. The monitoring service the cluster should use to write metrics. Currently available options: * `monitoring.googleapis.com/kubernetes` - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions."
    },
    "projectId": {
      "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.",
      "type": "string",
      "deprecated": true
    },
    "clusterId": {
      "type": "string",
      "description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.",
      "deprecated": true
    }
  }
}