From 6d1e4a9ef3b568cccbb51b7415e9c65b1d3a0c27 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2020 14:36:22 +0200 Subject: [PATCH] Regenerate client from commit 37e359d of spec repo (#403) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++-- api/v1/datadog/api/openapi.yaml | 16 +++++++ api/v1/datadog/docs/ChangeWidgetRequest.md | 26 ++++++++++++ api/v1/datadog/docs/DashboardsApi.md | 2 +- .../datadog/docs/DistributionWidgetRequest.md | 26 ++++++++++++ api/v1/datadog/docs/HeatMapWidgetRequest.md | 26 ++++++++++++ api/v1/datadog/docs/HostMapRequest.md | 26 ++++++++++++ api/v1/datadog/docs/ScatterPlotRequest.md | 26 ++++++++++++ api/v1/datadog/docs/TableWidgetRequest.md | 26 ++++++++++++ .../datadog/docs/TimeseriesWidgetRequest.md | 26 ++++++++++++ api/v1/datadog/docs/ToplistWidgetRequest.md | 26 ++++++++++++ api/v1/datadog/model_change_widget_request.go | 40 +++++++++++++++++- .../model_distribution_widget_request.go | 42 +++++++++++++++++-- .../datadog/model_heat_map_widget_request.go | 42 +++++++++++++++++-- api/v1/datadog/model_host_map_request.go | 40 +++++++++++++++++- api/v1/datadog/model_scatter_plot_request.go | 40 +++++++++++++++++- api/v1/datadog/model_table_widget_request.go | 40 +++++++++++++++++- .../model_timeseries_widget_request.go | 42 +++++++++++++++++-- .../datadog/model_toplist_widget_request.go | 42 +++++++++++++++++-- 19 files changed, 537 insertions(+), 25 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 44f6ca6df2e..bdbec8556d2 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.2.0", - "regenerated": "2020-07-23 11:00:29.046856", - "spec_repo_commit": "83c12e5" + "regenerated": "2020-07-23 12:04:18.350338", + "spec_repo_commit": "37e359d" }, "v2": { "apigentools_version": "1.2.0", - "regenerated": "2020-07-23 11:00:35.662767", - "spec_repo_commit": "83c12e5" + "regenerated": "2020-07-23 12:04:24.308927", + "spec_repo_commit": "37e359d" } } } \ No newline at end of file diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index b15d1a042bb..676aaab499f 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -6986,6 +6986,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' show_present: description: Whether to show the present value. type: boolean @@ -7471,6 +7473,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' style: $ref: '#/components/schemas/WidgetStyle' type: object @@ -8238,6 +8242,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' style: $ref: '#/components/schemas/WidgetStyle' type: object @@ -8444,6 +8450,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' type: object HostMapWidgetDefinition: description: The host map widget graphs any metric across your hosts using the @@ -11986,6 +11994,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' type: object ScatterPlotWidgetDefinition: description: The scatter plot visualization allows you to graph a chosen scope @@ -14232,6 +14242,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' type: object TagToHosts: description: In this object, the key is the tag, the value is a list of host @@ -14332,6 +14344,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' style: $ref: '#/components/schemas/WidgetRequestStyle' type: object @@ -14400,6 +14414,8 @@ components: type: string rum_query: $ref: '#/components/schemas/LogQueryDefinition' + security_query: + $ref: '#/components/schemas/LogQueryDefinition' style: $ref: '#/components/schemas/WidgetRequestStyle' type: object diff --git a/api/v1/datadog/docs/ChangeWidgetRequest.md b/api/v1/datadog/docs/ChangeWidgetRequest.md index d9639c9126f..031f2f5097a 100644 --- a/api/v1/datadog/docs/ChangeWidgetRequest.md +++ b/api/v1/datadog/docs/ChangeWidgetRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Query definition. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] **ShowPresent** | Pointer to **bool** | Whether to show the present value. | [optional] ## Methods @@ -337,6 +338,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *ChangeWidgetRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *ChangeWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *ChangeWidgetRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *ChangeWidgetRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + ### GetShowPresent `func (o *ChangeWidgetRequest) GetShowPresent() bool` diff --git a/api/v1/datadog/docs/DashboardsApi.md b/api/v1/datadog/docs/DashboardsApi.md index ee153173c4b..e2f0d61295b 100644 --- a/api/v1/datadog/docs/DashboardsApi.md +++ b/api/v1/datadog/docs/DashboardsApi.md @@ -46,7 +46,7 @@ func main() { }, ) - body := datadog.Dashboard{AuthorHandle: "AuthorHandle_example", CreatedAt: "TODO", Description: "Description_example", Id: "Id_example", IsReadOnly: false, LayoutType: datadog.DashboardLayoutType{}, ModifiedAt: "TODO", NotifyList: []string{"NotifyList_example"), TemplateVariablePresets: []DashboardTemplateVariablePreset{datadog.DashboardTemplateVariablePreset{Name: "Name_example", TemplateVariables: []DashboardTemplateVariablePresetValue{datadog.DashboardTemplateVariablePresetValue{Name: "Name_example", Value: "Value_example"})}), TemplateVariables: []DashboardTemplateVariables{datadog.Dashboard_template_variables{Default: "Default_example", Name: "Name_example", Prefix: "Prefix_example"}), Title: "Title_example", Url: "Url_example", Widgets: []Widget{datadog.Widget{Definition: datadog.WidgetDefinition{AlertId: "AlertId_example", Time: datadog.WidgetTime{LiveSpan: datadog.WidgetLiveSpan{}}, Title: "Title_example", TitleAlign: datadog.WidgetTextAlign{}, TitleSize: "TitleSize_example", Type: datadog.ToplistWidgetDefinitionType{}, VizType: datadog.WidgetVizType{}, Precision: int64(123), TextAlign: datadog.WidgetTextAlign{}, Unit: "Unit_example", Requests: []ToplistWidgetRequest{datadog.ToplistWidgetRequest{ApmQuery: datadog.LogQueryDefinition{Compute: datadog.LogsQueryCompute{Aggregation: "Aggregation_example", Facet: "Facet_example", Interval: int64(123)}, GroupBy: []LogQueryDefinitionGroupBy{datadog.LogQueryDefinition_group_by{Facet: "Facet_example", Limit: int64(123), Sort: datadog.LogQueryDefinition_sort{Aggregation: "Aggregation_example", Facet: "Facet_example", Order: datadog.WidgetSort{}}}), Index: "Index_example", MultiCompute: []LogsQueryCompute{datadog.LogsQueryCompute{Aggregation: "Aggregation_example", Facet: "Facet_example", Interval: int64(123)}), Search: datadog.LogQueryDefinition_search{Query: "Query_example"}}, ConditionalFormats: []WidgetConditionalFormat{datadog.WidgetConditionalFormat{Comparator: datadog.WidgetComparator{}, CustomBgColor: "CustomBgColor_example", CustomFgColor: "CustomFgColor_example", HideValue: false, ImageUrl: "ImageUrl_example", Metric: "Metric_example", Palette: datadog.WidgetPalette{}, Timeframe: "Timeframe_example", Value: 123}), EventQuery: datadog.EventQueryDefinition{Search: "Search_example", TagsExecution: "TagsExecution_example"}, LogQuery: datadog.LogQueryDefinition{Compute: , GroupBy: []LogQueryDefinitionGroupBy{datadog.LogQueryDefinition_group_by{Facet: "Facet_example", Limit: int64(123), Sort: datadog.LogQueryDefinition_sort{Aggregation: "Aggregation_example", Facet: "Facet_example", Order: datadog.WidgetSort{}}}), Index: "Index_example", MultiCompute: []LogsQueryCompute{), Search: datadog.LogQueryDefinition_search{Query: "Query_example"}}, NetworkQuery: , ProcessQuery: datadog.ProcessQueryDefinition{FilterBy: []string{"FilterBy_example"), Limit: int64(123), Metric: "Metric_example", SearchBy: "SearchBy_example"}, Q: "Q_example", RumQuery: , Style: datadog.WidgetRequestStyle{LineType: datadog.WidgetLineType{}, LineWidth: datadog.WidgetLineWidth{}, Palette: "Palette_example"}}), Check: "Check_example", Group: []string{"Group_example"), GroupBy: []string{"GroupBy_example"), Grouping: datadog.WidgetGrouping{}, Tags: []string{"Tags_example"), LegendSize: datadog.WidgetLegendSize{}, ShowLegend: false, EventSize: datadog.WidgetEventSize{}, Query: "Query_example", TagsExecution: "TagsExecution_example", Color: "Color_example", FontSize: "FontSize_example", Text: "Text_example", LayoutType: datadog.WidgetLayoutType{}, Widgets: []Widget{datadog.Widget{Definition: datadog.WidgetDefinition{AlertId: "AlertId_example", Time: datadog.WidgetTime{LiveSpan: datadog.WidgetLiveSpan{}}, Title: "Title_example", TitleAlign: , TitleSize: "TitleSize_example", Type: datadog.ToplistWidgetDefinitionType{}, VizType: datadog.WidgetVizType{}, Precision: int64(123), TextAlign: , Unit: "Unit_example", Requests: []ToplistWidgetRequest{datadog.ToplistWidgetRequest{ApmQuery: , ConditionalFormats: []WidgetConditionalFormat{datadog.WidgetConditionalFormat{Comparator: datadog.WidgetComparator{}, CustomBgColor: "CustomBgColor_example", CustomFgColor: "CustomFgColor_example", HideValue: false, ImageUrl: "ImageUrl_example", Metric: "Metric_example", Palette: datadog.WidgetPalette{}, Timeframe: "Timeframe_example", Value: 123}), EventQuery: datadog.EventQueryDefinition{Search: "Search_example", TagsExecution: "TagsExecution_example"}, LogQuery: , NetworkQuery: , ProcessQuery: datadog.ProcessQueryDefinition{FilterBy: []string{"FilterBy_example"), Limit: int64(123), Metric: "Metric_example", SearchBy: "SearchBy_example"}, Q: "Q_example", RumQuery: , Style: datadog.WidgetRequestStyle{LineType: datadog.WidgetLineType{}, LineWidth: datadog.WidgetLineWidth{}, Palette: "Palette_example"}}), Check: "Check_example", Group: []string{"Group_example"), GroupBy: []string{"GroupBy_example"), Grouping: datadog.WidgetGrouping{}, Tags: []string{"Tags_example"), LegendSize: datadog.WidgetLegendSize{}, ShowLegend: false, EventSize: datadog.WidgetEventSize{}, Query: "Query_example", TagsExecution: "TagsExecution_example", Color: "Color_example", FontSize: "FontSize_example", Text: "Text_example", LayoutType: datadog.WidgetLayoutType{}, Widgets: []Widget{), Events: []WidgetEvent{datadog.WidgetEvent{Q: "Q_example", TagsExecution: "TagsExecution_example"}), Yaxis: datadog.WidgetAxis{IncludeZero: false, Label: "Label_example", Max: "Max_example", Min: "Min_example", Scale: "Scale_example"}, NoGroupHosts: false, NoMetricHosts: false, NodeType: datadog.WidgetNodeType{}, Notes: "Notes_example", Scope: []string{"Scope_example"), Style: datadog.HostMapWidgetDefinition_style{FillMax: "FillMax_example", FillMin: "FillMin_example", Palette: "Palette_example", PaletteFlip: false}, Url: "Url_example", Margin: datadog.WidgetMargin{}, Sizing: datadog.WidgetImageSizing{}, Columns: []string{"Columns_example"), Indexes: []string{"Indexes_example"), Logset: "Logset_example", MessageDisplay: datadog.WidgetMessageDisplay{}, ShowDateColumn: false, ShowMessageColumn: false, Sort: datadog.WidgetMonitorSummarySort{}, ColorPreference: datadog.WidgetColorPreference{}, Count: int64(123), DisplayFormat: datadog.WidgetServiceSummaryDisplayFormat{}, HideZeroCounts: false, ShowLastTriggered: false, Start: int64(123), SummaryType: datadog.WidgetSummaryType{}, BackgroundColor: "BackgroundColor_example", Content: "Content_example", ShowTick: false, TickEdge: datadog.WidgetTickEdge{}, TickPos: "TickPos_example", Autoscale: false, CustomUnit: "CustomUnit_example", ColorByGroups: []string{"ColorByGroups_example"), Xaxis: datadog.WidgetAxis{IncludeZero: false, Label: "Label_example", Max: "Max_example", Min: "Min_example", Scale: "Scale_example"}, ShowErrorBudget: false, SloId: "SloId_example", TimeWindows: []WidgetTimeWindows{datadog.WidgetTimeWindows{}), ViewMode: datadog.WidgetViewMode{}, ViewType: "ViewType_example", Filters: []string{"Filters_example"), Service: "Service_example", Env: "Env_example", ShowBreakdown: false, ShowDistribution: false, ShowErrors: false, ShowHits: false, ShowLatency: false, ShowResourceList: false, SizeFormat: datadog.WidgetSizeFormat{}, SpanName: "SpanName_example", Markers: []WidgetMarker{datadog.WidgetMarker{DisplayType: "DisplayType_example", Label: "Label_example", Time: "Time_example", Value: "Value_example"})}, Id: int64(123), Layout: datadog.WidgetLayout{Height: int64(123), Width: int64(123), X: int64(123), Y: int64(123)}}), Events: []WidgetEvent{datadog.WidgetEvent{Q: "Q_example", TagsExecution: "TagsExecution_example"}), Yaxis: , NoGroupHosts: false, NoMetricHosts: false, NodeType: datadog.WidgetNodeType{}, Notes: "Notes_example", Scope: []string{"Scope_example"), Style: datadog.HostMapWidgetDefinition_style{FillMax: "FillMax_example", FillMin: "FillMin_example", Palette: "Palette_example", PaletteFlip: false}, Url: "Url_example", Margin: datadog.WidgetMargin{}, Sizing: datadog.WidgetImageSizing{}, Columns: []string{"Columns_example"), Indexes: []string{"Indexes_example"), Logset: "Logset_example", MessageDisplay: datadog.WidgetMessageDisplay{}, ShowDateColumn: false, ShowMessageColumn: false, Sort: datadog.WidgetMonitorSummarySort{}, ColorPreference: datadog.WidgetColorPreference{}, Count: int64(123), DisplayFormat: datadog.WidgetServiceSummaryDisplayFormat{}, HideZeroCounts: false, ShowLastTriggered: false, Start: int64(123), SummaryType: datadog.WidgetSummaryType{}, BackgroundColor: "BackgroundColor_example", Content: "Content_example", ShowTick: false, TickEdge: datadog.WidgetTickEdge{}, TickPos: "TickPos_example", Autoscale: false, CustomUnit: "CustomUnit_example", ColorByGroups: []string{"ColorByGroups_example"), Xaxis: , ShowErrorBudget: false, SloId: "SloId_example", TimeWindows: []WidgetTimeWindows{datadog.WidgetTimeWindows{}), ViewMode: datadog.WidgetViewMode{}, ViewType: "ViewType_example", Filters: []string{"Filters_example"), Service: "Service_example", Env: "Env_example", ShowBreakdown: false, ShowDistribution: false, ShowErrors: false, ShowHits: false, ShowLatency: false, ShowResourceList: false, SizeFormat: datadog.WidgetSizeFormat{}, SpanName: "SpanName_example", Markers: []WidgetMarker{datadog.WidgetMarker{DisplayType: "DisplayType_example", Label: "Label_example", Time: "Time_example", Value: "Value_example"})}, Id: int64(123), Layout: datadog.WidgetLayout{Height: int64(123), Width: int64(123), X: int64(123), Y: int64(123)}})} // Dashboard | Create a dashboard request body. + body := datadog.Dashboard{AuthorHandle: "AuthorHandle_example", CreatedAt: "TODO", Description: "Description_example", Id: "Id_example", IsReadOnly: false, LayoutType: datadog.DashboardLayoutType{}, ModifiedAt: "TODO", NotifyList: []string{"NotifyList_example"), TemplateVariablePresets: []DashboardTemplateVariablePreset{datadog.DashboardTemplateVariablePreset{Name: "Name_example", TemplateVariables: []DashboardTemplateVariablePresetValue{datadog.DashboardTemplateVariablePresetValue{Name: "Name_example", Value: "Value_example"})}), TemplateVariables: []DashboardTemplateVariables{datadog.Dashboard_template_variables{Default: "Default_example", Name: "Name_example", Prefix: "Prefix_example"}), Title: "Title_example", Url: "Url_example", Widgets: []Widget{datadog.Widget{Definition: datadog.WidgetDefinition{AlertId: "AlertId_example", Time: datadog.WidgetTime{LiveSpan: datadog.WidgetLiveSpan{}}, Title: "Title_example", TitleAlign: datadog.WidgetTextAlign{}, TitleSize: "TitleSize_example", Type: datadog.ToplistWidgetDefinitionType{}, VizType: datadog.WidgetVizType{}, Precision: int64(123), TextAlign: datadog.WidgetTextAlign{}, Unit: "Unit_example", Requests: []ToplistWidgetRequest{datadog.ToplistWidgetRequest{ApmQuery: datadog.LogQueryDefinition{Compute: datadog.LogsQueryCompute{Aggregation: "Aggregation_example", Facet: "Facet_example", Interval: int64(123)}, GroupBy: []LogQueryDefinitionGroupBy{datadog.LogQueryDefinition_group_by{Facet: "Facet_example", Limit: int64(123), Sort: datadog.LogQueryDefinition_sort{Aggregation: "Aggregation_example", Facet: "Facet_example", Order: datadog.WidgetSort{}}}), Index: "Index_example", MultiCompute: []LogsQueryCompute{datadog.LogsQueryCompute{Aggregation: "Aggregation_example", Facet: "Facet_example", Interval: int64(123)}), Search: datadog.LogQueryDefinition_search{Query: "Query_example"}}, ConditionalFormats: []WidgetConditionalFormat{datadog.WidgetConditionalFormat{Comparator: datadog.WidgetComparator{}, CustomBgColor: "CustomBgColor_example", CustomFgColor: "CustomFgColor_example", HideValue: false, ImageUrl: "ImageUrl_example", Metric: "Metric_example", Palette: datadog.WidgetPalette{}, Timeframe: "Timeframe_example", Value: 123}), EventQuery: datadog.EventQueryDefinition{Search: "Search_example", TagsExecution: "TagsExecution_example"}, LogQuery: datadog.LogQueryDefinition{Compute: , GroupBy: []LogQueryDefinitionGroupBy{datadog.LogQueryDefinition_group_by{Facet: "Facet_example", Limit: int64(123), Sort: datadog.LogQueryDefinition_sort{Aggregation: "Aggregation_example", Facet: "Facet_example", Order: datadog.WidgetSort{}}}), Index: "Index_example", MultiCompute: []LogsQueryCompute{), Search: datadog.LogQueryDefinition_search{Query: "Query_example"}}, NetworkQuery: , ProcessQuery: datadog.ProcessQueryDefinition{FilterBy: []string{"FilterBy_example"), Limit: int64(123), Metric: "Metric_example", SearchBy: "SearchBy_example"}, Q: "Q_example", RumQuery: , SecurityQuery: , Style: datadog.WidgetRequestStyle{LineType: datadog.WidgetLineType{}, LineWidth: datadog.WidgetLineWidth{}, Palette: "Palette_example"}}), Check: "Check_example", Group: []string{"Group_example"), GroupBy: []string{"GroupBy_example"), Grouping: datadog.WidgetGrouping{}, Tags: []string{"Tags_example"), LegendSize: datadog.WidgetLegendSize{}, ShowLegend: false, EventSize: datadog.WidgetEventSize{}, Query: "Query_example", TagsExecution: "TagsExecution_example", Color: "Color_example", FontSize: "FontSize_example", Text: "Text_example", LayoutType: datadog.WidgetLayoutType{}, Widgets: []Widget{datadog.Widget{Definition: datadog.WidgetDefinition{AlertId: "AlertId_example", Time: datadog.WidgetTime{LiveSpan: datadog.WidgetLiveSpan{}}, Title: "Title_example", TitleAlign: , TitleSize: "TitleSize_example", Type: datadog.ToplistWidgetDefinitionType{}, VizType: datadog.WidgetVizType{}, Precision: int64(123), TextAlign: , Unit: "Unit_example", Requests: []ToplistWidgetRequest{datadog.ToplistWidgetRequest{ApmQuery: , ConditionalFormats: []WidgetConditionalFormat{datadog.WidgetConditionalFormat{Comparator: datadog.WidgetComparator{}, CustomBgColor: "CustomBgColor_example", CustomFgColor: "CustomFgColor_example", HideValue: false, ImageUrl: "ImageUrl_example", Metric: "Metric_example", Palette: datadog.WidgetPalette{}, Timeframe: "Timeframe_example", Value: 123}), EventQuery: datadog.EventQueryDefinition{Search: "Search_example", TagsExecution: "TagsExecution_example"}, LogQuery: , NetworkQuery: , ProcessQuery: datadog.ProcessQueryDefinition{FilterBy: []string{"FilterBy_example"), Limit: int64(123), Metric: "Metric_example", SearchBy: "SearchBy_example"}, Q: "Q_example", RumQuery: , SecurityQuery: , Style: datadog.WidgetRequestStyle{LineType: datadog.WidgetLineType{}, LineWidth: datadog.WidgetLineWidth{}, Palette: "Palette_example"}}), Check: "Check_example", Group: []string{"Group_example"), GroupBy: []string{"GroupBy_example"), Grouping: datadog.WidgetGrouping{}, Tags: []string{"Tags_example"), LegendSize: datadog.WidgetLegendSize{}, ShowLegend: false, EventSize: datadog.WidgetEventSize{}, Query: "Query_example", TagsExecution: "TagsExecution_example", Color: "Color_example", FontSize: "FontSize_example", Text: "Text_example", LayoutType: datadog.WidgetLayoutType{}, Widgets: []Widget{), Events: []WidgetEvent{datadog.WidgetEvent{Q: "Q_example", TagsExecution: "TagsExecution_example"}), Yaxis: datadog.WidgetAxis{IncludeZero: false, Label: "Label_example", Max: "Max_example", Min: "Min_example", Scale: "Scale_example"}, NoGroupHosts: false, NoMetricHosts: false, NodeType: datadog.WidgetNodeType{}, Notes: "Notes_example", Scope: []string{"Scope_example"), Style: datadog.HostMapWidgetDefinition_style{FillMax: "FillMax_example", FillMin: "FillMin_example", Palette: "Palette_example", PaletteFlip: false}, Url: "Url_example", Margin: datadog.WidgetMargin{}, Sizing: datadog.WidgetImageSizing{}, Columns: []string{"Columns_example"), Indexes: []string{"Indexes_example"), Logset: "Logset_example", MessageDisplay: datadog.WidgetMessageDisplay{}, ShowDateColumn: false, ShowMessageColumn: false, Sort: datadog.WidgetMonitorSummarySort{}, ColorPreference: datadog.WidgetColorPreference{}, Count: int64(123), DisplayFormat: datadog.WidgetServiceSummaryDisplayFormat{}, HideZeroCounts: false, ShowLastTriggered: false, Start: int64(123), SummaryType: datadog.WidgetSummaryType{}, BackgroundColor: "BackgroundColor_example", Content: "Content_example", ShowTick: false, TickEdge: datadog.WidgetTickEdge{}, TickPos: "TickPos_example", Autoscale: false, CustomUnit: "CustomUnit_example", ColorByGroups: []string{"ColorByGroups_example"), Xaxis: datadog.WidgetAxis{IncludeZero: false, Label: "Label_example", Max: "Max_example", Min: "Min_example", Scale: "Scale_example"}, ShowErrorBudget: false, SloId: "SloId_example", TimeWindows: []WidgetTimeWindows{datadog.WidgetTimeWindows{}), ViewMode: datadog.WidgetViewMode{}, ViewType: "ViewType_example", Filters: []string{"Filters_example"), Service: "Service_example", Env: "Env_example", ShowBreakdown: false, ShowDistribution: false, ShowErrors: false, ShowHits: false, ShowLatency: false, ShowResourceList: false, SizeFormat: datadog.WidgetSizeFormat{}, SpanName: "SpanName_example", Markers: []WidgetMarker{datadog.WidgetMarker{DisplayType: "DisplayType_example", Label: "Label_example", Time: "Time_example", Value: "Value_example"})}, Id: int64(123), Layout: datadog.WidgetLayout{Height: int64(123), Width: int64(123), X: int64(123), Y: int64(123)}}), Events: []WidgetEvent{datadog.WidgetEvent{Q: "Q_example", TagsExecution: "TagsExecution_example"}), Yaxis: , NoGroupHosts: false, NoMetricHosts: false, NodeType: datadog.WidgetNodeType{}, Notes: "Notes_example", Scope: []string{"Scope_example"), Style: datadog.HostMapWidgetDefinition_style{FillMax: "FillMax_example", FillMin: "FillMin_example", Palette: "Palette_example", PaletteFlip: false}, Url: "Url_example", Margin: datadog.WidgetMargin{}, Sizing: datadog.WidgetImageSizing{}, Columns: []string{"Columns_example"), Indexes: []string{"Indexes_example"), Logset: "Logset_example", MessageDisplay: datadog.WidgetMessageDisplay{}, ShowDateColumn: false, ShowMessageColumn: false, Sort: datadog.WidgetMonitorSummarySort{}, ColorPreference: datadog.WidgetColorPreference{}, Count: int64(123), DisplayFormat: datadog.WidgetServiceSummaryDisplayFormat{}, HideZeroCounts: false, ShowLastTriggered: false, Start: int64(123), SummaryType: datadog.WidgetSummaryType{}, BackgroundColor: "BackgroundColor_example", Content: "Content_example", ShowTick: false, TickEdge: datadog.WidgetTickEdge{}, TickPos: "TickPos_example", Autoscale: false, CustomUnit: "CustomUnit_example", ColorByGroups: []string{"ColorByGroups_example"), Xaxis: , ShowErrorBudget: false, SloId: "SloId_example", TimeWindows: []WidgetTimeWindows{datadog.WidgetTimeWindows{}), ViewMode: datadog.WidgetViewMode{}, ViewType: "ViewType_example", Filters: []string{"Filters_example"), Service: "Service_example", Env: "Env_example", ShowBreakdown: false, ShowDistribution: false, ShowErrors: false, ShowHits: false, ShowLatency: false, ShowResourceList: false, SizeFormat: datadog.WidgetSizeFormat{}, SpanName: "SpanName_example", Markers: []WidgetMarker{datadog.WidgetMarker{DisplayType: "DisplayType_example", Label: "Label_example", Time: "Time_example", Value: "Value_example"})}, Id: int64(123), Layout: datadog.WidgetLayout{Height: int64(123), Width: int64(123), X: int64(123), Y: int64(123)}})} // Dashboard | Create a dashboard request body. configuration := datadog.NewConfiguration() api_client := datadog.NewAPIClient(configuration) diff --git a/api/v1/datadog/docs/DistributionWidgetRequest.md b/api/v1/datadog/docs/DistributionWidgetRequest.md index fcc7867545a..f5388db1a62 100644 --- a/api/v1/datadog/docs/DistributionWidgetRequest.md +++ b/api/v1/datadog/docs/DistributionWidgetRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Widget query. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] **Style** | Pointer to [**WidgetStyle**](WidgetStyle.md) | | [optional] ## Methods @@ -207,6 +208,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *DistributionWidgetRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *DistributionWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *DistributionWidgetRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *DistributionWidgetRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + ### GetStyle `func (o *DistributionWidgetRequest) GetStyle() WidgetStyle` diff --git a/api/v1/datadog/docs/HeatMapWidgetRequest.md b/api/v1/datadog/docs/HeatMapWidgetRequest.md index 254d6a0dd0a..fc6a1b686de 100644 --- a/api/v1/datadog/docs/HeatMapWidgetRequest.md +++ b/api/v1/datadog/docs/HeatMapWidgetRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Widget query. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] **Style** | Pointer to [**WidgetStyle**](WidgetStyle.md) | | [optional] ## Methods @@ -207,6 +208,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *HeatMapWidgetRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *HeatMapWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *HeatMapWidgetRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *HeatMapWidgetRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + ### GetStyle `func (o *HeatMapWidgetRequest) GetStyle() WidgetStyle` diff --git a/api/v1/datadog/docs/HostMapRequest.md b/api/v1/datadog/docs/HostMapRequest.md index 6a07d80e0af..817ec3e7d49 100644 --- a/api/v1/datadog/docs/HostMapRequest.md +++ b/api/v1/datadog/docs/HostMapRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Query definition. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] ## Methods @@ -206,6 +207,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *HostMapRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *HostMapRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *HostMapRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *HostMapRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/ScatterPlotRequest.md b/api/v1/datadog/docs/ScatterPlotRequest.md index a7c2fe615b3..ea7ab8e90f0 100644 --- a/api/v1/datadog/docs/ScatterPlotRequest.md +++ b/api/v1/datadog/docs/ScatterPlotRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Query definition. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] ## Methods @@ -232,6 +233,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *ScatterPlotRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *ScatterPlotRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *ScatterPlotRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *ScatterPlotRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/TableWidgetRequest.md b/api/v1/datadog/docs/TableWidgetRequest.md index 697ea572396..ee4a9d7aea9 100644 --- a/api/v1/datadog/docs/TableWidgetRequest.md +++ b/api/v1/datadog/docs/TableWidgetRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Query definition. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] ## Methods @@ -336,6 +337,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *TableWidgetRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *TableWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *TableWidgetRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *TableWidgetRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/TimeseriesWidgetRequest.md b/api/v1/datadog/docs/TimeseriesWidgetRequest.md index f2b197707f0..3393c893c0f 100644 --- a/api/v1/datadog/docs/TimeseriesWidgetRequest.md +++ b/api/v1/datadog/docs/TimeseriesWidgetRequest.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Widget query. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] **Style** | Pointer to [**WidgetRequestStyle**](WidgetRequestStyle.md) | | [optional] ## Methods @@ -259,6 +260,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *TimeseriesWidgetRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *TimeseriesWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *TimeseriesWidgetRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *TimeseriesWidgetRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + ### GetStyle `func (o *TimeseriesWidgetRequest) GetStyle() WidgetRequestStyle` diff --git a/api/v1/datadog/docs/ToplistWidgetRequest.md b/api/v1/datadog/docs/ToplistWidgetRequest.md index a579848fed4..50a032b734e 100644 --- a/api/v1/datadog/docs/ToplistWidgetRequest.md +++ b/api/v1/datadog/docs/ToplistWidgetRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **ProcessQuery** | Pointer to [**ProcessQueryDefinition**](ProcessQueryDefinition.md) | | [optional] **Q** | Pointer to **string** | Widget query. | [optional] **RumQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**SecurityQuery** | Pointer to [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] **Style** | Pointer to [**WidgetRequestStyle**](WidgetRequestStyle.md) | | [optional] ## Methods @@ -233,6 +234,31 @@ SetRumQuery sets RumQuery field to given value. HasRumQuery returns a boolean if a field has been set. +### GetSecurityQuery + +`func (o *ToplistWidgetRequest) GetSecurityQuery() LogQueryDefinition` + +GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise. + +### GetSecurityQueryOk + +`func (o *ToplistWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool)` + +GetSecurityQueryOk returns a tuple with the SecurityQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityQuery + +`func (o *ToplistWidgetRequest) SetSecurityQuery(v LogQueryDefinition)` + +SetSecurityQuery sets SecurityQuery field to given value. + +### HasSecurityQuery + +`func (o *ToplistWidgetRequest) HasSecurityQuery() bool` + +HasSecurityQuery returns a boolean if a field has been set. + ### GetStyle `func (o *ToplistWidgetRequest) GetStyle() WidgetRequestStyle` diff --git a/api/v1/datadog/model_change_widget_request.go b/api/v1/datadog/model_change_widget_request.go index cec52ca2787..8fec8981256 100644 --- a/api/v1/datadog/model_change_widget_request.go +++ b/api/v1/datadog/model_change_widget_request.go @@ -26,8 +26,9 @@ type ChangeWidgetRequest struct { OrderDir *WidgetSort `json:"order_dir,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Query definition. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` // Whether to show the present value. ShowPresent *bool `json:"show_present,omitempty"` } @@ -433,6 +434,38 @@ func (o *ChangeWidgetRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *ChangeWidgetRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChangeWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *ChangeWidgetRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *ChangeWidgetRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + // GetShowPresent returns the ShowPresent field value if set, zero value otherwise. func (o *ChangeWidgetRequest) GetShowPresent() bool { if o == nil || o.ShowPresent == nil { @@ -503,6 +536,9 @@ func (o ChangeWidgetRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } if o.ShowPresent != nil { toSerialize["show_present"] = o.ShowPresent } diff --git a/api/v1/datadog/model_distribution_widget_request.go b/api/v1/datadog/model_distribution_widget_request.go index 84268b3cd22..cafb24ed57b 100644 --- a/api/v1/datadog/model_distribution_widget_request.go +++ b/api/v1/datadog/model_distribution_widget_request.go @@ -20,9 +20,10 @@ type DistributionWidgetRequest struct { NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Widget query. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` - Style *WidgetStyle `json:"style,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` + Style *WidgetStyle `json:"style,omitempty"` } // NewDistributionWidgetRequest instantiates a new DistributionWidgetRequest object @@ -266,6 +267,38 @@ func (o *DistributionWidgetRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *DistributionWidgetRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DistributionWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *DistributionWidgetRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *DistributionWidgetRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + // GetStyle returns the Style field value if set, zero value otherwise. func (o *DistributionWidgetRequest) GetStyle() WidgetStyle { if o == nil || o.Style == nil { @@ -321,6 +354,9 @@ func (o DistributionWidgetRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } if o.Style != nil { toSerialize["style"] = o.Style } diff --git a/api/v1/datadog/model_heat_map_widget_request.go b/api/v1/datadog/model_heat_map_widget_request.go index 3a535edcb5c..8b8804c2825 100644 --- a/api/v1/datadog/model_heat_map_widget_request.go +++ b/api/v1/datadog/model_heat_map_widget_request.go @@ -20,9 +20,10 @@ type HeatMapWidgetRequest struct { NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Widget query. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` - Style *WidgetStyle `json:"style,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` + Style *WidgetStyle `json:"style,omitempty"` } // NewHeatMapWidgetRequest instantiates a new HeatMapWidgetRequest object @@ -266,6 +267,38 @@ func (o *HeatMapWidgetRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *HeatMapWidgetRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HeatMapWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *HeatMapWidgetRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *HeatMapWidgetRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + // GetStyle returns the Style field value if set, zero value otherwise. func (o *HeatMapWidgetRequest) GetStyle() WidgetStyle { if o == nil || o.Style == nil { @@ -321,6 +354,9 @@ func (o HeatMapWidgetRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } if o.Style != nil { toSerialize["style"] = o.Style } diff --git a/api/v1/datadog/model_host_map_request.go b/api/v1/datadog/model_host_map_request.go index 4b017b4f56f..399ef2cdafe 100644 --- a/api/v1/datadog/model_host_map_request.go +++ b/api/v1/datadog/model_host_map_request.go @@ -20,8 +20,9 @@ type HostMapRequest struct { NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Query definition. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` } // NewHostMapRequest instantiates a new HostMapRequest object @@ -265,6 +266,38 @@ func (o *HostMapRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *HostMapRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HostMapRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *HostMapRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *HostMapRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + func (o HostMapRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.ApmQuery != nil { @@ -288,6 +321,9 @@ func (o HostMapRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } return json.Marshal(toSerialize) } diff --git a/api/v1/datadog/model_scatter_plot_request.go b/api/v1/datadog/model_scatter_plot_request.go index bc779e03bbf..281c00dbe91 100644 --- a/api/v1/datadog/model_scatter_plot_request.go +++ b/api/v1/datadog/model_scatter_plot_request.go @@ -21,8 +21,9 @@ type ScatterPlotRequest struct { NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Query definition. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` } // NewScatterPlotRequest instantiates a new ScatterPlotRequest object @@ -298,6 +299,38 @@ func (o *ScatterPlotRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *ScatterPlotRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScatterPlotRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *ScatterPlotRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *ScatterPlotRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + func (o ScatterPlotRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Aggregator != nil { @@ -324,6 +357,9 @@ func (o ScatterPlotRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } return json.Marshal(toSerialize) } diff --git a/api/v1/datadog/model_table_widget_request.go b/api/v1/datadog/model_table_widget_request.go index 2442f8dc4ce..4e02bdee122 100644 --- a/api/v1/datadog/model_table_widget_request.go +++ b/api/v1/datadog/model_table_widget_request.go @@ -28,8 +28,9 @@ type TableWidgetRequest struct { Order *WidgetSort `json:"order,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Query definition. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` } // NewTableWidgetRequest instantiates a new TableWidgetRequest object @@ -433,6 +434,38 @@ func (o *TableWidgetRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *TableWidgetRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TableWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *TableWidgetRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *TableWidgetRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + func (o TableWidgetRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Aggregator != nil { @@ -471,6 +504,9 @@ func (o TableWidgetRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } return json.Marshal(toSerialize) } diff --git a/api/v1/datadog/model_timeseries_widget_request.go b/api/v1/datadog/model_timeseries_widget_request.go index 4ea310d7b46..8f3753937d8 100644 --- a/api/v1/datadog/model_timeseries_widget_request.go +++ b/api/v1/datadog/model_timeseries_widget_request.go @@ -23,9 +23,10 @@ type TimeseriesWidgetRequest struct { NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Widget query. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` - Style *WidgetRequestStyle `json:"style,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` + Style *WidgetRequestStyle `json:"style,omitempty"` } // NewTimeseriesWidgetRequest instantiates a new TimeseriesWidgetRequest object @@ -333,6 +334,38 @@ func (o *TimeseriesWidgetRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *TimeseriesWidgetRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TimeseriesWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *TimeseriesWidgetRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *TimeseriesWidgetRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + // GetStyle returns the Style field value if set, zero value otherwise. func (o *TimeseriesWidgetRequest) GetStyle() WidgetRequestStyle { if o == nil || o.Style == nil { @@ -394,6 +427,9 @@ func (o TimeseriesWidgetRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } if o.Style != nil { toSerialize["style"] = o.Style } diff --git a/api/v1/datadog/model_toplist_widget_request.go b/api/v1/datadog/model_toplist_widget_request.go index 6c499b372f2..ed8ed8350d9 100644 --- a/api/v1/datadog/model_toplist_widget_request.go +++ b/api/v1/datadog/model_toplist_widget_request.go @@ -22,9 +22,10 @@ type ToplistWidgetRequest struct { NetworkQuery *LogQueryDefinition `json:"network_query,omitempty"` ProcessQuery *ProcessQueryDefinition `json:"process_query,omitempty"` // Widget query. - Q *string `json:"q,omitempty"` - RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` - Style *WidgetRequestStyle `json:"style,omitempty"` + Q *string `json:"q,omitempty"` + RumQuery *LogQueryDefinition `json:"rum_query,omitempty"` + SecurityQuery *LogQueryDefinition `json:"security_query,omitempty"` + Style *WidgetRequestStyle `json:"style,omitempty"` } // NewToplistWidgetRequest instantiates a new ToplistWidgetRequest object @@ -300,6 +301,38 @@ func (o *ToplistWidgetRequest) SetRumQuery(v LogQueryDefinition) { o.RumQuery = &v } +// GetSecurityQuery returns the SecurityQuery field value if set, zero value otherwise. +func (o *ToplistWidgetRequest) GetSecurityQuery() LogQueryDefinition { + if o == nil || o.SecurityQuery == nil { + var ret LogQueryDefinition + return ret + } + return *o.SecurityQuery +} + +// GetSecurityQueryOk returns a tuple with the SecurityQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ToplistWidgetRequest) GetSecurityQueryOk() (*LogQueryDefinition, bool) { + if o == nil || o.SecurityQuery == nil { + return nil, false + } + return o.SecurityQuery, true +} + +// HasSecurityQuery returns a boolean if a field has been set. +func (o *ToplistWidgetRequest) HasSecurityQuery() bool { + if o != nil && o.SecurityQuery != nil { + return true + } + + return false +} + +// SetSecurityQuery gets a reference to the given LogQueryDefinition and assigns it to the SecurityQuery field. +func (o *ToplistWidgetRequest) SetSecurityQuery(v LogQueryDefinition) { + o.SecurityQuery = &v +} + // GetStyle returns the Style field value if set, zero value otherwise. func (o *ToplistWidgetRequest) GetStyle() WidgetRequestStyle { if o == nil || o.Style == nil { @@ -358,6 +391,9 @@ func (o ToplistWidgetRequest) MarshalJSON() ([]byte, error) { if o.RumQuery != nil { toSerialize["rum_query"] = o.RumQuery } + if o.SecurityQuery != nil { + toSerialize["security_query"] = o.SecurityQuery + } if o.Style != nil { toSerialize["style"] = o.Style }