Reference documentation and code samples for the Stackdriver Monitoring V3 Client class WindowsBasedSli.
AWindowsBasedSlidefinesgood_serviceas the count of time windows for
which the provided service was of good quality. Criteria for determining
if service was good are embedded in thewindow_criterion.
Generated from protobuf messagegoogle.monitoring.v3.WindowsBasedSli
Namespace
Google \ Cloud \ Monitoring \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ good_bad_metric_filter
string
Amonitoring filterspecifying aTimeSerieswithValueType = BOOL. The window is good if anytruevalues appear in the window.
[[["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."],[],[],null,["# Stackdriver Monitoring V3 Client - Class WindowsBasedSli (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.WindowsBasedSli)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.WindowsBasedSli)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.WindowsBasedSli)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.WindowsBasedSli)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.WindowsBasedSli)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.WindowsBasedSli)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.WindowsBasedSli)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.WindowsBasedSli)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.WindowsBasedSli)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.WindowsBasedSli)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.WindowsBasedSli)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.WindowsBasedSli)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.WindowsBasedSli)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.WindowsBasedSli) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class WindowsBasedSli.\n\nA `WindowsBasedSli` defines `good_service` as the count of time windows for\nwhich the provided service was of good quality. Criteria for determining\nif service was good are embedded in the `window_criterion`.\n\nGenerated from protobuf message `google.monitoring.v3.WindowsBasedSli`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGoodBadMetricFilter\n\nA [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)\nspecifying a `TimeSeries` with `ValueType = BOOL`. The window is good if\nany `true` values appear in the window.\n\n### hasGoodBadMetricFilter\n\n### setGoodBadMetricFilter\n\nA [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)\nspecifying a `TimeSeries` with `ValueType = BOOL`. The window is good if\nany `true` values appear in the window.\n\n### getGoodTotalRatioThreshold\n\nA window is good if its `performance` is high enough.\n\n### hasGoodTotalRatioThreshold\n\n### setGoodTotalRatioThreshold\n\nA window is good if its `performance` is high enough.\n\n### getMetricMeanInRange\n\nA window is good if the metric's value is in a good range, averaged\nacross returned streams.\n\n### hasMetricMeanInRange\n\n### setMetricMeanInRange\n\nA window is good if the metric's value is in a good range, averaged\nacross returned streams.\n\n### getMetricSumInRange\n\nA window is good if the metric's value is in a good range, summed across\nreturned streams.\n\n### hasMetricSumInRange\n\n### setMetricSumInRange\n\nA window is good if the metric's value is in a good range, summed across\nreturned streams.\n\n### getWindowPeriod\n\nDuration over which window quality is evaluated. Must be an integer\nfraction of a day and at least `60s`.\n\n### hasWindowPeriod\n\n### clearWindowPeriod\n\n### setWindowPeriod\n\nDuration over which window quality is evaluated. Must be an integer\nfraction of a day and at least `60s`.\n\n### getWindowCriterion"]]