@@ -136,6 +136,7 @@ type CurrentValue struct {
136136}
137137
138138// Create creates an alert configuration for the project associated to {GROUP-ID}.
139+ //
139140// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/
140141func (s * AlertConfigurationsServiceOp ) Create (ctx context.Context , groupID string , createReq * AlertConfiguration ) (* AlertConfiguration , * Response , error ) {
141142 if groupID == "" {
@@ -162,6 +163,7 @@ func (s *AlertConfigurationsServiceOp) Create(ctx context.Context, groupID strin
162163}
163164
164165// EnableAnAlertConfig Enables/disables the alert configuration specified to {ALERT-CONFIG-ID} for the project associated to {GROUP-ID}.
166+ //
165167// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-enable-disable-config/
166168func (s * AlertConfigurationsServiceOp ) EnableAnAlertConfig (ctx context.Context , groupID , alertConfigID string , enabled * bool ) (* AlertConfiguration , * Response , error ) {
167169 if groupID == "" {
@@ -189,6 +191,7 @@ func (s *AlertConfigurationsServiceOp) EnableAnAlertConfig(ctx context.Context,
189191}
190192
191193// GetAnAlertConfig gets the alert configuration specified to {ALERT-CONFIG-ID} for the project associated to {GROUP-ID}.
194+ //
192195// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-get-config/
193196func (s * AlertConfigurationsServiceOp ) GetAnAlertConfig (ctx context.Context , groupID , alertConfigID string ) (* AlertConfiguration , * Response , error ) {
194197 if groupID == "" {
@@ -216,6 +219,7 @@ func (s *AlertConfigurationsServiceOp) GetAnAlertConfig(ctx context.Context, gro
216219}
217220
218221// GetOpenAlertsConfig gets all open alerts for the alert configuration specified to {ALERT-CONFIG-ID} for the project associated to {GROUP-ID}.
222+ //
219223// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-get-open-alerts/
220224func (s * AlertConfigurationsServiceOp ) GetOpenAlertsConfig (ctx context.Context , groupID , alertConfigID string ) ([]AlertConfiguration , * Response , error ) {
221225 if groupID == "" {
@@ -246,6 +250,7 @@ func (s *AlertConfigurationsServiceOp) GetOpenAlertsConfig(ctx context.Context,
246250}
247251
248252// List gets all alert configurations for the project associated to {GROUP-ID}.
253+ //
249254// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-get-all-configs/
250255func (s * AlertConfigurationsServiceOp ) List (ctx context.Context , groupID string , listOptions * ListOptions ) ([]AlertConfiguration , * Response , error ) {
251256 if groupID == "" {
@@ -279,6 +284,7 @@ func (s *AlertConfigurationsServiceOp) List(ctx context.Context, groupID string,
279284}
280285
281286// Update the alert configuration specified to {ALERT-CONFIG-ID} for the project associated to {GROUP-ID}.
287+ //
282288// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-update-config/
283289func (s * AlertConfigurationsServiceOp ) Update (ctx context.Context , groupID , alertConfigID string , updateReq * AlertConfiguration ) (* AlertConfiguration , * Response , error ) {
284290 if updateReq == nil {
@@ -309,6 +315,7 @@ func (s *AlertConfigurationsServiceOp) Update(ctx context.Context, groupID, aler
309315}
310316
311317// Delete the alert configuration specified to {ALERT-CONFIG-ID} for the project associated to {GROUP-ID}.
318+ //
312319// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-delete-config/
313320func (s * AlertConfigurationsServiceOp ) Delete (ctx context.Context , groupID , alertConfigID string ) (* Response , error ) {
314321 if groupID == "" {
@@ -332,6 +339,7 @@ func (s *AlertConfigurationsServiceOp) Delete(ctx context.Context, groupID, aler
332339}
333340
334341// ListMatcherFields gets all field names that the matchers.fieldName parameter accepts when you create or update an Alert Configuration.
342+ //
335343// See more: https://docs.atlas.mongodb.com/reference/api/alert-configurations-get-matchers-field-names/
336344func (s * AlertConfigurationsServiceOp ) ListMatcherFields (ctx context.Context ) ([]string , * Response , error ) {
337345 path := "alertConfigs/matchers/fieldNames"
0 commit comments