From 20e466b91985b5cedba799d9b969fbdce99b0601 Mon Sep 17 00:00:00 2001 From: Julien Levesy Date: Wed, 17 Apr 2024 08:06:56 +0200 Subject: [PATCH] feat(alert): add missing gcm fields --- alert.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/alert.go b/alert.go index f899658..9c5d953 100644 --- a/alert.go +++ b/alert.go @@ -71,6 +71,12 @@ type AlertModel struct { // For Stackdriver MetricQuery *StackdriverAlertQuery `json:"metricQuery,omitempty"` + + // For Cloudmonitoring. + TimeSeriesList *GCMTimeSeriesList `json:"timeSeriesList,omitempty"` + TimeSeriesQuery *GCMTimeSeriesQuery `json:"timeSeriesQuery,omitempty"` + PromQLQuery *GCMPromQLQuery `json:"promQLQuery,omitempty"` + SLOQuery *GCMSLOQuery `json:"sloQuery,omitempty"` } type StackdriverAlertQuery struct {