Skip to content

Commit

Permalink
feat(alert): add missing gcm fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevesy committed Apr 17, 2024
1 parent 4eee6c5 commit 20e466b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 20e466b

Please sign in to comment.