SDK reference / Models / Observability

LogQueryAlert

Kind: class

Namespace: Egulu.Sdk.Models.Observability

A scheduled query alert: every intervalMinutes the platform runs query over the last windowMinutes, takes the value (the first row'svalueColumn, or the first row's first numeric column; with no rows, no data) and compares it with threshold. A change to firing tells thechannels; a return to OK tells them again.

Properties

NameTypeJSON nameDescription
ChannelsList<string>?channelsNotification channels to tell (their IDs; at most 10).
ComparisonModels.Observability.LogQueryAlertComparison?comparisonHow a query alert compares its value with the threshold.
CreateTimeDateTimeOffset?createTimeThe createTime property
DisplayNamestring?displayNameUp to 63 characters.
Enabledbool?enabledFalse pauses the schedule.
Etagstring?etag"{generation}"; send it back in If-Match.
IntervalMinutesint?intervalMinutesHow often it is evaluated: 1, 5, 15 or 60 minutes.
LabelsModels.Observability.LogQueryAlert_labels?labelsAt most 64.
LastErrorstring?lastErrorWhy the last evaluation failed.
LastEvaluateTimeDateTimeOffset?lastEvaluateTimeThe lastEvaluateTime property
LastFiredTimeDateTimeOffset?lastFiredTimeWhen it last started to fire.
LastValuedouble?lastValueThe value the last evaluation read.
Namestring?nameprojects/{project}/locations/{location}/logQueryAlerts/{logQueryAlert}.
Querystring?queryThe query; it must parse. Usually it ends in `summarize`, so the first row holds the value.
SeverityModels.Observability.LogQueryAlertSeverity?severityHow serious a firing query alert is.
StateModels.Observability.LogQueryAlertState?stateWhat a query alert is doing.
Thresholddouble?thresholdThe threshold property
Uidstring?uidThe uid property
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
ValueColumnstring?valueColumnThe column the value is read from; the first numeric column of the first row when omitted.
WindowMinutesint?windowMinutesHow far back each evaluation looks: 1 to 1440 minutes.