From f1975bdd06671040258b716833d03115aae91a3c Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 17:37:49 +0000 Subject: [PATCH] Adds database queries enum (#2386) 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 | 2 ++ ...or_formula_and_function_events_data_source.go | 16 +++++++++------- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index a38f1a01df6..95785323794 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-23 10:58:55.431477", - "spec_repo_commit": "86101285" + "regenerated": "2024-02-23 12:49:42.710783", + "spec_repo_commit": "30d313fd" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-23 10:58:55.450730", - "spec_repo_commit": "86101285" + "regenerated": "2024-02-23 12:49:42.726235", + "spec_repo_commit": "30d313fd" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index c66253cd485..cc0f330168a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -6764,6 +6764,7 @@ components: - events - logs - spans + - database_queries example: rum type: string x-enum-varnames: @@ -6774,6 +6775,7 @@ components: - EVENTS - LOGS - SPANS + - DATABASE_QUERIES MonitorFormulaAndFunctionQueryDefinition: description: A formula and function query. oneOf: diff --git a/api/datadogV1/model_monitor_formula_and_function_events_data_source.go b/api/datadogV1/model_monitor_formula_and_function_events_data_source.go index 046694a04c8..2f9ba076846 100644 --- a/api/datadogV1/model_monitor_formula_and_function_events_data_source.go +++ b/api/datadogV1/model_monitor_formula_and_function_events_data_source.go @@ -15,13 +15,14 @@ type MonitorFormulaAndFunctionEventsDataSource string // List of MonitorFormulaAndFunctionEventsDataSource. const ( - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_RUM MonitorFormulaAndFunctionEventsDataSource = "rum" - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_CI_PIPELINES MonitorFormulaAndFunctionEventsDataSource = "ci_pipelines" - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_CI_TESTS MonitorFormulaAndFunctionEventsDataSource = "ci_tests" - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_AUDIT MonitorFormulaAndFunctionEventsDataSource = "audit" - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_EVENTS MonitorFormulaAndFunctionEventsDataSource = "events" - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_LOGS MonitorFormulaAndFunctionEventsDataSource = "logs" - MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_SPANS MonitorFormulaAndFunctionEventsDataSource = "spans" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_RUM MonitorFormulaAndFunctionEventsDataSource = "rum" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_CI_PIPELINES MonitorFormulaAndFunctionEventsDataSource = "ci_pipelines" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_CI_TESTS MonitorFormulaAndFunctionEventsDataSource = "ci_tests" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_AUDIT MonitorFormulaAndFunctionEventsDataSource = "audit" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_EVENTS MonitorFormulaAndFunctionEventsDataSource = "events" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_LOGS MonitorFormulaAndFunctionEventsDataSource = "logs" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_SPANS MonitorFormulaAndFunctionEventsDataSource = "spans" + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_DATABASE_QUERIES MonitorFormulaAndFunctionEventsDataSource = "database_queries" ) var allowedMonitorFormulaAndFunctionEventsDataSourceEnumValues = []MonitorFormulaAndFunctionEventsDataSource{ @@ -32,6 +33,7 @@ var allowedMonitorFormulaAndFunctionEventsDataSourceEnumValues = []MonitorFormul MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_EVENTS, MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_LOGS, MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_SPANS, + MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_DATABASE_QUERIES, } // GetAllowedValues reeturns the list of possible values.