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
| Name | Type | JSON name | Description |
|---|---|---|---|
Channels | List<string>? | channels | Notification channels to tell (their IDs; at most 10). |
Comparison | Models.Observability.LogQueryAlertComparison? | comparison | How a query alert compares its value with the threshold. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DisplayName | string? | displayName | Up to 63 characters. |
Enabled | bool? | enabled | False pauses the schedule. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
IntervalMinutes | int? | intervalMinutes | How often it is evaluated: 1, 5, 15 or 60 minutes. |
Labels | Models.Observability.LogQueryAlert_labels? | labels | At most 64. |
LastError | string? | lastError | Why the last evaluation failed. |
LastEvaluateTime | DateTimeOffset? | lastEvaluateTime | The lastEvaluateTime property |
LastFiredTime | DateTimeOffset? | lastFiredTime | When it last started to fire. |
LastValue | double? | lastValue | The value the last evaluation read. |
Name | string? | name | projects/{project}/locations/{location}/logQueryAlerts/{logQueryAlert}. |
Query | string? | query | The query; it must parse. Usually it ends in `summarize`, so the first row holds the value. |
Severity | Models.Observability.LogQueryAlertSeverity? | severity | How serious a firing query alert is. |
State | Models.Observability.LogQueryAlertState? | state | What a query alert is doing. |
Threshold | double? | threshold | The threshold property |
Uid | string? | uid | The uid property |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
ValueColumn | string? | valueColumn | The column the value is read from; the first numeric column of the first row when omitted. |
WindowMinutes | int? | windowMinutes | How far back each evaluation looks: 1 to 1440 minutes. |