Skip to content

Commit

Permalink
Adds database queries enum (#2386)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Feb 23, 2024
1 parent e9cebce commit f1975bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6764,6 +6764,7 @@ components:
- events
- logs
- spans
- database_queries
example: rum
type: string
x-enum-varnames:
Expand All @@ -6774,6 +6775,7 @@ components:
- EVENTS
- LOGS
- SPANS
- DATABASE_QUERIES
MonitorFormulaAndFunctionQueryDefinition:
description: A formula and function query.
oneOf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -32,6 +33,7 @@ var allowedMonitorFormulaAndFunctionEventsDataSourceEnumValues = []MonitorFormul
MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_EVENTS,
MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_LOGS,
MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_SPANS,
MONITORFORMULAANDFUNCTIONEVENTSDATASOURCE_DATABASE_QUERIES,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down

0 comments on commit f1975bd

Please sign in to comment.