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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eServiceLevelIndicator\u003c/code\u003e class in the Google Cloud Monitoring v3 API is used to define and measure service performance, which is measured by good service divided by total service, with the resulting value always falling between 0 and 1.\u003c/p\u003e\n"],["\u003cp\u003eThis class offers the capability to define service level indicators (SLIs) using predefined or custom metrics, which can be based on request counts or time-window criteria.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation available is for 3.15.0, while the documentation being viewed is for version 3.3.0 of the \u003ccode\u003eServiceLevelIndicator\u003c/code\u003e, with a variety of versions ranging from 2.3.0 to 3.15.0 also being documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceLevelIndicator\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and it inherits members from the \u003ccode\u003eobject\u003c/code\u003e class, and it offers properties for \u003ccode\u003eBasicSli\u003c/code\u003e, \u003ccode\u003eRequestBased\u003c/code\u003e, \u003ccode\u003eTypeCase\u003c/code\u003e, and \u003ccode\u003eWindowsBased\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for the class is \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e, and it is contained within the \u003ccode\u003eGoogle.Cloud.Monitoring.V3.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]