From d4c13bf26a8a96552e3bfd4f33ceb8c6f00c8a2f Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 16:37:54 +0000 Subject: [PATCH] Added spec for flex_stored_logs (#2834) Co-authored-by: ci.datadog-api-spec --- .generator/schemas/v1/openapi.yaml | 14 + .generator/schemas/v2/openapi.yaml | 427 +++++++----------- lib/datadog_api_client/inflector.rb | 11 +- .../v1/api/usage_metering_api.rb | 6 +- .../hourly_usage_attribution_usage_type.rb | 1 + ...hly_usage_attribution_supported_metrics.rb | 2 + .../monthly_usage_attribution_values.rb | 22 +- .../v2/api/dora_metrics_api.rb | 16 +- .../models/dora_deployment_fetch_response.rb | 105 ----- .../v2/models/dora_deployment_object.rb | 125 ----- .../dora_deployment_object_attributes.rb | 225 --------- .../models/dora_deployments_list_response.rb | 107 ----- ...{dora_incident_object.rb => dora_event.rb} | 16 +- ...tch_response.rb => dora_fetch_response.rb} | 10 +- .../models/dora_incident_object_attributes.rb | 225 --------- ...list_response.rb => dora_list_response.rb} | 10 +- 16 files changed, 243 insertions(+), 1079 deletions(-) delete mode 100644 lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb delete mode 100644 lib/datadog_api_client/v2/models/dora_deployment_object.rb delete mode 100644 lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb delete mode 100644 lib/datadog_api_client/v2/models/dora_deployments_list_response.rb rename lib/datadog_api_client/v2/models/{dora_incident_object.rb => dora_event.rb} (90%) rename lib/datadog_api_client/v2/models/{dora_failure_fetch_response.rb => dora_fetch_response.rb} (92%) delete mode 100644 lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb rename lib/datadog_api_client/v2/models/{dora_failures_list_response.rb => dora_list_response.rb} (91%) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 838f5745fd51..dba7bb99f9a5 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4306,6 +4306,7 @@ components: - estimated_indexed_spans_usage - estimated_ingested_spans_usage - fargate_usage + - flex_stored_logs - functions_usage - incident_management_monthly_active_users_usage - indexed_spans_usage @@ -4388,6 +4389,7 @@ components: - ESTIMATED_INDEXED_SPANS_USAGE - ESTIMATED_INGESTED_SPANS_USAGE - FARGATE_USAGE + - FLEX_STORED_LOGS - FUNCTIONS_USAGE - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE - INDEXED_SPANS_USAGE @@ -8742,6 +8744,8 @@ components: - estimated_ingested_spans_percentage - fargate_usage - fargate_percentage + - flex_stored_logs_usage + - flex_stored_logs_percentage - functions_usage - functions_percentage - incident_management_monthly_active_users_usage @@ -8901,6 +8905,8 @@ components: - ESTIMATED_INGESTED_SPANS_PERCENTAGE - FARGATE_USAGE - FARGATE_PERCENTAGE + - FLEX_STORED_LOGS_USAGE + - FLEX_STORED_LOGS_PERCENTAGE - FUNCTIONS_USAGE - FUNCTIONS_PERCENTAGE - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE @@ -9262,6 +9268,14 @@ components: description: The Fargate usage by tags. format: double type: number + flex_stored_logs_percentage: + description: The percentage of Flex Stored Logs usage by tags. + format: double + type: number + flex_stored_logs_usage: + description: The Flex Stored Logs usage by tags. + format: double + type: number functions_percentage: description: The percentage of Lambda function usage by tag(s). format: double diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index abac03b8a879..d2192b74841f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -15878,78 +15878,6 @@ components: type: string nullable: true type: array - DORADeploymentFetchResponse: - description: Response for fetching a single deployment event. - properties: - data: - $ref: '#/components/schemas/DORADeploymentObject' - type: object - DORADeploymentObject: - description: A DORA deployment event. - example: - attributes: - custom_tags: - - language:java - - department:engineering - - region:us-east-1 - env: production - finished_at: 1693491984000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - service: shopist - started_at: 1693491974000000000 - team: backend - version: v1.12.07 - id: 4242fcdd31586083 - type: dora_deployment - properties: - attributes: - $ref: '#/components/schemas/DORADeploymentObjectAttributes' - id: - description: The ID of the deployment event. - type: string - type: - $ref: '#/components/schemas/DORADeploymentType' - type: object - DORADeploymentObjectAttributes: - description: The attributes of the deployment event. - properties: - custom_tags: - $ref: '#/components/schemas/DORACustomTags' - env: - description: Environment name to where the service was deployed. - example: production - type: string - finished_at: - description: Unix timestamp when the deployment finished. - example: 1693491984000000000 - format: int64 - type: integer - git: - $ref: '#/components/schemas/DORAGitInfo' - service: - description: Service name. - example: shopist - type: string - started_at: - description: Unix timestamp when the deployment started. - example: 1693491974000000000 - format: int64 - type: integer - team: - description: Name of the team owning the deployed service. - example: backend - type: string - version: - description: Version to correlate with APM Deployment Tracking. - example: v1.12.07 - type: string - required: - - service - - started_at - - finished_at - type: object DORADeploymentRequest: description: Request to create a DORA deployment event. properties: @@ -16040,53 +15968,18 @@ components: type: string x-enum-varnames: - DORA_DEPLOYMENT - DORADeploymentsListResponse: - description: Response for the list deployments endpoint. - example: - data: - - attributes: - custom_tags: - - language:java - - department:engineering - - region:us-east-1 - env: production - finished_at: 1693491984000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - service: shopist - started_at: 1693491974000000000 - team: backend - version: v1.12.07 - id: 4242fcdd31586083 - type: dora_deployment - - attributes: - custom_tags: - - language:go - - department:platform - env: production - finished_at: 1693492084000000000 - git: - commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599 - repository_url: https://github.com/organization/api-service - service: api-service - started_at: 1693492074000000000 - team: backend - version: v2.1.0 - id: 4242fcdd31586084 - type: dora_deployment + DORAEvent: + description: A DORA event. properties: - data: - description: The list of DORA deployment events. - items: - $ref: '#/components/schemas/DORADeploymentObject' - type: array - type: object - DORAFailureFetchResponse: - description: Response for fetching a single failure event. - properties: - data: - $ref: '#/components/schemas/DORAIncidentObject' + attributes: + description: The attributes of the event. + type: object + id: + description: The ID of the event. + type: string + type: + description: The type of the event. + type: string type: object DORAFailureRequest: description: Request to create a DORA failure event. @@ -16190,45 +16083,11 @@ components: type: string x-enum-varnames: - DORA_FAILURE - DORAFailuresListResponse: - description: Response for the list failures endpoint. - example: - data: - - attributes: - custom_tags: - - incident_type:database - - department:engineering - env: production - finished_at: 1693492274000000000 - name: Database outage - services: - - shopist - severity: SEV-1 - started_at: 1693492174000000000 - team: backend - id: 4242fcdd31586085 - type: dora_incident - - attributes: - custom_tags: - - incident_type:service_down - - department:platform - env: production - finished_at: 1693492474000000000 - name: API service outage - services: - - api-service - - payment-service - severity: SEV-2 - started_at: 1693492374000000000 - team: backend - id: 4242fcdd31586086 - type: dora_incident + DORAFetchResponse: + description: Response for the DORA fetch endpoints. properties: data: - description: The list of DORA incident events. - items: - $ref: '#/components/schemas/DORAIncidentObject' - type: array + $ref: '#/components/schemas/DORAEvent' type: object DORAGitInfo: description: Git info for DORA Metrics events. @@ -16241,82 +16100,6 @@ components: - repository_url - commit_sha type: object - DORAIncidentObject: - description: A DORA incident event. - example: - attributes: - custom_tags: - - incident_type:database - - department:engineering - env: production - finished_at: 1693492274000000000 - git: - commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 - repository_url: https://github.com/organization/example-repository - name: Database outage - services: - - shopist - severity: SEV-1 - started_at: 1693492174000000000 - team: backend - id: 4242fcdd31586085 - type: dora_incident - properties: - attributes: - $ref: '#/components/schemas/DORAIncidentObjectAttributes' - id: - description: The ID of the incident event. - type: string - type: - $ref: '#/components/schemas/DORAFailureType' - type: object - DORAIncidentObjectAttributes: - description: The attributes of the incident event. - properties: - custom_tags: - $ref: '#/components/schemas/DORACustomTags' - env: - description: Environment name that was impacted by the incident. - example: production - type: string - finished_at: - description: Unix timestamp when the incident finished. - example: 1693491984000000000 - format: int64 - type: integer - git: - $ref: '#/components/schemas/DORAGitInfo' - name: - description: Incident name. - example: Database outage - type: string - services: - description: Service names impacted by the incident. - example: - - shopist - items: - type: string - type: array - severity: - description: Incident severity. - example: SEV-1 - type: string - started_at: - description: Unix timestamp when the incident started. - example: 1693491974000000000 - format: int64 - type: integer - team: - description: Name of the team owning the services impacted. - example: backend - type: string - version: - description: Version to correlate with APM Deployment Tracking. - example: v1.12.07 - type: string - required: - - started_at - type: object DORAListDeploymentsRequest: description: Request to get a list of deployments. example: @@ -16336,31 +16119,32 @@ components: type: object DORAListDeploymentsRequestAttributes: description: Attributes to get a list of deployments. + example: + from: '2025-01-01T00:00:00Z' + limit: 500 + query: service:(shopist OR api-service OR payment-service) env:(production + OR staging) team:(backend OR platform) + sort: -started_at + to: '2025-01-31T23:59:59Z' properties: from: description: Minimum timestamp for requested events. - example: '2025-01-01T00:00:00Z' format: date-time type: string limit: default: 10 description: Maximum number of events in the response. - example: 500 format: int32 maximum: 1000 type: integer query: description: Search query with event platform syntax. - example: service:(shopist OR api-service OR payment-service) env:(production - OR staging) team:(backend OR platform) type: string sort: description: Sort order (prefixed with `-` for descending). - example: -started_at type: string to: description: Maximum timestamp for requested events. - example: '2025-01-31T23:59:59Z' format: date-time type: string type: object @@ -16383,11 +16167,9 @@ components: - attributes type: object DORAListDeploymentsRequestDataType: - default: dora_deployments_list_request description: The definition of `DORAListDeploymentsRequestDataType` object. enum: - dora_deployments_list_request - example: dora_deployments_list_request type: string x-enum-varnames: - DORA_DEPLOYMENTS_LIST_REQUEST @@ -16410,31 +16192,32 @@ components: type: object DORAListFailuresRequestAttributes: description: Attributes to get a list of failures. + example: + from: '2025-01-01T00:00:00Z' + limit: 500 + query: severity:(SEV-1 OR SEV-2) env:(production OR staging) service:(shopist + OR api-service OR payment-service) team:(backend OR platform OR payments) + sort: -started_at + to: '2025-01-31T23:59:59Z' properties: from: description: Minimum timestamp for requested events. - example: '2025-01-01T00:00:00Z' format: date-time type: string limit: default: 10 description: Maximum number of events in the response. - example: 500 format: int32 maximum: 1000 type: integer query: description: Search query with event platform syntax. - example: severity:(SEV-1 OR SEV-2) env:(production OR staging) service:(shopist - OR api-service OR payment-service) team:(backend OR platform OR payments) type: string sort: description: Sort order (prefixed with `-` for descending). - example: -started_at type: string to: description: Maximum timestamp for requested events. - example: '2025-01-31T23:59:59Z' format: date-time type: string type: object @@ -16457,14 +16240,54 @@ components: - attributes type: object DORAListFailuresRequestDataType: - default: dora_failures_list_request description: The definition of `DORAListFailuresRequestDataType` object. enum: - dora_failures_list_request - example: dora_failures_list_request type: string x-enum-varnames: - DORA_FAILURES_LIST_REQUEST + DORAListResponse: + description: Response for the DORA list endpoints. + example: + data: + - attributes: + custom_tags: + - language:java + - department:engineering + - region:us-east-1 + env: production + finished_at: 1693491984000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + service: shopist + started_at: 1693491974000000000 + team: backend + version: v1.12.07 + id: 4242fcdd31586083 + type: dora_deployment + - attributes: + custom_tags: + - language:go + - department:platform + env: production + finished_at: 1693492084000000000 + git: + commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599 + repository_url: https://github.com/organization/api-service + service: api-service + started_at: 1693492074000000000 + team: backend + version: v2.1.0 + id: 4242fcdd31586084 + type: dora_deployment + properties: + data: + description: The list of DORA events. + items: + $ref: '#/components/schemas/DORAEvent' + type: array + type: object DashboardListAddItemsRequest: description: Request containing a list of dashboards to add. properties: @@ -67997,7 +67820,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DORADeploymentsListResponse' + $ref: '#/components/schemas/DORAListResponse' description: OK '400': content: @@ -68035,8 +67858,26 @@ paths: '200': content: application/json: - schema: - $ref: '#/components/schemas/DORADeploymentFetchResponse' + example: + data: + attributes: + custom_tags: + - language:java + - department:engineering + - region:us-east-1 + env: staging + finished_at: 1693491984000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + service: shopist + started_at: 1693491974000000000 + team: backend + version: v1.12.07 + id: 4242fcdd31586083 + type: dora_deployment + schema: + $ref: '#/components/schemas/DORAFetchResponse' description: OK '400': content: @@ -68153,8 +67994,66 @@ paths: '200': content: application/json: - schema: - $ref: '#/components/schemas/DORAFailuresListResponse' + example: + data: + - attributes: + custom_tags: + - language:java + - department:engineering + - region:us-east-1 + env: production + finished_at: 1693491984000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + name: Web server is down; all requests are failing. + services: + - shopist + severity: SEV-1 + started_at: 1693491974000000000 + team: backend + id: 4242fcdd31586085 + type: dora_failure + - attributes: + custom_tags: + - language:go + - department:platform + env: production + finished_at: 1693492084000000000 + git: + commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599 + repository_url: https://github.com/organization/api-service + name: Database connection timeout + services: + - api-service + - payment-service + severity: SEV-1 + started_at: 1693492074000000000 + team: platform + version: v2.1.0 + id: 4242fcdd31586086 + type: dora_failure + - attributes: + custom_tags: + - language:python + - department:payments + - region:eu-west-1 + env: staging + finished_at: 1693492204000000000 + git: + commit_sha: 99edc9350f2cc9b250b69abddab733dd55e1a601 + repository_url: https://github.com/organization/payment-service + name: Payment gateway API rate limit exceeded + services: + - payment-service + severity: SEV-2 + started_at: 1693492174000000000 + team: payments + version: v1.8.3 + id: 4242fcdd31586087 + type: dora_failure + schema: + $ref: '#/components/schemas/DORAListResponse' description: OK '400': content: @@ -68192,8 +68091,28 @@ paths: '200': content: application/json: - schema: - $ref: '#/components/schemas/DORAFailureFetchResponse' + example: + data: + attributes: + custom_tags: + - language:java + - department:engineering + - region:us-east-1 + env: staging + finished_at: 1693491984000000000 + git: + commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588 + repository_url: https://github.com/organization/example-repository + name: Web server is down; all requests are failing. + services: + - shopist + severity: High + started_at: 1693491974000000000 + team: backend + id: 4242fcdd31586085 + type: dora_failure + schema: + $ref: '#/components/schemas/DORAFetchResponse' description: OK '400': content: diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 94cccd52c2b2..022391df7878 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -1985,27 +1985,21 @@ def overrides "v2.domain_allowlist_response_data" => "DomainAllowlistResponseData", "v2.domain_allowlist_response_data_attributes" => "DomainAllowlistResponseDataAttributes", "v2.domain_allowlist_type" => "DomainAllowlistType", - "v2.dora_deployment_fetch_response" => "DORADeploymentFetchResponse", - "v2.dora_deployment_object" => "DORADeploymentObject", - "v2.dora_deployment_object_attributes" => "DORADeploymentObjectAttributes", "v2.dora_deployment_request" => "DORADeploymentRequest", "v2.dora_deployment_request_attributes" => "DORADeploymentRequestAttributes", "v2.dora_deployment_request_data" => "DORADeploymentRequestData", "v2.dora_deployment_response" => "DORADeploymentResponse", "v2.dora_deployment_response_data" => "DORADeploymentResponseData", - "v2.dora_deployments_list_response" => "DORADeploymentsListResponse", "v2.dora_deployment_type" => "DORADeploymentType", - "v2.dora_failure_fetch_response" => "DORAFailureFetchResponse", + "v2.dora_event" => "DORAEvent", "v2.dora_failure_request" => "DORAFailureRequest", "v2.dora_failure_request_attributes" => "DORAFailureRequestAttributes", "v2.dora_failure_request_data" => "DORAFailureRequestData", "v2.dora_failure_response" => "DORAFailureResponse", "v2.dora_failure_response_data" => "DORAFailureResponseData", - "v2.dora_failures_list_response" => "DORAFailuresListResponse", "v2.dora_failure_type" => "DORAFailureType", + "v2.dora_fetch_response" => "DORAFetchResponse", "v2.dora_git_info" => "DORAGitInfo", - "v2.dora_incident_object" => "DORAIncidentObject", - "v2.dora_incident_object_attributes" => "DORAIncidentObjectAttributes", "v2.dora_list_deployments_request" => "DORAListDeploymentsRequest", "v2.dora_list_deployments_request_attributes" => "DORAListDeploymentsRequestAttributes", "v2.dora_list_deployments_request_data" => "DORAListDeploymentsRequestData", @@ -2014,6 +2008,7 @@ def overrides "v2.dora_list_failures_request_attributes" => "DORAListFailuresRequestAttributes", "v2.dora_list_failures_request_data" => "DORAListFailuresRequestData", "v2.dora_list_failures_request_data_type" => "DORAListFailuresRequestDataType", + "v2.dora_list_response" => "DORAListResponse", "v2.downtime_create_request" => "DowntimeCreateRequest", "v2.downtime_create_request_attributes" => "DowntimeCreateRequestAttributes", "v2.downtime_create_request_data" => "DowntimeCreateRequestData", 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 16a7abfc69b6..0a5d584c5569 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -154,7 +154,7 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution" end # verify enum value - allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'llm_observability_usage', 'llm_spans_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'network_device_wireless_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'product_analytics_session_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'published_app', 'rum_browser_mobile_sessions_usage', 'rum_ingested_usage', 'rum_investigate_usage', 'rum_replay_sessions_usage', 'rum_session_replay_add_on_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage'] + allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'flex_stored_logs', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'llm_observability_usage', 'llm_spans_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'network_device_wireless_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'product_analytics_session_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'published_app', 'rum_browser_mobile_sessions_usage', 'rum_ingested_usage', 'rum_investigate_usage', 'rum_replay_sessions_usage', 'rum_session_replay_add_on_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage'] if @api_client.config.client_side_validation && !allowable_values.include?(usage_type) fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}" end @@ -480,7 +480,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution" end # verify enum value - allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'] + allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_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 @@ -488,7 +488,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) 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_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'] + allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_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 diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb index d7272a2a06e2..37ee3d8a26ba 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb @@ -55,6 +55,7 @@ class HourlyUsageAttributionUsageType ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze FARGATE_USAGE = "fargate_usage".freeze + FLEX_STORED_LOGS = "flex_stored_logs".freeze FUNCTIONS_USAGE = "functions_usage".freeze INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze INDEXED_SPANS_USAGE = "indexed_spans_usage".freeze diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb index 5a4e715b6d53..27ac30eb43a9 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb @@ -77,6 +77,8 @@ class MonthlyUsageAttributionSupportedMetrics ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze FARGATE_USAGE = "fargate_usage".freeze FARGATE_PERCENTAGE = "fargate_percentage".freeze + FLEX_STORED_LOGS_USAGE = "flex_stored_logs_usage".freeze + FLEX_STORED_LOGS_PERCENTAGE = "flex_stored_logs_percentage".freeze FUNCTIONS_USAGE = "functions_usage".freeze FUNCTIONS_PERCENTAGE = "functions_percentage".freeze INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb index ba780b1b2db2..9894010058a8 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb @@ -202,6 +202,12 @@ class MonthlyUsageAttributionValues # The Fargate usage by tags. attr_accessor :fargate_usage + # The percentage of Flex Stored Logs usage by tags. + attr_accessor :flex_stored_logs_percentage + + # The Flex Stored Logs usage by tags. + attr_accessor :flex_stored_logs_usage + # The percentage of Lambda function usage by tag(s). attr_accessor :functions_percentage @@ -550,6 +556,8 @@ def self.attribute_map :'estimated_ingested_spans_usage' => :'estimated_ingested_spans_usage', :'fargate_percentage' => :'fargate_percentage', :'fargate_usage' => :'fargate_usage', + :'flex_stored_logs_percentage' => :'flex_stored_logs_percentage', + :'flex_stored_logs_usage' => :'flex_stored_logs_usage', :'functions_percentage' => :'functions_percentage', :'functions_usage' => :'functions_usage', :'incident_management_monthly_active_users_percentage' => :'incident_management_monthly_active_users_percentage', @@ -711,6 +719,8 @@ def self.openapi_types :'estimated_ingested_spans_usage' => :'Float', :'fargate_percentage' => :'Float', :'fargate_usage' => :'Float', + :'flex_stored_logs_percentage' => :'Float', + :'flex_stored_logs_usage' => :'Float', :'functions_percentage' => :'Float', :'functions_usage' => :'Float', :'incident_management_monthly_active_users_percentage' => :'Float', @@ -1066,6 +1076,14 @@ def initialize(attributes = {}) self.fargate_usage = attributes[:'fargate_usage'] end + if attributes.key?(:'flex_stored_logs_percentage') + self.flex_stored_logs_percentage = attributes[:'flex_stored_logs_percentage'] + end + + if attributes.key?(:'flex_stored_logs_usage') + self.flex_stored_logs_usage = attributes[:'flex_stored_logs_usage'] + end + if attributes.key?(:'functions_percentage') self.functions_percentage = attributes[:'functions_percentage'] end @@ -1529,6 +1547,8 @@ def ==(o) estimated_ingested_spans_usage == o.estimated_ingested_spans_usage && fargate_percentage == o.fargate_percentage && fargate_usage == o.fargate_usage && + flex_stored_logs_percentage == o.flex_stored_logs_percentage && + flex_stored_logs_usage == o.flex_stored_logs_usage && functions_percentage == o.functions_percentage && functions_usage == o.functions_usage && incident_management_monthly_active_users_percentage == o.incident_management_monthly_active_users_percentage && @@ -1630,7 +1650,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, browser_percentage, browser_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, code_security_host_percentage, code_security_host_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_fargate_task_percentage, cws_fargate_task_usage, cws_hosts_percentage, cws_hosts_usage, data_jobs_monitoring_usage, data_stream_monitoring_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, incident_management_monthly_active_users_percentage, incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, llm_observability_percentage, llm_observability_usage, llm_spans_percentage, llm_spans_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_1day_percentage, logs_indexed_1day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, network_device_wireless_percentage, network_device_wireless_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, online_archive_percentage, online_archive_usage, product_analytics_session_percentage, product_analytics_session_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, published_app_percentage, published_app_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_ingested_percentage, rum_ingested_usage, rum_investigate_percentage, rum_investigate_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, rum_session_replay_add_on_percentage, rum_session_replay_add_on_usage, sca_fargate_percentage, sca_fargate_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, siem_analyzed_logs_add_on_percentage, siem_analyzed_logs_add_on_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage, additional_properties].hash + [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, browser_percentage, browser_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, code_security_host_percentage, code_security_host_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_fargate_task_percentage, cws_fargate_task_usage, cws_hosts_percentage, cws_hosts_usage, data_jobs_monitoring_usage, data_stream_monitoring_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, flex_stored_logs_percentage, flex_stored_logs_usage, functions_percentage, functions_usage, incident_management_monthly_active_users_percentage, incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, llm_observability_percentage, llm_observability_usage, llm_spans_percentage, llm_spans_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_1day_percentage, logs_indexed_1day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, network_device_wireless_percentage, network_device_wireless_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, online_archive_percentage, online_archive_usage, product_analytics_session_percentage, product_analytics_session_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, published_app_percentage, published_app_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_ingested_percentage, rum_ingested_usage, rum_investigate_percentage, rum_investigate_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, rum_session_replay_add_on_percentage, rum_session_replay_add_on_usage, sca_fargate_percentage, sca_fargate_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_percentage, serverless_apps_usage, siem_analyzed_logs_add_on_percentage, siem_analyzed_logs_add_on_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/api/dora_metrics_api.rb b/lib/datadog_api_client/v2/api/dora_metrics_api.rb index 7ca71f17eae0..6f96bce600cb 100644 --- a/lib/datadog_api_client/v2/api/dora_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/dora_metrics_api.rb @@ -386,7 +386,7 @@ def get_dora_deployment(deployment_id, opts = {}) # # @param deployment_id [String] The ID of the deployment event. # @param opts [Hash] the optional parameters - # @return [Array<(DORADeploymentFetchResponse, Integer, Hash)>] DORADeploymentFetchResponse data, response status code and response headers + # @return [Array<(DORAFetchResponse, Integer, Hash)>] DORAFetchResponse data, response status code and response headers def get_dora_deployment_with_http_info(deployment_id, opts = {}) if @api_client.config.debugging @@ -414,7 +414,7 @@ def get_dora_deployment_with_http_info(deployment_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DORADeploymentFetchResponse' + return_type = opts[:debug_return_type] || 'DORAFetchResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] @@ -451,7 +451,7 @@ def get_dora_failure(failure_id, opts = {}) # # @param failure_id [String] The ID of the failure event. # @param opts [Hash] the optional parameters - # @return [Array<(DORAFailureFetchResponse, Integer, Hash)>] DORAFailureFetchResponse data, response status code and response headers + # @return [Array<(DORAFetchResponse, Integer, Hash)>] DORAFetchResponse data, response status code and response headers def get_dora_failure_with_http_info(failure_id, opts = {}) if @api_client.config.debugging @@ -479,7 +479,7 @@ def get_dora_failure_with_http_info(failure_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'DORAFailureFetchResponse' + return_type = opts[:debug_return_type] || 'DORAFetchResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] @@ -516,7 +516,7 @@ def list_dora_deployments(body, opts = {}) # # @param body [DORAListDeploymentsRequest] # @param opts [Hash] the optional parameters - # @return [Array<(DORADeploymentsListResponse, Integer, Hash)>] DORADeploymentsListResponse data, response status code and response headers + # @return [Array<(DORAListResponse, Integer, Hash)>] DORAListResponse data, response status code and response headers def list_dora_deployments_with_http_info(body, opts = {}) if @api_client.config.debugging @@ -546,7 +546,7 @@ def list_dora_deployments_with_http_info(body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type - return_type = opts[:debug_return_type] || 'DORADeploymentsListResponse' + return_type = opts[:debug_return_type] || 'DORAListResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] @@ -583,7 +583,7 @@ def list_dora_failures(body, opts = {}) # # @param body [DORAListFailuresRequest] # @param opts [Hash] the optional parameters - # @return [Array<(DORAFailuresListResponse, Integer, Hash)>] DORAFailuresListResponse data, response status code and response headers + # @return [Array<(DORAListResponse, Integer, Hash)>] DORAListResponse data, response status code and response headers def list_dora_failures_with_http_info(body, opts = {}) if @api_client.config.debugging @@ -613,7 +613,7 @@ def list_dora_failures_with_http_info(body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type - return_type = opts[:debug_return_type] || 'DORAFailuresListResponse' + return_type = opts[:debug_return_type] || 'DORAListResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] diff --git a/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb b/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb deleted file mode 100644 index ed9c4746fa13..000000000000 --- a/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb +++ /dev/null @@ -1,105 +0,0 @@ -=begin -#Datadog API V2 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::V2 - # Response for fetching a single deployment event. - class DORADeploymentFetchResponse - include BaseGenericModel - - # A DORA deployment event. - attr_accessor :data - - attr_accessor :additional_properties - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'data' => :'data' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'data' => :'DORADeploymentObject' - } - 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::V2::DORADeploymentFetchResponse` initialize method" - end - - self.additional_properties = {} - # 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)) - self.additional_properties[k.to_sym] = v - else - h[k.to_sym] = v - end - } - - if attributes.key?(:'data') - self.data = attributes[:'data'] - end - end - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - 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 && - data == o.data && - additional_properties == o.additional_properties - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [data, additional_properties].hash - end - end -end diff --git a/lib/datadog_api_client/v2/models/dora_deployment_object.rb b/lib/datadog_api_client/v2/models/dora_deployment_object.rb deleted file mode 100644 index 1cd916ae4ec5..000000000000 --- a/lib/datadog_api_client/v2/models/dora_deployment_object.rb +++ /dev/null @@ -1,125 +0,0 @@ -=begin -#Datadog API V2 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::V2 - # A DORA deployment event. - class DORADeploymentObject - include BaseGenericModel - - # The attributes of the deployment event. - attr_accessor :attributes - - # The ID of the deployment event. - attr_accessor :id - - # JSON:API type for DORA deployment events. - attr_accessor :type - - attr_accessor :additional_properties - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'attributes' => :'attributes', - :'id' => :'id', - :'type' => :'type' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'attributes' => :'DORADeploymentObjectAttributes', - :'id' => :'String', - :'type' => :'DORADeploymentType' - } - 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::V2::DORADeploymentObject` initialize method" - end - - self.additional_properties = {} - # 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)) - self.additional_properties[k.to_sym] = v - else - h[k.to_sym] = v - end - } - - if attributes.key?(:'attributes') - self.attributes = attributes[:'attributes'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - end - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - 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 && - attributes == o.attributes && - id == o.id && - type == o.type && - additional_properties == o.additional_properties - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [attributes, id, type, additional_properties].hash - end - end -end diff --git a/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb b/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb deleted file mode 100644 index 4f9e8f9d2e34..000000000000 --- a/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb +++ /dev/null @@ -1,225 +0,0 @@ -=begin -#Datadog API V2 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::V2 - # The attributes of the deployment event. - class DORADeploymentObjectAttributes - include BaseGenericModel - - # A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event. - attr_accessor :custom_tags - - # Environment name to where the service was deployed. - attr_accessor :env - - # Unix timestamp when the deployment finished. - attr_reader :finished_at - - # Git info for DORA Metrics events. - attr_accessor :git - - # Service name. - attr_reader :service - - # Unix timestamp when the deployment started. - attr_reader :started_at - - # Name of the team owning the deployed service. - attr_accessor :team - - # Version to correlate with APM Deployment Tracking. - attr_accessor :version - - attr_accessor :additional_properties - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'custom_tags' => :'custom_tags', - :'env' => :'env', - :'finished_at' => :'finished_at', - :'git' => :'git', - :'service' => :'service', - :'started_at' => :'started_at', - :'team' => :'team', - :'version' => :'version' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'custom_tags' => :'Array', - :'env' => :'String', - :'finished_at' => :'Integer', - :'git' => :'DORAGitInfo', - :'service' => :'String', - :'started_at' => :'Integer', - :'team' => :'String', - :'version' => :'String' - } - end - - # List of attributes with nullable: true - # @!visibility private - def self.openapi_nullable - Set.new([ - :'custom_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::V2::DORADeploymentObjectAttributes` initialize method" - end - - self.additional_properties = {} - # 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)) - self.additional_properties[k.to_sym] = v - else - h[k.to_sym] = v - end - } - - if attributes.key?(:'custom_tags') - if (value = attributes[:'custom_tags']).is_a?(Array) - self.custom_tags = value - end - end - - if attributes.key?(:'env') - self.env = attributes[:'env'] - end - - if attributes.key?(:'finished_at') - self.finished_at = attributes[:'finished_at'] - end - - if attributes.key?(:'git') - self.git = attributes[:'git'] - end - - if attributes.key?(:'service') - self.service = attributes[:'service'] - end - - if attributes.key?(:'started_at') - self.started_at = attributes[:'started_at'] - end - - if attributes.key?(:'team') - self.team = attributes[:'team'] - end - - if attributes.key?(:'version') - self.version = attributes[:'version'] - end - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - # @!visibility private - def valid? - return false if @finished_at.nil? - return false if @service.nil? - return false if @started_at.nil? - true - end - - # Custom attribute writer method with validation - # @param finished_at [Object] Object to be assigned - # @!visibility private - def finished_at=(finished_at) - if finished_at.nil? - fail ArgumentError, 'invalid value for "finished_at", finished_at cannot be nil.' - end - @finished_at = finished_at - end - - # Custom attribute writer method with validation - # @param service [Object] Object to be assigned - # @!visibility private - def service=(service) - if service.nil? - fail ArgumentError, 'invalid value for "service", service cannot be nil.' - end - @service = service - end - - # Custom attribute writer method with validation - # @param started_at [Object] Object to be assigned - # @!visibility private - def started_at=(started_at) - if started_at.nil? - fail ArgumentError, 'invalid value for "started_at", started_at cannot be nil.' - end - @started_at = started_at - end - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - 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 && - custom_tags == o.custom_tags && - env == o.env && - finished_at == o.finished_at && - git == o.git && - service == o.service && - started_at == o.started_at && - team == o.team && - version == o.version && - additional_properties == o.additional_properties - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [custom_tags, env, finished_at, git, service, started_at, team, version, additional_properties].hash - end - end -end diff --git a/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb b/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb deleted file mode 100644 index 785902c3d546..000000000000 --- a/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb +++ /dev/null @@ -1,107 +0,0 @@ -=begin -#Datadog API V2 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::V2 - # Response for the list deployments endpoint. - class DORADeploymentsListResponse - include BaseGenericModel - - # The list of DORA deployment events. - attr_accessor :data - - attr_accessor :additional_properties - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'data' => :'data' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'data' => :'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::V2::DORADeploymentsListResponse` initialize method" - end - - self.additional_properties = {} - # 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)) - self.additional_properties[k.to_sym] = v - else - h[k.to_sym] = v - end - } - - if attributes.key?(:'data') - if (value = attributes[:'data']).is_a?(Array) - self.data = value - end - end - end - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - 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 && - data == o.data && - additional_properties == o.additional_properties - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [data, additional_properties].hash - end - end -end diff --git a/lib/datadog_api_client/v2/models/dora_incident_object.rb b/lib/datadog_api_client/v2/models/dora_event.rb similarity index 90% rename from lib/datadog_api_client/v2/models/dora_incident_object.rb rename to lib/datadog_api_client/v2/models/dora_event.rb index a3ab762d30c2..aa3b5d53c047 100644 --- a/lib/datadog_api_client/v2/models/dora_incident_object.rb +++ b/lib/datadog_api_client/v2/models/dora_event.rb @@ -17,17 +17,17 @@ require 'time' module DatadogAPIClient::V2 - # A DORA incident event. - class DORAIncidentObject + # A DORA event. + class DORAEvent include BaseGenericModel - # The attributes of the incident event. + # The attributes of the event. attr_accessor :attributes - # The ID of the incident event. + # The ID of the event. attr_accessor :id - # JSON:API type for DORA failure events. + # The type of the event. attr_accessor :type attr_accessor :additional_properties @@ -46,9 +46,9 @@ def self.attribute_map # @!visibility private def self.openapi_types { - :'attributes' => :'DORAIncidentObjectAttributes', + :'attributes' => :'Object', :'id' => :'String', - :'type' => :'DORAFailureType' + :'type' => :'String' } end @@ -57,7 +57,7 @@ def self.openapi_types # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAIncidentObject` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAEvent` initialize method" end self.additional_properties = {} diff --git a/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb b/lib/datadog_api_client/v2/models/dora_fetch_response.rb similarity index 92% rename from lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb rename to lib/datadog_api_client/v2/models/dora_fetch_response.rb index 5fb7e9a1693c..72f97bd00e9f 100644 --- a/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +++ b/lib/datadog_api_client/v2/models/dora_fetch_response.rb @@ -17,11 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # Response for fetching a single failure event. - class DORAFailureFetchResponse + # Response for the DORA fetch endpoints. + class DORAFetchResponse include BaseGenericModel - # A DORA incident event. + # A DORA event. attr_accessor :data attr_accessor :additional_properties @@ -38,7 +38,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { - :'data' => :'DORAIncidentObject' + :'data' => :'DORAEvent' } end @@ -47,7 +47,7 @@ def self.openapi_types # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFailureFetchResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFetchResponse` initialize method" end self.additional_properties = {} diff --git a/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb b/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb deleted file mode 100644 index 9a3294c34d22..000000000000 --- a/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +++ /dev/null @@ -1,225 +0,0 @@ -=begin -#Datadog API V2 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::V2 - # The attributes of the incident event. - class DORAIncidentObjectAttributes - include BaseGenericModel - - # A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event. - attr_accessor :custom_tags - - # Environment name that was impacted by the incident. - attr_accessor :env - - # Unix timestamp when the incident finished. - attr_accessor :finished_at - - # Git info for DORA Metrics events. - attr_accessor :git - - # Incident name. - attr_accessor :name - - # Service names impacted by the incident. - attr_accessor :services - - # Incident severity. - attr_accessor :severity - - # Unix timestamp when the incident started. - attr_reader :started_at - - # Name of the team owning the services impacted. - attr_accessor :team - - # Version to correlate with APM Deployment Tracking. - attr_accessor :version - - attr_accessor :additional_properties - - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - :'custom_tags' => :'custom_tags', - :'env' => :'env', - :'finished_at' => :'finished_at', - :'git' => :'git', - :'name' => :'name', - :'services' => :'services', - :'severity' => :'severity', - :'started_at' => :'started_at', - :'team' => :'team', - :'version' => :'version' - } - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - :'custom_tags' => :'Array', - :'env' => :'String', - :'finished_at' => :'Integer', - :'git' => :'DORAGitInfo', - :'name' => :'String', - :'services' => :'Array', - :'severity' => :'String', - :'started_at' => :'Integer', - :'team' => :'String', - :'version' => :'String' - } - end - - # List of attributes with nullable: true - # @!visibility private - def self.openapi_nullable - Set.new([ - :'custom_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::V2::DORAIncidentObjectAttributes` initialize method" - end - - self.additional_properties = {} - # 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)) - self.additional_properties[k.to_sym] = v - else - h[k.to_sym] = v - end - } - - if attributes.key?(:'custom_tags') - if (value = attributes[:'custom_tags']).is_a?(Array) - self.custom_tags = value - end - end - - if attributes.key?(:'env') - self.env = attributes[:'env'] - end - - if attributes.key?(:'finished_at') - self.finished_at = attributes[:'finished_at'] - end - - if attributes.key?(:'git') - self.git = attributes[:'git'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'services') - if (value = attributes[:'services']).is_a?(Array) - self.services = value - end - end - - if attributes.key?(:'severity') - self.severity = attributes[:'severity'] - end - - if attributes.key?(:'started_at') - self.started_at = attributes[:'started_at'] - end - - if attributes.key?(:'team') - self.team = attributes[:'team'] - end - - if attributes.key?(:'version') - self.version = attributes[:'version'] - end - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - # @!visibility private - def valid? - return false if @started_at.nil? - true - end - - # Custom attribute writer method with validation - # @param started_at [Object] Object to be assigned - # @!visibility private - def started_at=(started_at) - if started_at.nil? - fail ArgumentError, 'invalid value for "started_at", started_at cannot be nil.' - end - @started_at = started_at - end - - # Returns the object in the form of hash, with additionalProperties support. - # @return [Hash] Returns the object in the form of hash - # @!visibility private - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - self.additional_properties.each_pair do |attr, value| - hash[attr] = value - end - hash - 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 && - custom_tags == o.custom_tags && - env == o.env && - finished_at == o.finished_at && - git == o.git && - name == o.name && - services == o.services && - severity == o.severity && - started_at == o.started_at && - team == o.team && - version == o.version && - additional_properties == o.additional_properties - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [custom_tags, env, finished_at, git, name, services, severity, started_at, team, version, additional_properties].hash - end - end -end diff --git a/lib/datadog_api_client/v2/models/dora_failures_list_response.rb b/lib/datadog_api_client/v2/models/dora_list_response.rb similarity index 91% rename from lib/datadog_api_client/v2/models/dora_failures_list_response.rb rename to lib/datadog_api_client/v2/models/dora_list_response.rb index dba0b4db3ca0..e4ae63e25eda 100644 --- a/lib/datadog_api_client/v2/models/dora_failures_list_response.rb +++ b/lib/datadog_api_client/v2/models/dora_list_response.rb @@ -17,11 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # Response for the list failures endpoint. - class DORAFailuresListResponse + # Response for the DORA list endpoints. + class DORAListResponse include BaseGenericModel - # The list of DORA incident events. + # The list of DORA events. attr_accessor :data attr_accessor :additional_properties @@ -38,7 +38,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { - :'data' => :'Array' + :'data' => :'Array' } end @@ -47,7 +47,7 @@ def self.openapi_types # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFailuresListResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAListResponse` initialize method" end self.additional_properties = {}