public sealed class SetMonitoringServiceRequest : IMessage<SetMonitoringServiceRequest>, IEquatable<SetMonitoringServiceRequest>, IDeepCloneable<SetMonitoringServiceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class SetMonitoringServiceRequest.
SetMonitoringServiceRequest sets the monitoring service of a cluster.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eSetMonitoringServiceRequest\u003c/code\u003e class within the Google Kubernetes Engine v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetMonitoringServiceRequest\u003c/code\u003e class is used to set the monitoring service for a Kubernetes cluster, with options including "monitoring.googleapis.com/kubernetes", "monitoring.googleapis.com", or "none".\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes details on the class's inheritance, implemented interfaces, constructors, and properties like \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eMonitoringService\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere is a list of different versions of the \u003ccode\u003eSetMonitoringServiceRequest\u003c/code\u003e class, ranging from the latest version 3.33.0 all the way back to version 2.3.0, with hyperlinks to the documentation for each version.\u003c/p\u003e\n"],["\u003cp\u003eSeveral properties, such as \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e, have been deprecated and replaced by the \u003ccode\u003eName\u003c/code\u003e property, which specifies the project, location, and cluster in the format \u003ccode\u003eprojects/*/locations/*/clusters/*\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Kubernetes Engine v1 API - Class SetMonitoringServiceRequest (3.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.35.0 (latest)](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.34.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.34.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.33.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.33.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.32.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.32.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.31.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.31.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.30.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.30.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.29.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.29.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.28.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.28.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.27.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.27.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.26.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.26.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.25.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.25.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.24.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.24.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.23.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.23.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.22.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.21.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.20.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.19.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.18.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.17.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.16.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.15.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.14.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.13.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.12.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.11.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.10.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.9.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.8.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.7.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.6.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.5.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.4.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.3.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.2.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.1.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.0.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.7.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.6.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.5.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.4.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.3.0/Google.Cloud.Container.V1.SetMonitoringServiceRequest) \n\n public sealed class SetMonitoringServiceRequest : IMessage\u003cSetMonitoringServiceRequest\u003e, IEquatable\u003cSetMonitoringServiceRequest\u003e, IDeepCloneable\u003cSetMonitoringServiceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Kubernetes Engine v1 API class SetMonitoringServiceRequest.\n\nSetMonitoringServiceRequest sets the monitoring service of a cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SetMonitoringServiceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SetMonitoringServiceRequest](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.SetMonitoringServiceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SetMonitoringServiceRequest](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.SetMonitoringServiceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SetMonitoringServiceRequest](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.SetMonitoringServiceRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Container.V1](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Container.V1.dll\n\nConstructors\n------------\n\n### SetMonitoringServiceRequest()\n\n public SetMonitoringServiceRequest()\n\n### SetMonitoringServiceRequest(SetMonitoringServiceRequest)\n\n public SetMonitoringServiceRequest(SetMonitoringServiceRequest other)\n\nProperties\n----------\n\n### ClusterId\n\n [Obsolete]\n public string ClusterId { get; set; }\n\nDeprecated. The name of the cluster to upgrade.\nThis field has been deprecated and replaced by the name field.\n\n### MonitoringService\n\n public string MonitoringService { get; set; }\n\nRequired. The monitoring service the cluster should use to write metrics.\nCurrently available options:\n\n- `monitoring.googleapis.com/kubernetes` - The Cloud Monitoring service with a Kubernetes-native resource model\n- `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).\n- `none` - No metrics will be exported from the cluster.\n\nIf left as an empty string,`monitoring.googleapis.com/kubernetes` will be\nused for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.\n\n### Name\n\n public string Name { get; set; }\n\nThe name (project, location, cluster) of the cluster to set monitoring.\nSpecified in the format `projects/*/locations/*/clusters/*`.\n\n### ProjectId\n\n [Obsolete]\n public string ProjectId { get; set; }\n\nDeprecated. The Google Developers Console [project ID or project\nnumber](https://cloud.google.com/resource-manager/docs/creating-managing-projects).\nThis field has been deprecated and replaced by the name field.\n\n### Zone\n\n [Obsolete]\n public string Zone { get; set; }\n\nDeprecated. The name of the Google Compute Engine\n[zone](https://cloud.google.com/compute/docs/zones#available)\nin which the cluster resides. This field has been deprecated and replaced\nby the name field."]]