diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 64f30b323064..6ae3aae26d9b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -42913,6 +42913,11 @@ components: **Supported pipeline types:** logs, metrics' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Datadog Agent source. + example: DATADOG_AGENT_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -91728,111 +91733,92 @@ paths: - logs_read_data /api/v2/metrics: get: - description: 'Returns all metrics for your organization that match the given - filter parameters. - - Optionally, paginate by using the `page[cursor]` and/or `page[size]` query - parameters. - - To fetch the first page, pass in a query parameter with either a valid `page[size]` - or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the - `next_cursor` value from the response as the new `page[cursor]` value. - - Once the `meta.pagination.next_cursor` value is null, all pages have been - retrieved.' + description: Get a list of actively reporting metrics for your organization. + Pagination is optional using the `page[cursor]` and `page[size]` query parameters. operationId: ListTagConfigurations parameters: - - description: Filter custom metrics that have configured tags. + - description: Only return custom metrics that have been configured with Metrics + Without Limits. example: true in: query name: filter[configured] required: false schema: type: boolean - - description: Filter tag configurations by configured tags. - example: app + - description: Only return metrics that have the given tag key(s) in their Metrics + Without Limits configuration (included or excluded). + example: app,env in: query name: filter[tags_configured] required: false schema: description: Tag keys to filter by. type: string - - description: Filter metrics by metric type. + - description: Only return metrics of the given metric type. in: query name: filter[metric_type] required: false schema: $ref: '#/components/schemas/MetricTagConfigurationMetricTypeCategory' - - description: 'Filter distributions with additional percentile - - aggregations enabled or disabled.' + - description: Only return distribution metrics that have percentile aggregations + enabled (true) or disabled (false). example: true in: query name: filter[include_percentiles] required: false schema: type: boolean - - description: '(Preview) Filter custom metrics that have or have not been queried - in the specified window[seconds]. - - If no window is provided or the window is less than 2 hours, a default of - 2 hours will be applied.' + - description: Only return metrics that have been queried (true) or not queried + (false) in the look back window. Set the window with `filter[queried][window][seconds]`; + if omitted, a default window is used. example: true in: query name: filter[queried] required: false schema: type: boolean - - description: 'The number of seconds of look back (from now) used by the `filter[queried]` - filter logic. - - Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`. - - If `filter[queried]=false`, this parameter is ignored and default queried-window - behavior applies. - - If `filter[queried]` is not provided, sending this parameter returns a 400. - - For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000`.' + - description: Only return metrics that have been queried or not queried in + the specified window. Dependent on being sent with `filter[queried]`. example: 15552000 in: query name: filter[queried][window][seconds] required: false schema: + default: 2592000 format: int64 maximum: 15552000 - minimum: 0 + minimum: 1 type: integer - - description: 'Filter metrics that have been submitted with the given tags. - Supports boolean and wildcard expressions. - - Can only be combined with the filter[queried] filter.' - example: env IN (staging,test) AND service:web + - description: Only return metrics that were submitted with tags matching this + expression. You can use AND, OR, IN, and wildcards (for example, service:web*). + example: env IN (staging,test) AND service:web* in: query name: filter[tags] required: false schema: type: string - - description: (Preview) Filter metrics that are used in dashboards, monitors, - notebooks, SLOs. + - description: Only return metrics that are used in at least one dashboard, + monitor, notebook, or SLO. example: true in: query name: filter[related_assets] required: false schema: type: boolean - - description: 'The number of seconds of look back (from now) to apply to a - filter[tag] query. - - Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).' + - description: Only return metrics that have been actively reporting in the + specified window. example: 3600 in: query name: window[seconds] required: false schema: + default: 3600 format: int64 + maximum: 2592000 + minimum: 1 type: integer - - description: Maximum number of results returned. + - description: Maximum number of results per page. Use with `page[cursor]` for + pagination. in: query name: page[size] required: false @@ -91842,12 +91828,9 @@ paths: maximum: 10000 minimum: 1 type: integer - - description: 'String to query the next page of results. - - This key is provided with each valid response from the API in `meta.pagination.next_cursor`. - - Once the `meta.pagination.next_cursor` key is null, all pages have been - retrieved.' + - description: Cursor for pagination. Use `page[size]` to opt-in to pagination + and get the first page; for subsequent pages, use the value from `meta.pagination.next_cursor` + in the response. Pagination is complete when `next_cursor` is null. in: query name: page[cursor] required: false diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index ead1e1ecaf7b..639614c435be 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -667,23 +667,20 @@ def list_tag_configurations(opts = {}) # Get a list of metrics. # - # Returns all metrics for your organization that match the given filter parameters. - # Optionally, paginate by using the `page[cursor]` and/or `page[size]` query parameters. - # To fetch the first page, pass in a query parameter with either a valid `page[size]` or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the `next_cursor` value from the response as the new `page[cursor]` value. - # Once the `meta.pagination.next_cursor` value is null, all pages have been retrieved. + # Get a list of actively reporting metrics for your organization. Pagination is optional using the `page[cursor]` and `page[size]` query parameters. # # @param opts [Hash] the optional parameters - # @option opts [Boolean] :filter_configured Filter custom metrics that have configured tags. - # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. - # @option opts [MetricTagConfigurationMetricTypeCategory] :filter_metric_type Filter metrics by metric type. - # @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled. - # @option opts [Boolean] :filter_queried (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied. - # @option opts [Integer] :filter_queried_window_seconds The number of seconds of look back (from now) used by the `filter[queried]` filter logic. Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`. If `filter[queried]=false`, this parameter is ignored and default queried-window behavior applies. If `filter[queried]` is not provided, sending this parameter returns a 400. For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000`. - # @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter. - # @option opts [Boolean] :filter_related_assets (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs. - # @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query. Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days). - # @option opts [Integer] :page_size Maximum number of results returned. - # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.pagination.next_cursor`. Once the `meta.pagination.next_cursor` key is null, all pages have been retrieved. + # @option opts [Boolean] :filter_configured Only return custom metrics that have been configured with Metrics Without Limits. + # @option opts [String] :filter_tags_configured Only return metrics that have the given tag key(s) in their Metrics Without Limits configuration (included or excluded). + # @option opts [MetricTagConfigurationMetricTypeCategory] :filter_metric_type Only return metrics of the given metric type. + # @option opts [Boolean] :filter_include_percentiles Only return distribution metrics that have percentile aggregations enabled (true) or disabled (false). + # @option opts [Boolean] :filter_queried Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with `filter[queried][window][seconds]`; if omitted, a default window is used. + # @option opts [Integer] :filter_queried_window_seconds Only return metrics that have been queried or not queried in the specified window. Dependent on being sent with `filter[queried]`. + # @option opts [String] :filter_tags Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards (for example, service:web*). + # @option opts [Boolean] :filter_related_assets Only return metrics that are used in at least one dashboard, monitor, notebook, or SLO. + # @option opts [Integer] :window_seconds Only return metrics that have been actively reporting in the specified window. + # @option opts [Integer] :page_size Maximum number of results per page. Use with `page[cursor]` for pagination. + # @option opts [String] :page_cursor Cursor for pagination. Use `page[size]` to opt-in to pagination and get the first page; for subsequent pages, use the value from `meta.pagination.next_cursor` in the response. Pagination is complete when `next_cursor` is null. # @return [Array<(MetricsAndMetricTagConfigurationsResponse, Integer, Hash)>] MetricsAndMetricTagConfigurationsResponse data, response status code and response headers def list_tag_configurations_with_http_info(opts = {}) @@ -697,8 +694,14 @@ def list_tag_configurations_with_http_info(opts = {}) if @api_client.config.client_side_validation && !opts[:'filter_queried_window_seconds'].nil? && opts[:'filter_queried_window_seconds'] > 15552000 fail ArgumentError, 'invalid value for "opts[:"filter_queried_window_seconds"]" when calling MetricsAPI.list_tag_configurations, must be smaller than or equal to 15552000.' end - if @api_client.config.client_side_validation && !opts[:'filter_queried_window_seconds'].nil? && opts[:'filter_queried_window_seconds'] < 0 - fail ArgumentError, 'invalid value for "opts[:"filter_queried_window_seconds"]" when calling MetricsAPI.list_tag_configurations, must be greater than or equal to 0.' + if @api_client.config.client_side_validation && !opts[:'filter_queried_window_seconds'].nil? && opts[:'filter_queried_window_seconds'] < 1 + fail ArgumentError, 'invalid value for "opts[:"filter_queried_window_seconds"]" when calling MetricsAPI.list_tag_configurations, must be greater than or equal to 1.' + end + if @api_client.config.client_side_validation && !opts[:'window_seconds'].nil? && opts[:'window_seconds'] > 2592000 + fail ArgumentError, 'invalid value for "opts[:"window_seconds"]" when calling MetricsAPI.list_tag_configurations, must be smaller than or equal to 2592000.' + end + if @api_client.config.client_side_validation && !opts[:'window_seconds'].nil? && opts[:'window_seconds'] < 1 + fail ArgumentError, 'invalid value for "opts[:"window_seconds"]" when calling MetricsAPI.list_tag_configurations, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MetricsAPI.list_tag_configurations, must be smaller than or equal to 10000.' diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb b/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb index 373c2592e31e..5dab475c2f24 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb @@ -23,6 +23,9 @@ module DatadogAPIClient::V2 class ObservabilityPipelineDatadogAgentSource include BaseGenericModel + # Name of the environment variable or secret that holds the listen address for the Datadog Agent source. + attr_accessor :address_key + # The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components). attr_reader :id @@ -38,6 +41,7 @@ class ObservabilityPipelineDatadogAgentSource # @!visibility private def self.attribute_map { + :'address_key' => :'address_key', :'id' => :'id', :'tls' => :'tls', :'type' => :'type' @@ -48,6 +52,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'address_key' => :'String', :'id' => :'String', :'tls' => :'ObservabilityPipelineTls', :'type' => :'ObservabilityPipelineDatadogAgentSourceType' @@ -72,6 +77,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'address_key') + self.address_key = attributes[:'address_key'] + end + if attributes.key?(:'id') self.id = attributes[:'id'] end @@ -140,6 +149,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + address_key == o.address_key && id == o.id && tls == o.tls && type == o.type && @@ -150,7 +160,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [id, tls, type, additional_properties].hash + [address_key, id, tls, type, additional_properties].hash end end end