public sealed class ServiceLevelIndicator : IMessage<ServiceLevelIndicator>, IEquatable<ServiceLevelIndicator>, IDeepCloneable<ServiceLevelIndicator>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Monitoring v3 API class ServiceLevelIndicator.
A Service-Level Indicator (SLI) describes the "performance" of a service. For
some services, the SLI is well-defined. In such cases, the SLI can be
described easily by referencing the well-known SLI and providing the needed
parameters. Alternatively, a "custom" SLI can be defined with a query to the
underlying metric store. An SLI is defined to be good_service /
total_service over any queried time interval. The value of performance
always falls into the range 0 <= performance <= 1. A custom SLI describes
how to compute this ratio, whether this is by dividing values from a pair of
time series, cutting a Distribution into good and bad counts, or counting
time windows in which the service complies with a criterion. For separation
of concerns, a single Service-Level Indicator measures performance for only
one aspect of service quality, such as fraction of successful queries or
fast-enough queries.
[[["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-03 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eServiceLevelIndicator\u003c/code\u003e class in the Google Cloud Monitoring v3 API is 3.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceLevelIndicator\u003c/code\u003e class is used to define Service-Level Indicators (SLIs), which measure the performance of a service by calculating the ratio of good service to total service over a given time period.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceLevelIndicator\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role within the Google.Protobuf ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers flexibility in defining SLIs through properties such as \u003ccode\u003eBasicSli\u003c/code\u003e, \u003ccode\u003eRequestBased\u003c/code\u003e, and \u003ccode\u003eWindowsBased\u003c/code\u003e, catering to well-defined services or custom metrics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceLevelIndicator\u003c/code\u003e class is located within the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e namespace, part of the \u003ccode\u003eGoogle.Cloud.Monitoring.V3.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Monitoring v3 API - Class ServiceLevelIndicator (3.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.14.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.13.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.12.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.11.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.10.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.9.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.8.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.7.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.6.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.5.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.4.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.3.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.2.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.1.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.0.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.6.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.5.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.4.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.3.0/Google.Cloud.Monitoring.V3.ServiceLevelIndicator) \n\n public sealed class ServiceLevelIndicator : IMessage\u003cServiceLevelIndicator\u003e, IEquatable\u003cServiceLevelIndicator\u003e, IDeepCloneable\u003cServiceLevelIndicator\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Monitoring v3 API class ServiceLevelIndicator.\n\nA Service-Level Indicator (SLI) describes the \"performance\" of a service. For\nsome services, the SLI is well-defined. In such cases, the SLI can be\ndescribed easily by referencing the well-known SLI and providing the needed\nparameters. Alternatively, a \"custom\" SLI can be defined with a query to the\nunderlying metric store. An SLI is defined to be `good_service /\ntotal_service` over any queried time interval. The value of performance\nalways falls into the range `0 \u003c= performance \u003c= 1`. A custom SLI describes\nhow to compute this ratio, whether this is by dividing values from a pair of\ntime series, cutting a `Distribution` into good and bad counts, or counting\ntime windows in which the service complies with a criterion. For separation\nof concerns, a single Service-Level Indicator measures performance for only\none aspect of service quality, such as fraction of successful queries or\nfast-enough queries. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceLevelIndicator \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceLevelIndicator](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelIndicator), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceLevelIndicator](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelIndicator), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceLevelIndicator](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelIndicator), [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.Monitoring.V3](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Monitoring.V3.dll\n\nConstructors\n------------\n\n### ServiceLevelIndicator()\n\n public ServiceLevelIndicator()\n\n### ServiceLevelIndicator(ServiceLevelIndicator)\n\n public ServiceLevelIndicator(ServiceLevelIndicator other)\n\nProperties\n----------\n\n### BasicSli\n\n public BasicSli BasicSli { get; set; }\n\nBasic SLI on a well-known service type.\n\n### RequestBased\n\n public RequestBasedSli RequestBased { get; set; }\n\nRequest-based SLIs\n\n### TypeCase\n\n public ServiceLevelIndicator.TypeOneofCase TypeCase { get; }\n\n### WindowsBased\n\n public WindowsBasedSli WindowsBased { get; set; }\n\nWindows-based SLIs"]]