From 3fe682a4414d502363dd0d8a567513b4b5fd42bf Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:44:35 +0000 Subject: [PATCH] mark groupby_simple_monitor as deprecated (#2658) Co-authored-by: ci.datadog-api-spec Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 3 ++- api/datadogV1/model_monitor_options.go | 6 +++++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 7df5f5be742..d7c11bdf694 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-09-03 18:07:15.535510", - "spec_repo_commit": "2d21d782" + "regenerated": "2024-09-04 13:35:30.135409", + "spec_repo_commit": "b289628c" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-09-03 18:07:15.553692", - "spec_repo_commit": "2d21d782" + "regenerated": "2024-09-04 13:35:30.153470", + "spec_repo_commit": "b289628c" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index c4d126880cd..ab04f89cbef 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -7066,8 +7066,9 @@ components: Error Tracking, Event, Logs, and RUM monitors.' type: string groupby_simple_monitor: + deprecated: true description: Whether the log alert monitor triggers a single alert or multiple - alerts when any group breaches a threshold. + alerts when any group breaches a threshold. Use `notify_by` instead. type: boolean include_tags: default: true diff --git a/api/datadogV1/model_monitor_options.go b/api/datadogV1/model_monitor_options.go index 4587f05479e..59c518b7d4f 100644 --- a/api/datadogV1/model_monitor_options.go +++ b/api/datadogV1/model_monitor_options.go @@ -33,7 +33,8 @@ type MonitorOptions struct { // Example values are: "60m", "1h", and "2d". // This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. GroupRetentionDuration *string `json:"group_retention_duration,omitempty"` - // Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. + // Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use `notify_by` instead. + // Deprecated GroupbySimpleMonitor *bool `json:"groupby_simple_monitor,omitempty"` // A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. // @@ -377,6 +378,7 @@ func (o *MonitorOptions) SetGroupRetentionDuration(v string) { } // GetGroupbySimpleMonitor returns the GroupbySimpleMonitor field value if set, zero value otherwise. +// Deprecated func (o *MonitorOptions) GetGroupbySimpleMonitor() bool { if o == nil || o.GroupbySimpleMonitor == nil { var ret bool @@ -387,6 +389,7 @@ func (o *MonitorOptions) GetGroupbySimpleMonitor() bool { // GetGroupbySimpleMonitorOk returns a tuple with the GroupbySimpleMonitor field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *MonitorOptions) GetGroupbySimpleMonitorOk() (*bool, bool) { if o == nil || o.GroupbySimpleMonitor == nil { return nil, false @@ -400,6 +403,7 @@ func (o *MonitorOptions) HasGroupbySimpleMonitor() bool { } // SetGroupbySimpleMonitor gets a reference to the given bool and assigns it to the GroupbySimpleMonitor field. +// Deprecated func (o *MonitorOptions) SetGroupbySimpleMonitor(v bool) { o.GroupbySimpleMonitor = &v }