diff --git a/.apigentools-info b/.apigentools-info index 2cc86dc7097f..65d9d633211c 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-22 16:45:28.013782", - "spec_repo_commit": "733f0b89" + "regenerated": "2024-03-22 19:28:35.939950", + "spec_repo_commit": "b8f385dc" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-22 16:45:28.034745", - "spec_repo_commit": "733f0b89" + "regenerated": "2024-03-22 19:28:35.957593", + "spec_repo_commit": "b8f385dc" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 3cb57f34d07c..4d5f1a44af7b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -16819,270 +16819,6 @@ components: format: double type: number type: object - UsageAttributionBody: - description: Usage Summary by tag for a given organization. - properties: - month: - description: 'Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM].' - format: date-time - type: string - org_name: - description: The name of the organization. - type: string - public_id: - description: The organization public ID. - type: string - tag_config_source: - description: The source of the usage attribution tag configuration and the - selected tags in the format `::://////`. - type: string - tags: - $ref: '#/components/schemas/UsageAttributionTagNames' - updated_at: - description: Shows the the most recent hour in the current month for all - organizations for which all usages were calculated. - type: string - values: - $ref: '#/components/schemas/UsageAttributionValues' - type: object - UsageAttributionLimit: - default: 5000 - description: Maximum number of records to be returned. - format: int64 - type: integer - UsageAttributionMetadata: - description: The object containing document metadata. - properties: - aggregates: - $ref: '#/components/schemas/UsageAttributionAggregates' - pagination: - $ref: '#/components/schemas/UsageAttributionPagination' - type: object - UsageAttributionOffset: - default: 0 - description: Number of records to skip before beginning to return. - format: int64 - type: integer - UsageAttributionPagination: - description: The metadata for the current pagination. - properties: - limit: - description: Maximum amount of records to be returned. - format: int64 - type: integer - offset: - description: Records to be skipped before beginning to return. - format: int64 - type: integer - sort_direction: - description: Direction to sort by. - type: string - sort_name: - description: Field to sort by. - type: string - total_number_of_records: - description: Total number of records. - format: int64 - type: integer - type: object - UsageAttributionResponse: - description: Response containing the Usage Summary by tag(s). - properties: - metadata: - $ref: '#/components/schemas/UsageAttributionMetadata' - usage: - description: Get usage summary by tag(s). - items: - $ref: '#/components/schemas/UsageAttributionBody' - type: array - type: object - UsageAttributionSort: - default: custom_timeseries_usage - description: The field to sort by. - enum: - - api_percentage - - snmp_usage - - apm_host_usage - - api_usage - - appsec_usage - - appsec_percentage - - container_usage - - custom_timeseries_percentage - - container_percentage - - apm_host_percentage - - npm_host_percentage - - browser_percentage - - browser_usage - - infra_host_percentage - - snmp_percentage - - npm_host_usage - - infra_host_usage - - custom_timeseries_usage - - lambda_functions_usage - - lambda_functions_percentage - - lambda_invocations_usage - - lambda_invocations_percentage - - estimated_indexed_logs_usage - - estimated_indexed_logs_percentage - - estimated_ingested_logs_usage - - estimated_ingested_logs_percentage - - estimated_indexed_spans_usage - - estimated_indexed_spans_percentage - - estimated_ingested_spans_usage - - estimated_ingested_spans_percentage - - apm_fargate_usage - - apm_fargate_percentage - - appsec_fargate_usage - - appsec_fargate_percentage - - estimated_rum_usage_attribution_usage - - estimated_rum_usage_attribution_percentage - - asm_serverless_traced_invocations_usage - - asm_serverless_traced_invocations_percentage - type: string - x-enum-varnames: - - API_PERCENTAGE - - SNMP_USAGE - - APM_HOST_USAGE - - API_USAGE - - APPSEC_USAGE - - APPSEC_PERCENTAGE - - CONTAINER_USAGE - - CUSTOM_TIMESERIES_PERCENTAGE - - CONTAINER_PERCENTAGE - - APM_HOST_PERCENTAGE - - NPM_HOST_PERCENTAGE - - BROWSER_PERCENTAGE - - BROWSER_USAGE - - INFRA_HOST_PERCENTAGE - - SNMP_PERCENTAGE - - NPM_HOST_USAGE - - INFRA_HOST_USAGE - - CUSTOM_TIMESERIES_USAGE - - LAMBDA_FUNCTIONS_USAGE - - LAMBDA_FUNCTIONS_PERCENTAGE - - LAMBDA_INVOCATIONS_USAGE - - LAMBDA_INVOCATIONS_PERCENTAGE - - ESTIMATED_INDEXED_LOGS_USAGE - - ESTIMATED_INDEXED_LOGS_PERCENTAGE - - ESTIMATED_INGESTED_LOGS_USAGE - - ESTIMATED_INGESTED_LOGS_PERCENTAGE - - ESTIMATED_INDEXED_SPANS_USAGE - - ESTIMATED_INDEXED_SPANS_PERCENTAGE - - ESTIMATED_INGESTED_SPANS_USAGE - - ESTIMATED_INGESTED_SPANS_PERCENTAGE - - APM_FARGATE_USAGE - - APM_FARGATE_PERCENTAGE - - APPSEC_FARGATE_USAGE - - APPSEC_FARGATE_PERCENTAGE - - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE - - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE - - ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE - - ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE - UsageAttributionSupportedMetrics: - description: Supported fields for usage attribution requests (valid requests - contain one or more metrics, or `*` for all). - enum: - - custom_timeseries_usage - - container_usage - - snmp_percentage - - apm_host_usage - - browser_usage - - npm_host_percentage - - infra_host_usage - - custom_timeseries_percentage - - container_percentage - - api_usage - - apm_host_percentage - - infra_host_percentage - - snmp_usage - - browser_percentage - - api_percentage - - npm_host_usage - - lambda_functions_usage - - lambda_functions_percentage - - lambda_invocations_usage - - lambda_invocations_percentage - - fargate_usage - - fargate_percentage - - profiled_host_usage - - profiled_host_percentage - - profiled_container_usage - - profiled_container_percentage - - dbm_hosts_usage - - dbm_hosts_percentage - - dbm_queries_usage - - dbm_queries_percentage - - estimated_indexed_logs_usage - - estimated_indexed_logs_percentage - - estimated_ingested_logs_usage - - estimated_ingested_logs_percentage - - appsec_usage - - appsec_percentage - - estimated_indexed_spans_usage - - estimated_indexed_spans_percentage - - estimated_ingested_spans_usage - - estimated_ingested_spans_percentage - - apm_fargate_usage - - apm_fargate_percentage - - appsec_fargate_usage - - appsec_fargate_percentage - - estimated_rum_usage_attribution_usage - - estimated_rum_usage_attribution_percentage - - asm_serverless_traced_invocations_usage - - asm_serverless_traced_invocations_percentage - - '*' - type: string - x-enum-varnames: - - CUSTOM_TIMESERIES_USAGE - - CONTAINER_USAGE - - SNMP_PERCENTAGE - - APM_HOST_USAGE - - BROWSER_USAGE - - NPM_HOST_PERCENTAGE - - INFRA_HOST_USAGE - - CUSTOM_TIMESERIES_PERCENTAGE - - CONTAINER_PERCENTAGE - - API_USAGE - - APM_HOST_PERCENTAGE - - INFRA_HOST_PERCENTAGE - - SNMP_USAGE - - BROWSER_PERCENTAGE - - API_PERCENTAGE - - NPM_HOST_USAGE - - LAMBDA_FUNCTIONS_USAGE - - LAMBDA_FUNCTIONS_PERCENTAGE - - LAMBDA_INVOCATIONS_USAGE - - LAMBDA_INVOCATIONS_PERCENTAGE - - FARGATE_USAGE - - FARGATE_PERCENTAGE - - PROFILED_HOST_USAGE - - PROFILED_HOST_PERCENTAGE - - PROFILED_CONTAINER_USAGE - - PROFILED_CONTAINER_PERCENTAGE - - DBM_HOSTS_USAGE - - DBM_HOSTS_PERCENTAGE - - DBM_QUERIES_USAGE - - DBM_QUERIES_PERCENTAGE - - ESTIMATED_INDEXED_LOGS_USAGE - - ESTIMATED_INDEXED_LOGS_PERCENTAGE - - ESTIMATED_INGESTED_LOGS_USAGE - - ESTIMATED_INGESTED_LOGS_PERCENTAGE - - APPSEC_USAGE - - APPSEC_PERCENTAGE - - ESTIMATED_INDEXED_SPANS_USAGE - - ESTIMATED_INDEXED_SPANS_PERCENTAGE - - ESTIMATED_INGESTED_SPANS_USAGE - - ESTIMATED_INGESTED_SPANS_PERCENTAGE - - APM_FARGATE_USAGE - - APM_FARGATE_PERCENTAGE - - APPSEC_FARGATE_USAGE - - APPSEC_FARGATE_PERCENTAGE - - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE - - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE - - ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE - - ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE - - ALL UsageAttributionTagNames: additionalProperties: description: 'A list of values that are associated with each tag key. @@ -17112,225 +16848,6 @@ components: In this scenario the API returns the total usage, not broken down by tags.' nullable: true type: object - UsageAttributionValues: - description: Fields in Usage Summary by tag(s). - properties: - api_percentage: - description: The percentage of synthetic API test usage by tag(s). - format: double - type: number - api_usage: - description: The synthetic API test usage by tag(s). - format: double - type: number - apm_fargate_percentage: - description: The percentage of APM ECS Fargate task usage by tag(s). - format: double - type: number - apm_fargate_usage: - description: The APM ECS Fargate task usage by tag(s). - format: double - type: number - apm_host_percentage: - description: The percentage of APM host usage by tag(s). - format: double - type: number - apm_host_usage: - description: The APM host usage by tag(s). - format: double - type: number - appsec_fargate_percentage: - description: The percentage of Application Security Monitoring ECS Fargate - task usage by tag(s). - format: double - type: number - appsec_fargate_usage: - description: The Application Security Monitoring ECS Fargate task usage - by tag(s). - format: double - type: number - appsec_percentage: - description: The percentage of Application Security Monitoring host usage - by tag(s). - format: double - type: number - appsec_usage: - description: The Application Security Monitoring host usage by tag(s). - format: double - type: number - browser_percentage: - description: The percentage of synthetic browser test usage by tag(s). - format: double - type: number - browser_usage: - description: The synthetic browser test usage by tag(s). - format: double - type: number - container_percentage: - description: The percentage of container usage by tag(s). - format: double - type: number - container_usage: - description: The container usage by tag(s). - format: double - type: number - cspm_container_percentage: - description: The percentage of Cloud Security Management Pro container usage - by tag(s) - format: double - type: number - cspm_container_usage: - description: The Cloud Security Management Pro container usage by tag(s) - format: double - type: number - cspm_host_percentage: - description: The percentage of Cloud Security Management Pro host usage - by tag(s) - format: double - type: number - cspm_host_usage: - description: The Cloud Security Management Pro host usage by tag(s) - format: double - type: number - custom_timeseries_percentage: - description: The percentage of custom metrics usage by tag(s). - format: double - type: number - custom_timeseries_usage: - description: The custom metrics usage by tag(s). - format: double - type: number - cws_container_percentage: - description: The percentage of Cloud Workload Security container usage by - tag(s) - format: double - type: number - cws_container_usage: - description: The Cloud Workload Security container usage by tag(s) - format: double - type: number - cws_host_percentage: - description: The percentage of Cloud Workload Security host usage by tag(s) - format: double - type: number - cws_host_usage: - description: The Cloud Workload Security host usage by tag(s) - format: double - type: number - dbm_hosts_percentage: - description: The percentage of Database Monitoring host usage by tag(s). - format: double - type: number - dbm_hosts_usage: - description: The Database Monitoring host usage by tag(s). - format: double - type: number - dbm_queries_percentage: - description: The percentage of Database Monitoring normalized queries usage - by tag(s). - format: double - type: number - dbm_queries_usage: - description: The Database Monitoring normalized queries usage by tag(s). - format: double - type: number - estimated_indexed_logs_percentage: - description: The percentage of estimated live indexed logs usage by tag(s). - format: double - type: number - estimated_indexed_logs_usage: - description: The estimated live indexed logs usage by tag(s). - format: double - type: number - estimated_indexed_spans_percentage: - description: The percentage of estimated indexed spans usage by tag(s). - format: double - type: number - estimated_indexed_spans_usage: - description: The estimated indexed spans usage by tag(s). - format: double - type: number - estimated_ingested_logs_percentage: - description: The percentage of estimated live ingested logs usage by tag(s). - format: double - type: number - estimated_ingested_logs_usage: - description: The estimated live ingested logs usage by tag(s). - format: double - type: number - estimated_ingested_spans_percentage: - description: The percentage of estimated ingested spans usage by tag(s). - format: double - type: number - estimated_ingested_spans_usage: - description: The estimated ingested spans usage by tag(s). - format: double - type: number - estimated_rum_sessions_percentage: - description: The percentage of estimated rum sessions usage by tag(s). - format: double - type: number - estimated_rum_sessions_usage: - description: The estimated rum sessions usage by tag(s). - format: double - type: number - infra_host_percentage: - description: The percentage of infrastructure host usage by tag(s). - format: double - type: number - infra_host_usage: - description: The infrastructure host usage by tag(s). - format: double - type: number - lambda_functions_percentage: - description: The percentage of Lambda function usage by tag(s). - format: double - type: number - lambda_functions_usage: - description: The Lambda function usage by tag(s). - format: double - type: number - lambda_invocations_percentage: - description: The percentage of Lambda invocation usage by tag(s). - format: double - type: number - lambda_invocations_usage: - description: The Lambda invocation usage by tag(s). - format: double - type: number - npm_host_percentage: - description: The percentage of network host usage by tag(s). - format: double - type: number - npm_host_usage: - description: The network host usage by tag(s). - format: double - type: number - profiled_container_percentage: - description: The percentage of profiled containers usage by tag(s). - format: double - type: number - profiled_container_usage: - description: The profiled container usage by tag(s). - format: double - type: number - profiled_hosts_percentage: - description: The percentage of profiled hosts usage by tag(s). - format: double - type: number - profiled_hosts_usage: - description: The profiled host usage by tag(s). - format: double - type: number - snmp_percentage: - description: The percentage of network device usage by tag(s). - format: double - type: number - snmp_usage: - description: The network device usage by tag(s). - format: double - type: number - type: object UsageAuditLogsHour: description: Audit logs usage for a given organization for a given hour. properties: @@ -31220,100 +30737,6 @@ paths: summary: Get hourly usage for analyzed logs tags: - Usage Metering - /api/v1/usage/attribution: - get: - deprecated: true - description: 'Get usage attribution. - - **Note:** This endpoint will be fully deprecated on December 1, 2022. - - Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) - for the associated migration guide.' - operationId: GetUsageAttribution - parameters: - - description: 'Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` - for usage beginning in this month. - - Maximum of 15 months ago.' - in: query - name: start_month - required: true - schema: - format: date-time - type: string - - description: Comma-separated list of usage types to return, or `*` for all - usage types. - in: query - name: fields - required: true - schema: - $ref: '#/components/schemas/UsageAttributionSupportedMetrics' - - description: 'Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` - for usage ending this month.' - in: query - name: end_month - required: false - schema: - format: date-time - type: string - - description: 'The direction to sort by: `[desc, asc]`.' - in: query - name: sort_direction - required: false - schema: - $ref: '#/components/schemas/UsageSortDirection' - - description: The field to sort by. - in: query - name: sort_name - required: false - schema: - $ref: '#/components/schemas/UsageAttributionSort' - - description: Include child org usage in the response. Defaults to false. - in: query - name: include_descendants - required: false - schema: - default: false - type: boolean - - description: Number of records to skip before beginning to return. - in: query - name: offset - required: false - schema: - $ref: '#/components/schemas/UsageAttributionOffset' - - description: Maximum number of records to be returned. - in: query - name: limit - required: false - schema: - $ref: '#/components/schemas/UsageAttributionLimit' - responses: - '200': - content: - application/json;datetime-format=rfc3339: - schema: - $ref: '#/components/schemas/UsageAttributionResponse' - description: OK - '403': - content: - application/json;datetime-format=rfc3339: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: Forbidden - User is not authorized - '429': - content: - application/json;datetime-format=rfc3339: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: Too many requests - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - usage_read - summary: Get usage attribution - tags: - - Usage Metering /api/v1/usage/audit_logs: get: deprecated: true diff --git a/examples/v1/usage-metering/GetUsageAttribution.rb b/examples/v1/usage-metering/GetUsageAttribution.rb deleted file mode 100644 index 6fccc18573c0..000000000000 --- a/examples/v1/usage-metering/GetUsageAttribution.rb +++ /dev/null @@ -1,9 +0,0 @@ -# Get usage attribution returns "OK" response - -require "datadog_api_client" -api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new -opts = { - offset: 0, - limit: 1, -} -p api_instance.get_usage_attribution((Time.now + -3 * 86400), UsageAttributionSupportedMetrics::ALL, opts) diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 259c74b75112..f8f6ce6327f0 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -50,16 +50,6 @@ "start_hr" => "Time", "end_hr" => "Time", }, - "v1.GetUsageAttribution" => { - "start_month" => "Time", - "fields" => "UsageAttributionSupportedMetrics", - "end_month" => "Time", - "sort_direction" => "UsageSortDirection", - "sort_name" => "UsageAttributionSort", - "include_descendants" => "Boolean", - "offset" => "Integer", - "limit" => "Integer", - }, "v1.GetUsageAuditLogs" => { "start_hr" => "Time", "end_hr" => "Time", diff --git a/features/v1/undo.json b/features/v1/undo.json index c8a2684fb3b0..16982e7aa549 100644 --- a/features/v1/undo.json +++ b/features/v1/undo.json @@ -1322,12 +1322,6 @@ "type": "safe" } }, - "GetUsageAttribution": { - "tag": "Usage Metering", - "undo": { - "type": "safe" - } - }, "GetUsageAuditLogs": { "tag": "Usage Metering", "undo": { diff --git a/features/v1/usage_metering.feature b/features/v1/usage_metering.feature index 391d674cb0bb..324dbe5e386c 100644 --- a/features/v1/usage_metering.feature +++ b/features/v1/usage_metering.feature @@ -701,16 +701,6 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/red-zone-revenue-query - Scenario: Get usage attribution returns "OK" response - Given new "GetUsageAttribution" request - And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}" - And request contains "fields" parameter with value "*" - And request contains "offset" parameter with value 0 - And request contains "limit" parameter with value 1 - When the request is sent - Then the response status is 200 OK - @skip @team:DataDog/red-zone-revenue-query Scenario: Paginate monthly usage attribution Given there is a valid "monthly_usage_attribution" response diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 64318a4f32bc..84f1d628abbd 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -708,13 +708,6 @@ def overrides "v1.usage_analyzed_logs_hour" => "UsageAnalyzedLogsHour", "v1.usage_analyzed_logs_response" => "UsageAnalyzedLogsResponse", "v1.usage_attribution_aggregates_body" => "UsageAttributionAggregatesBody", - "v1.usage_attribution_body" => "UsageAttributionBody", - "v1.usage_attribution_metadata" => "UsageAttributionMetadata", - "v1.usage_attribution_pagination" => "UsageAttributionPagination", - "v1.usage_attribution_response" => "UsageAttributionResponse", - "v1.usage_attribution_sort" => "UsageAttributionSort", - "v1.usage_attribution_supported_metrics" => "UsageAttributionSupportedMetrics", - "v1.usage_attribution_values" => "UsageAttributionValues", "v1.usage_audit_logs_hour" => "UsageAuditLogsHour", "v1.usage_audit_logs_response" => "UsageAuditLogsResponse", "v1.usage_billable_summary_body" => "UsageBillableSummaryBody", diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 0b2f68d8d961..c8379673fea4 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -742,108 +742,6 @@ def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) return data, status_code, headers end - # Get usage attribution. - # - # @see #get_usage_attribution_with_http_info - def get_usage_attribution(start_month, fields, opts = {}) - data, _status_code, _headers = get_usage_attribution_with_http_info(start_month, fields, opts) - data - end - - # Get usage attribution. - # - # Get usage attribution. - # **Note:** This endpoint will be fully deprecated on December 1, 2022. - # Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. - # - # @deprecated This API is deprecated. - # - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. - # @param opts [Hash] the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. - # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. - # @option opts [UsageAttributionSort] :sort_name The field to sort by. - # @option opts [Boolean] :include_descendants Include child org usage in the response. Defaults to false. - # @option opts [Integer] :offset Number of records to skip before beginning to return. - # @option opts [Integer] :limit Maximum number of records to be returned. - # @return [Array<(UsageAttributionResponse, Integer, Hash)>] UsageAttributionResponse data, response status code and response headers - def get_usage_attribution_with_http_info(start_month, fields, opts = {}) - warn "[DEPRECATION] `GetUsageAttribution` is deprecated." - - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_attribution ...' - end - # verify the required parameter 'start_month' is set - if @api_client.config.client_side_validation && start_month.nil? - fail ArgumentError, "Missing the required parameter 'start_month' when calling UsageMeteringAPI.get_usage_attribution" - end - # verify the required parameter 'fields' is set - if @api_client.config.client_side_validation && fields.nil? - fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution" - end - # verify enum value - allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'estimated_rum_usage_attribution_usage', 'estimated_rum_usage_attribution_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', '*'] - if @api_client.config.client_side_validation && !allowable_values.include?(fields) - fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}" - end - allowable_values = ['desc', 'asc'] - if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction']) - fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}" - end - allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'estimated_rum_usage_attribution_usage', 'estimated_rum_usage_attribution_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage'] - if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name']) - fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}" - end - # resource path - local_var_path = '/api/v1/usage/attribution' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'start_month'] = start_month - query_params[:'fields'] = fields - query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil? - query_params[:'sort_direction'] = opts[:'sort_direction'] if !opts[:'sort_direction'].nil? - query_params[:'sort_name'] = opts[:'sort_name'] if !opts[:'sort_name'].nil? - query_params[:'include_descendants'] = opts[:'include_descendants'] if !opts[:'include_descendants'].nil? - query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json;datetime-format=rfc3339']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'UsageAttributionResponse' - - # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] - - new_options = opts.merge( - :operation => :get_usage_attribution, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type, - :api_version => "V1" - ) - - data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: UsageMeteringAPI#get_usage_attribution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Get hourly usage for audit logs. # # @see #get_usage_audit_logs_with_http_info diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb deleted file mode 100644 index aeb4867daafd..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ /dev/null @@ -1,152 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # Usage Summary by tag for a given organization. - class UsageAttributionBody - include BaseGenericModel - - # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. - attr_accessor :month - - # The name of the organization. - attr_accessor :org_name - - # The organization public ID. - attr_accessor :public_id - - # The source of the usage attribution tag configuration and the selected tags in the format `::://////`. - attr_accessor :tag_config_source - - # Tag keys and values. - # - # A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags - # configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started). - # In this scenario the API returns the total usage, not broken down by tags. - attr_accessor :tags - - # Shows the the most recent hour in the current month for all organizations for which all usages were calculated. - attr_accessor :updated_at - - # Fields in Usage Summary by tag(s). - attr_accessor :values - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'month' => :'month', - :'org_name' => :'org_name', - :'public_id' => :'public_id', - :'tag_config_source' => :'tag_config_source', - :'tags' => :'tags', - :'updated_at' => :'updated_at', - :'values' => :'values' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'month' => :'Time', - :'org_name' => :'String', - :'public_id' => :'String', - :'tag_config_source' => :'String', - :'tags' => :'Hash>', - :'updated_at' => :'String', - :'values' => :'UsageAttributionValues' - } - end - - # List of attributes with nullable: true - # @!visibility private - def self.openapi_nullable - Set.new([ - :'tags', - ]) - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionBody` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'month') - self.month = attributes[:'month'] - end - - if attributes.key?(:'org_name') - self.org_name = attributes[:'org_name'] - end - - if attributes.key?(:'public_id') - self.public_id = attributes[:'public_id'] - end - - if attributes.key?(:'tag_config_source') - self.tag_config_source = attributes[:'tag_config_source'] - end - - if attributes.key?(:'tags') - self.tags = attributes[:'tags'] - end - - if attributes.key?(:'updated_at') - self.updated_at = attributes[:'updated_at'] - end - - if attributes.key?(:'values') - self.values = attributes[:'values'] - end - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - month == o.month && - org_name == o.org_name && - public_id == o.public_id && - tag_config_source == o.tag_config_source && - tags == o.tags && - updated_at == o.updated_at && - values == o.values - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [month, org_name, public_id, tag_config_source, tags, updated_at, values].hash - end - end -end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb deleted file mode 100644 index e4dae97af6f7..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ /dev/null @@ -1,92 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # The object containing document metadata. - class UsageAttributionMetadata - include BaseGenericModel - - # An array of available aggregates. - attr_accessor :aggregates - - # The metadata for the current pagination. - attr_accessor :pagination - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'aggregates' => :'aggregates', - :'pagination' => :'pagination' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'aggregates' => :'Array', - :'pagination' => :'UsageAttributionPagination' - } - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionMetadata` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'aggregates') - if (value = attributes[:'aggregates']).is_a?(Array) - self.aggregates = value - end - end - - if attributes.key?(:'pagination') - self.pagination = attributes[:'pagination'] - end - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - aggregates == o.aggregates && - pagination == o.pagination - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [aggregates, pagination].hash - end - end -end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb deleted file mode 100644 index 3f979bbf6086..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ /dev/null @@ -1,120 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # The metadata for the current pagination. - class UsageAttributionPagination - include BaseGenericModel - - # Maximum amount of records to be returned. - attr_accessor :limit - - # Records to be skipped before beginning to return. - attr_accessor :offset - - # Direction to sort by. - attr_accessor :sort_direction - - # Field to sort by. - attr_accessor :sort_name - - # Total number of records. - attr_accessor :total_number_of_records - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'limit' => :'limit', - :'offset' => :'offset', - :'sort_direction' => :'sort_direction', - :'sort_name' => :'sort_name', - :'total_number_of_records' => :'total_number_of_records' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'limit' => :'Integer', - :'offset' => :'Integer', - :'sort_direction' => :'String', - :'sort_name' => :'String', - :'total_number_of_records' => :'Integer' - } - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionPagination` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'limit') - self.limit = attributes[:'limit'] - end - - if attributes.key?(:'offset') - self.offset = attributes[:'offset'] - end - - if attributes.key?(:'sort_direction') - self.sort_direction = attributes[:'sort_direction'] - end - - if attributes.key?(:'sort_name') - self.sort_name = attributes[:'sort_name'] - end - - if attributes.key?(:'total_number_of_records') - self.total_number_of_records = attributes[:'total_number_of_records'] - end - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - limit == o.limit && - offset == o.offset && - sort_direction == o.sort_direction && - sort_name == o.sort_name && - total_number_of_records == o.total_number_of_records - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [limit, offset, sort_direction, sort_name, total_number_of_records].hash - end - end -end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb deleted file mode 100644 index e6920b115e2e..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ /dev/null @@ -1,92 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # Response containing the Usage Summary by tag(s). - class UsageAttributionResponse - include BaseGenericModel - - # The object containing document metadata. - attr_accessor :metadata - - # Get usage summary by tag(s). - attr_accessor :usage - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'metadata' => :'metadata', - :'usage' => :'usage' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'metadata' => :'UsageAttributionMetadata', - :'usage' => :'Array' - } - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] - end - - if attributes.key?(:'usage') - if (value = attributes[:'usage']).is_a?(Array) - self.usage = value - end - end - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - metadata == o.metadata && - usage == o.usage - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [metadata, usage].hash - end - end -end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb deleted file mode 100644 index 8e2c51857a13..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +++ /dev/null @@ -1,63 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # The field to sort by. - class UsageAttributionSort - include BaseEnumModel - - API_PERCENTAGE = "api_percentage".freeze - SNMP_USAGE = "snmp_usage".freeze - APM_HOST_USAGE = "apm_host_usage".freeze - API_USAGE = "api_usage".freeze - APPSEC_USAGE = "appsec_usage".freeze - APPSEC_PERCENTAGE = "appsec_percentage".freeze - CONTAINER_USAGE = "container_usage".freeze - CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze - CONTAINER_PERCENTAGE = "container_percentage".freeze - APM_HOST_PERCENTAGE = "apm_host_percentage".freeze - NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze - BROWSER_PERCENTAGE = "browser_percentage".freeze - BROWSER_USAGE = "browser_usage".freeze - INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze - SNMP_PERCENTAGE = "snmp_percentage".freeze - NPM_HOST_USAGE = "npm_host_usage".freeze - INFRA_HOST_USAGE = "infra_host_usage".freeze - CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze - LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage".freeze - LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze - LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage".freeze - LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze - ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze - ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze - ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze - ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze - ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze - ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze - ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze - ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze - APM_FARGATE_USAGE = "apm_fargate_usage".freeze - APM_FARGATE_PERCENTAGE = "apm_fargate_percentage".freeze - APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze - APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage".freeze - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE = "estimated_rum_usage_attribution_usage".freeze - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE = "estimated_rum_usage_attribution_percentage".freeze - ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = "asm_serverless_traced_invocations_usage".freeze - ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = "asm_serverless_traced_invocations_percentage".freeze - end -end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb deleted file mode 100644 index d31691ef8a9b..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +++ /dev/null @@ -1,74 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # Supported fields for usage attribution requests (valid requests contain one or more metrics, or `*` for all). - class UsageAttributionSupportedMetrics - include BaseEnumModel - - CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze - CONTAINER_USAGE = "container_usage".freeze - SNMP_PERCENTAGE = "snmp_percentage".freeze - APM_HOST_USAGE = "apm_host_usage".freeze - BROWSER_USAGE = "browser_usage".freeze - NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze - INFRA_HOST_USAGE = "infra_host_usage".freeze - CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze - CONTAINER_PERCENTAGE = "container_percentage".freeze - API_USAGE = "api_usage".freeze - APM_HOST_PERCENTAGE = "apm_host_percentage".freeze - INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze - SNMP_USAGE = "snmp_usage".freeze - BROWSER_PERCENTAGE = "browser_percentage".freeze - API_PERCENTAGE = "api_percentage".freeze - NPM_HOST_USAGE = "npm_host_usage".freeze - LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage".freeze - LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze - LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage".freeze - LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze - FARGATE_USAGE = "fargate_usage".freeze - FARGATE_PERCENTAGE = "fargate_percentage".freeze - PROFILED_HOST_USAGE = "profiled_host_usage".freeze - PROFILED_HOST_PERCENTAGE = "profiled_host_percentage".freeze - PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze - PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage".freeze - DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze - DBM_HOSTS_PERCENTAGE = "dbm_hosts_percentage".freeze - DBM_QUERIES_USAGE = "dbm_queries_usage".freeze - DBM_QUERIES_PERCENTAGE = "dbm_queries_percentage".freeze - ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze - ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze - ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze - ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze - APPSEC_USAGE = "appsec_usage".freeze - APPSEC_PERCENTAGE = "appsec_percentage".freeze - ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze - ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze - ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze - ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze - APM_FARGATE_USAGE = "apm_fargate_usage".freeze - APM_FARGATE_PERCENTAGE = "apm_fargate_percentage".freeze - APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze - APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage".freeze - ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE = "estimated_rum_usage_attribution_usage".freeze - ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE = "estimated_rum_usage_attribution_percentage".freeze - ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = "asm_serverless_traced_invocations_usage".freeze - ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = "asm_serverless_traced_invocations_percentage".freeze - ALL = "*".freeze - end -end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb deleted file mode 100644 index c1cd4f4cd0c9..000000000000 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ /dev/null @@ -1,590 +0,0 @@ -=begin -#Datadog API V1 Collection - -#Collection of all Datadog Public endpoints. - -The version of the OpenAPI document: 1.0 -Contact: support@datadoghq.com -Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. - -=end - -require 'date' -require 'time' - -module DatadogAPIClient::V1 - # Fields in Usage Summary by tag(s). - class UsageAttributionValues - include BaseGenericModel - - # The percentage of synthetic API test usage by tag(s). - attr_accessor :api_percentage - - # The synthetic API test usage by tag(s). - attr_accessor :api_usage - - # The percentage of APM ECS Fargate task usage by tag(s). - attr_accessor :apm_fargate_percentage - - # The APM ECS Fargate task usage by tag(s). - attr_accessor :apm_fargate_usage - - # The percentage of APM host usage by tag(s). - attr_accessor :apm_host_percentage - - # The APM host usage by tag(s). - attr_accessor :apm_host_usage - - # The percentage of Application Security Monitoring ECS Fargate task usage by tag(s). - attr_accessor :appsec_fargate_percentage - - # The Application Security Monitoring ECS Fargate task usage by tag(s). - attr_accessor :appsec_fargate_usage - - # The percentage of Application Security Monitoring host usage by tag(s). - attr_accessor :appsec_percentage - - # The Application Security Monitoring host usage by tag(s). - attr_accessor :appsec_usage - - # The percentage of synthetic browser test usage by tag(s). - attr_accessor :browser_percentage - - # The synthetic browser test usage by tag(s). - attr_accessor :browser_usage - - # The percentage of container usage by tag(s). - attr_accessor :container_percentage - - # The container usage by tag(s). - attr_accessor :container_usage - - # The percentage of Cloud Security Management Pro container usage by tag(s) - attr_accessor :cspm_container_percentage - - # The Cloud Security Management Pro container usage by tag(s) - attr_accessor :cspm_container_usage - - # The percentage of Cloud Security Management Pro host usage by tag(s) - attr_accessor :cspm_host_percentage - - # The Cloud Security Management Pro host usage by tag(s) - attr_accessor :cspm_host_usage - - # The percentage of custom metrics usage by tag(s). - attr_accessor :custom_timeseries_percentage - - # The custom metrics usage by tag(s). - attr_accessor :custom_timeseries_usage - - # The percentage of Cloud Workload Security container usage by tag(s) - attr_accessor :cws_container_percentage - - # The Cloud Workload Security container usage by tag(s) - attr_accessor :cws_container_usage - - # The percentage of Cloud Workload Security host usage by tag(s) - attr_accessor :cws_host_percentage - - # The Cloud Workload Security host usage by tag(s) - attr_accessor :cws_host_usage - - # The percentage of Database Monitoring host usage by tag(s). - attr_accessor :dbm_hosts_percentage - - # The Database Monitoring host usage by tag(s). - attr_accessor :dbm_hosts_usage - - # The percentage of Database Monitoring normalized queries usage by tag(s). - attr_accessor :dbm_queries_percentage - - # The Database Monitoring normalized queries usage by tag(s). - attr_accessor :dbm_queries_usage - - # The percentage of estimated live indexed logs usage by tag(s). - attr_accessor :estimated_indexed_logs_percentage - - # The estimated live indexed logs usage by tag(s). - attr_accessor :estimated_indexed_logs_usage - - # The percentage of estimated indexed spans usage by tag(s). - attr_accessor :estimated_indexed_spans_percentage - - # The estimated indexed spans usage by tag(s). - attr_accessor :estimated_indexed_spans_usage - - # The percentage of estimated live ingested logs usage by tag(s). - attr_accessor :estimated_ingested_logs_percentage - - # The estimated live ingested logs usage by tag(s). - attr_accessor :estimated_ingested_logs_usage - - # The percentage of estimated ingested spans usage by tag(s). - attr_accessor :estimated_ingested_spans_percentage - - # The estimated ingested spans usage by tag(s). - attr_accessor :estimated_ingested_spans_usage - - # The percentage of estimated rum sessions usage by tag(s). - attr_accessor :estimated_rum_sessions_percentage - - # The estimated rum sessions usage by tag(s). - attr_accessor :estimated_rum_sessions_usage - - # The percentage of infrastructure host usage by tag(s). - attr_accessor :infra_host_percentage - - # The infrastructure host usage by tag(s). - attr_accessor :infra_host_usage - - # The percentage of Lambda function usage by tag(s). - attr_accessor :lambda_functions_percentage - - # The Lambda function usage by tag(s). - attr_accessor :lambda_functions_usage - - # The percentage of Lambda invocation usage by tag(s). - attr_accessor :lambda_invocations_percentage - - # The Lambda invocation usage by tag(s). - attr_accessor :lambda_invocations_usage - - # The percentage of network host usage by tag(s). - attr_accessor :npm_host_percentage - - # The network host usage by tag(s). - attr_accessor :npm_host_usage - - # The percentage of profiled containers usage by tag(s). - attr_accessor :profiled_container_percentage - - # The profiled container usage by tag(s). - attr_accessor :profiled_container_usage - - # The percentage of profiled hosts usage by tag(s). - attr_accessor :profiled_hosts_percentage - - # The profiled host usage by tag(s). - attr_accessor :profiled_hosts_usage - - # The percentage of network device usage by tag(s). - attr_accessor :snmp_percentage - - # The network device usage by tag(s). - attr_accessor :snmp_usage - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'api_percentage' => :'api_percentage', - :'api_usage' => :'api_usage', - :'apm_fargate_percentage' => :'apm_fargate_percentage', - :'apm_fargate_usage' => :'apm_fargate_usage', - :'apm_host_percentage' => :'apm_host_percentage', - :'apm_host_usage' => :'apm_host_usage', - :'appsec_fargate_percentage' => :'appsec_fargate_percentage', - :'appsec_fargate_usage' => :'appsec_fargate_usage', - :'appsec_percentage' => :'appsec_percentage', - :'appsec_usage' => :'appsec_usage', - :'browser_percentage' => :'browser_percentage', - :'browser_usage' => :'browser_usage', - :'container_percentage' => :'container_percentage', - :'container_usage' => :'container_usage', - :'cspm_container_percentage' => :'cspm_container_percentage', - :'cspm_container_usage' => :'cspm_container_usage', - :'cspm_host_percentage' => :'cspm_host_percentage', - :'cspm_host_usage' => :'cspm_host_usage', - :'custom_timeseries_percentage' => :'custom_timeseries_percentage', - :'custom_timeseries_usage' => :'custom_timeseries_usage', - :'cws_container_percentage' => :'cws_container_percentage', - :'cws_container_usage' => :'cws_container_usage', - :'cws_host_percentage' => :'cws_host_percentage', - :'cws_host_usage' => :'cws_host_usage', - :'dbm_hosts_percentage' => :'dbm_hosts_percentage', - :'dbm_hosts_usage' => :'dbm_hosts_usage', - :'dbm_queries_percentage' => :'dbm_queries_percentage', - :'dbm_queries_usage' => :'dbm_queries_usage', - :'estimated_indexed_logs_percentage' => :'estimated_indexed_logs_percentage', - :'estimated_indexed_logs_usage' => :'estimated_indexed_logs_usage', - :'estimated_indexed_spans_percentage' => :'estimated_indexed_spans_percentage', - :'estimated_indexed_spans_usage' => :'estimated_indexed_spans_usage', - :'estimated_ingested_logs_percentage' => :'estimated_ingested_logs_percentage', - :'estimated_ingested_logs_usage' => :'estimated_ingested_logs_usage', - :'estimated_ingested_spans_percentage' => :'estimated_ingested_spans_percentage', - :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage', - :'estimated_rum_sessions_percentage' => :'estimated_rum_sessions_percentage', - :'estimated_rum_sessions_usage' => :'estimated_rum_sessions_usage', - :'infra_host_percentage' => :'infra_host_percentage', - :'infra_host_usage' => :'infra_host_usage', - :'lambda_functions_percentage' => :'lambda_functions_percentage', - :'lambda_functions_usage' => :'lambda_functions_usage', - :'lambda_invocations_percentage' => :'lambda_invocations_percentage', - :'lambda_invocations_usage' => :'lambda_invocations_usage', - :'npm_host_percentage' => :'npm_host_percentage', - :'npm_host_usage' => :'npm_host_usage', - :'profiled_container_percentage' => :'profiled_container_percentage', - :'profiled_container_usage' => :'profiled_container_usage', - :'profiled_hosts_percentage' => :'profiled_hosts_percentage', - :'profiled_hosts_usage' => :'profiled_hosts_usage', - :'snmp_percentage' => :'snmp_percentage', - :'snmp_usage' => :'snmp_usage' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'api_percentage' => :'Float', - :'api_usage' => :'Float', - :'apm_fargate_percentage' => :'Float', - :'apm_fargate_usage' => :'Float', - :'apm_host_percentage' => :'Float', - :'apm_host_usage' => :'Float', - :'appsec_fargate_percentage' => :'Float', - :'appsec_fargate_usage' => :'Float', - :'appsec_percentage' => :'Float', - :'appsec_usage' => :'Float', - :'browser_percentage' => :'Float', - :'browser_usage' => :'Float', - :'container_percentage' => :'Float', - :'container_usage' => :'Float', - :'cspm_container_percentage' => :'Float', - :'cspm_container_usage' => :'Float', - :'cspm_host_percentage' => :'Float', - :'cspm_host_usage' => :'Float', - :'custom_timeseries_percentage' => :'Float', - :'custom_timeseries_usage' => :'Float', - :'cws_container_percentage' => :'Float', - :'cws_container_usage' => :'Float', - :'cws_host_percentage' => :'Float', - :'cws_host_usage' => :'Float', - :'dbm_hosts_percentage' => :'Float', - :'dbm_hosts_usage' => :'Float', - :'dbm_queries_percentage' => :'Float', - :'dbm_queries_usage' => :'Float', - :'estimated_indexed_logs_percentage' => :'Float', - :'estimated_indexed_logs_usage' => :'Float', - :'estimated_indexed_spans_percentage' => :'Float', - :'estimated_indexed_spans_usage' => :'Float', - :'estimated_ingested_logs_percentage' => :'Float', - :'estimated_ingested_logs_usage' => :'Float', - :'estimated_ingested_spans_percentage' => :'Float', - :'estimated_ingested_spans_usage' => :'Float', - :'estimated_rum_sessions_percentage' => :'Float', - :'estimated_rum_sessions_usage' => :'Float', - :'infra_host_percentage' => :'Float', - :'infra_host_usage' => :'Float', - :'lambda_functions_percentage' => :'Float', - :'lambda_functions_usage' => :'Float', - :'lambda_invocations_percentage' => :'Float', - :'lambda_invocations_usage' => :'Float', - :'npm_host_percentage' => :'Float', - :'npm_host_usage' => :'Float', - :'profiled_container_percentage' => :'Float', - :'profiled_container_usage' => :'Float', - :'profiled_hosts_percentage' => :'Float', - :'profiled_hosts_usage' => :'Float', - :'snmp_percentage' => :'Float', - :'snmp_usage' => :'Float' - } - end - - # Initializes the object - # @param attributes [Hash] Model attributes in the form of hash - # @!visibility private - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionValues` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionValues`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'api_percentage') - self.api_percentage = attributes[:'api_percentage'] - end - - if attributes.key?(:'api_usage') - self.api_usage = attributes[:'api_usage'] - end - - if attributes.key?(:'apm_fargate_percentage') - self.apm_fargate_percentage = attributes[:'apm_fargate_percentage'] - end - - if attributes.key?(:'apm_fargate_usage') - self.apm_fargate_usage = attributes[:'apm_fargate_usage'] - end - - if attributes.key?(:'apm_host_percentage') - self.apm_host_percentage = attributes[:'apm_host_percentage'] - end - - if attributes.key?(:'apm_host_usage') - self.apm_host_usage = attributes[:'apm_host_usage'] - end - - if attributes.key?(:'appsec_fargate_percentage') - self.appsec_fargate_percentage = attributes[:'appsec_fargate_percentage'] - end - - if attributes.key?(:'appsec_fargate_usage') - self.appsec_fargate_usage = attributes[:'appsec_fargate_usage'] - end - - if attributes.key?(:'appsec_percentage') - self.appsec_percentage = attributes[:'appsec_percentage'] - end - - if attributes.key?(:'appsec_usage') - self.appsec_usage = attributes[:'appsec_usage'] - end - - if attributes.key?(:'browser_percentage') - self.browser_percentage = attributes[:'browser_percentage'] - end - - if attributes.key?(:'browser_usage') - self.browser_usage = attributes[:'browser_usage'] - end - - if attributes.key?(:'container_percentage') - self.container_percentage = attributes[:'container_percentage'] - end - - if attributes.key?(:'container_usage') - self.container_usage = attributes[:'container_usage'] - end - - if attributes.key?(:'cspm_container_percentage') - self.cspm_container_percentage = attributes[:'cspm_container_percentage'] - end - - if attributes.key?(:'cspm_container_usage') - self.cspm_container_usage = attributes[:'cspm_container_usage'] - end - - if attributes.key?(:'cspm_host_percentage') - self.cspm_host_percentage = attributes[:'cspm_host_percentage'] - end - - if attributes.key?(:'cspm_host_usage') - self.cspm_host_usage = attributes[:'cspm_host_usage'] - end - - if attributes.key?(:'custom_timeseries_percentage') - self.custom_timeseries_percentage = attributes[:'custom_timeseries_percentage'] - end - - if attributes.key?(:'custom_timeseries_usage') - self.custom_timeseries_usage = attributes[:'custom_timeseries_usage'] - end - - if attributes.key?(:'cws_container_percentage') - self.cws_container_percentage = attributes[:'cws_container_percentage'] - end - - if attributes.key?(:'cws_container_usage') - self.cws_container_usage = attributes[:'cws_container_usage'] - end - - if attributes.key?(:'cws_host_percentage') - self.cws_host_percentage = attributes[:'cws_host_percentage'] - end - - if attributes.key?(:'cws_host_usage') - self.cws_host_usage = attributes[:'cws_host_usage'] - end - - if attributes.key?(:'dbm_hosts_percentage') - self.dbm_hosts_percentage = attributes[:'dbm_hosts_percentage'] - end - - if attributes.key?(:'dbm_hosts_usage') - self.dbm_hosts_usage = attributes[:'dbm_hosts_usage'] - end - - if attributes.key?(:'dbm_queries_percentage') - self.dbm_queries_percentage = attributes[:'dbm_queries_percentage'] - end - - if attributes.key?(:'dbm_queries_usage') - self.dbm_queries_usage = attributes[:'dbm_queries_usage'] - end - - if attributes.key?(:'estimated_indexed_logs_percentage') - self.estimated_indexed_logs_percentage = attributes[:'estimated_indexed_logs_percentage'] - end - - if attributes.key?(:'estimated_indexed_logs_usage') - self.estimated_indexed_logs_usage = attributes[:'estimated_indexed_logs_usage'] - end - - if attributes.key?(:'estimated_indexed_spans_percentage') - self.estimated_indexed_spans_percentage = attributes[:'estimated_indexed_spans_percentage'] - end - - if attributes.key?(:'estimated_indexed_spans_usage') - self.estimated_indexed_spans_usage = attributes[:'estimated_indexed_spans_usage'] - end - - if attributes.key?(:'estimated_ingested_logs_percentage') - self.estimated_ingested_logs_percentage = attributes[:'estimated_ingested_logs_percentage'] - end - - if attributes.key?(:'estimated_ingested_logs_usage') - self.estimated_ingested_logs_usage = attributes[:'estimated_ingested_logs_usage'] - end - - if attributes.key?(:'estimated_ingested_spans_percentage') - self.estimated_ingested_spans_percentage = attributes[:'estimated_ingested_spans_percentage'] - end - - if attributes.key?(:'estimated_ingested_spans_usage') - self.estimated_ingested_spans_usage = attributes[:'estimated_ingested_spans_usage'] - end - - if attributes.key?(:'estimated_rum_sessions_percentage') - self.estimated_rum_sessions_percentage = attributes[:'estimated_rum_sessions_percentage'] - end - - if attributes.key?(:'estimated_rum_sessions_usage') - self.estimated_rum_sessions_usage = attributes[:'estimated_rum_sessions_usage'] - end - - if attributes.key?(:'infra_host_percentage') - self.infra_host_percentage = attributes[:'infra_host_percentage'] - end - - if attributes.key?(:'infra_host_usage') - self.infra_host_usage = attributes[:'infra_host_usage'] - end - - if attributes.key?(:'lambda_functions_percentage') - self.lambda_functions_percentage = attributes[:'lambda_functions_percentage'] - end - - if attributes.key?(:'lambda_functions_usage') - self.lambda_functions_usage = attributes[:'lambda_functions_usage'] - end - - if attributes.key?(:'lambda_invocations_percentage') - self.lambda_invocations_percentage = attributes[:'lambda_invocations_percentage'] - end - - if attributes.key?(:'lambda_invocations_usage') - self.lambda_invocations_usage = attributes[:'lambda_invocations_usage'] - end - - if attributes.key?(:'npm_host_percentage') - self.npm_host_percentage = attributes[:'npm_host_percentage'] - end - - if attributes.key?(:'npm_host_usage') - self.npm_host_usage = attributes[:'npm_host_usage'] - end - - if attributes.key?(:'profiled_container_percentage') - self.profiled_container_percentage = attributes[:'profiled_container_percentage'] - end - - if attributes.key?(:'profiled_container_usage') - self.profiled_container_usage = attributes[:'profiled_container_usage'] - end - - if attributes.key?(:'profiled_hosts_percentage') - self.profiled_hosts_percentage = attributes[:'profiled_hosts_percentage'] - end - - if attributes.key?(:'profiled_hosts_usage') - self.profiled_hosts_usage = attributes[:'profiled_hosts_usage'] - end - - if attributes.key?(:'snmp_percentage') - self.snmp_percentage = attributes[:'snmp_percentage'] - end - - if attributes.key?(:'snmp_usage') - self.snmp_usage = attributes[:'snmp_usage'] - end - end - - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class && - api_percentage == o.api_percentage && - api_usage == o.api_usage && - apm_fargate_percentage == o.apm_fargate_percentage && - apm_fargate_usage == o.apm_fargate_usage && - apm_host_percentage == o.apm_host_percentage && - apm_host_usage == o.apm_host_usage && - appsec_fargate_percentage == o.appsec_fargate_percentage && - appsec_fargate_usage == o.appsec_fargate_usage && - appsec_percentage == o.appsec_percentage && - appsec_usage == o.appsec_usage && - browser_percentage == o.browser_percentage && - browser_usage == o.browser_usage && - container_percentage == o.container_percentage && - container_usage == o.container_usage && - cspm_container_percentage == o.cspm_container_percentage && - cspm_container_usage == o.cspm_container_usage && - cspm_host_percentage == o.cspm_host_percentage && - cspm_host_usage == o.cspm_host_usage && - custom_timeseries_percentage == o.custom_timeseries_percentage && - custom_timeseries_usage == o.custom_timeseries_usage && - cws_container_percentage == o.cws_container_percentage && - cws_container_usage == o.cws_container_usage && - cws_host_percentage == o.cws_host_percentage && - cws_host_usage == o.cws_host_usage && - dbm_hosts_percentage == o.dbm_hosts_percentage && - dbm_hosts_usage == o.dbm_hosts_usage && - dbm_queries_percentage == o.dbm_queries_percentage && - dbm_queries_usage == o.dbm_queries_usage && - estimated_indexed_logs_percentage == o.estimated_indexed_logs_percentage && - estimated_indexed_logs_usage == o.estimated_indexed_logs_usage && - estimated_indexed_spans_percentage == o.estimated_indexed_spans_percentage && - estimated_indexed_spans_usage == o.estimated_indexed_spans_usage && - estimated_ingested_logs_percentage == o.estimated_ingested_logs_percentage && - estimated_ingested_logs_usage == o.estimated_ingested_logs_usage && - estimated_ingested_spans_percentage == o.estimated_ingested_spans_percentage && - estimated_ingested_spans_usage == o.estimated_ingested_spans_usage && - estimated_rum_sessions_percentage == o.estimated_rum_sessions_percentage && - estimated_rum_sessions_usage == o.estimated_rum_sessions_usage && - infra_host_percentage == o.infra_host_percentage && - infra_host_usage == o.infra_host_usage && - lambda_functions_percentage == o.lambda_functions_percentage && - lambda_functions_usage == o.lambda_functions_usage && - lambda_invocations_percentage == o.lambda_invocations_percentage && - lambda_invocations_usage == o.lambda_invocations_usage && - npm_host_percentage == o.npm_host_percentage && - npm_host_usage == o.npm_host_usage && - profiled_container_percentage == o.profiled_container_percentage && - profiled_container_usage == o.profiled_container_usage && - profiled_hosts_percentage == o.profiled_hosts_percentage && - profiled_hosts_usage == o.profiled_hosts_usage && - snmp_percentage == o.snmp_percentage && - snmp_usage == o.snmp_usage - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash - end - end -end