The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the aggregations field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly.
The number/percent of time series for which the comparison must hold in order for the condition to trigger. If unspecified, then the condition will trigger if the comparison is true for any of the time series that have been identified by filter and aggregations, or by the ratio, if denominator_filter and denominator_aggregations are specified.
↳ evaluation_missing_data
int
A condition control that determines how metric-threshold conditions are evaluated when data stops arriving.
The amount of time that a time series must violate the
threshold to be considered failing. Currently, only values
that are a multiple of a minute--e.g., 0, 60, 120, or 300
seconds--are supported. If an invalid value is given, an
error will be returned. When choosing a duration, it is useful to
keep in mind the frequency of the underlying time series data
(which may also be affected by any alignments specified in the
aggregations field); a good duration is long enough so that a single
outlier does not generate spurious alerts, but short enough that
unhealthy states are detected and alerted on quickly.
The amount of time that a time series must violate the
threshold to be considered failing. Currently, only values
that are a multiple of a minute--e.g., 0, 60, 120, or 300
seconds--are supported. If an invalid value is given, an
error will be returned. When choosing a duration, it is useful to
keep in mind the frequency of the underlying time series data
(which may also be affected by any alignments specified in the
aggregations field); a good duration is long enough so that a single
outlier does not generate spurious alerts, but short enough that
unhealthy states are detected and alerted on quickly.
The number/percent of time series for which the comparison must hold
in order for the condition to trigger. If unspecified, then the
condition will trigger if the comparison is true for any of the
time series that have been identified by filter and aggregations,
or by the ratio, if denominator_filter and denominator_aggregations
are specified.
The number/percent of time series for which the comparison must hold
in order for the condition to trigger. If unspecified, then the
condition will trigger if the comparison is true for any of the
time series that have been identified by filter and aggregations,
or by the ratio, if denominator_filter and denominator_aggregations
are specified.
[[["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 MonitoringQueryLanguageCondition (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.AlertPolicy.Condition.MonitoringQueryLanguageCondition) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class MonitoringQueryLanguageCondition.\n\nA condition type that allows alerting policies to be defined using\n[Monitoring Query Language](https://cloud.google.com/monitoring/mql).\n\nGenerated from protobuf message `google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3 \\\\ AlertPolicy \\\\ Condition\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getQuery\n\n[Monitoring Query Language](https://cloud.google.com/monitoring/mql)\nquery that outputs a boolean stream.\n\n### setQuery\n\n[Monitoring Query Language](https://cloud.google.com/monitoring/mql)\nquery that outputs a boolean stream.\n\n### getDuration\n\nThe amount of time that a time series must violate the\nthreshold to be considered failing. Currently, only values\nthat are a multiple of a minute--e.g., 0, 60, 120, or 300\nseconds--are supported. If an invalid value is given, an\nerror will be returned. When choosing a duration, it is useful to\nkeep in mind the frequency of the underlying time series data\n(which may also be affected by any alignments specified in the\n`aggregations` field); a good duration is long enough so that a single\noutlier does not generate spurious alerts, but short enough that\nunhealthy states are detected and alerted on quickly.\n\n### hasDuration\n\n### clearDuration\n\n### setDuration\n\nThe amount of time that a time series must violate the\nthreshold to be considered failing. Currently, only values\nthat are a multiple of a minute--e.g., 0, 60, 120, or 300\nseconds--are supported. If an invalid value is given, an\nerror will be returned. When choosing a duration, it is useful to\nkeep in mind the frequency of the underlying time series data\n(which may also be affected by any alignments specified in the\n`aggregations` field); a good duration is long enough so that a single\noutlier does not generate spurious alerts, but short enough that\nunhealthy states are detected and alerted on quickly.\n\n### getTrigger\n\nThe number/percent of time series for which the comparison must hold\nin order for the condition to trigger. If unspecified, then the\ncondition will trigger if the comparison is true for any of the\ntime series that have been identified by `filter` and `aggregations`,\nor by the ratio, if `denominator_filter` and `denominator_aggregations`\nare specified.\n\n### hasTrigger\n\n### clearTrigger\n\n### setTrigger\n\nThe number/percent of time series for which the comparison must hold\nin order for the condition to trigger. If unspecified, then the\ncondition will trigger if the comparison is true for any of the\ntime series that have been identified by `filter` and `aggregations`,\nor by the ratio, if `denominator_filter` and `denominator_aggregations`\nare specified.\n\n### getEvaluationMissingData\n\nA condition control that determines how metric-threshold conditions\nare evaluated when data stops arriving.\n\n### setEvaluationMissingData\n\nA condition control that determines how metric-threshold conditions\nare evaluated when data stops arriving."]]