From 2ae5e040a58498183cf4b8fdacaf21764f754081 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 12 Nov 2021 14:35:54 +0000 Subject: [PATCH] Regenerate client from commit 0b74d09 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v1/openapi.yaml | 198 +++++++++++- docs/v1/README.md | 3 + docs/v1/UsageMeteringAPI.md | 64 ++++ docs/v1/UsageRumUnitsHour.md | 32 ++ docs/v1/UsageRumUnitsResponse.md | 18 ++ docs/v1/UsageSummaryDate.md | 12 + docs/v1/UsageSummaryDateOrg.md | 20 +- docs/v1/UsageSummaryResponse.md | 12 + features/v1/undo.json | 6 + features/v1/usage_metering.feature | 12 + lib/datadog_api_client/v1.rb | 2 + .../v1/api/usage_metering_api.rb | 77 +++++ .../v1/models/usage_rum_units_hour.rb | 304 ++++++++++++++++++ .../v1/models/usage_rum_units_response.rb | 235 ++++++++++++++ .../v1/models/usage_summary_date.rb | 62 +++- .../v1/models/usage_summary_date_org.rb | 70 +++- .../v1/models/usage_summary_response.rb | 62 +++- spec/v1/models/usage_rum_units_hour_spec.rb | 79 +++++ .../models/usage_rum_units_response_spec.rb | 37 +++ 20 files changed, 1293 insertions(+), 20 deletions(-) create mode 100644 docs/v1/UsageRumUnitsHour.md create mode 100644 docs/v1/UsageRumUnitsResponse.md create mode 100644 lib/datadog_api_client/v1/models/usage_rum_units_hour.rb create mode 100644 lib/datadog_api_client/v1/models/usage_rum_units_response.rb create mode 100644 spec/v1/models/usage_rum_units_hour_spec.rb create mode 100644 spec/v1/models/usage_rum_units_response_spec.rb diff --git a/.apigentools-info b/.apigentools-info index c96491950e1e..69d0a4ec398a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-11-12 11:37:07.613790", - "spec_repo_commit": "fabbc01" + "regenerated": "2021-11-12 14:35:21.361604", + "spec_repo_commit": "0b74d09" }, "v2": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-11-12 11:37:07.645024", - "spec_repo_commit": "fabbc01" + "regenerated": "2021-11-12 14:35:21.389942", + "spec_repo_commit": "0b74d09" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 37a3d7cad3bd..f1ccb9f90bc7 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -12824,6 +12824,52 @@ components: $ref: '#/components/schemas/UsageRumSessionsHour' type: array type: object + UsageRumUnitsHour: + description: Number of RUM Units used for each hour for a given organization + (data available as of November 1, 2021). + properties: + browser_rum_lite_session_count: + description: Number of browser RUM lite sessions. + format: int64 + type: integer + browser_rum_replay_session_count: + description: Number of browser RUM replay sessions. + format: int64 + type: integer + browser_rum_units: + description: The number of browser RUM units. + format: int64 + type: integer + mobile_rum_lite_session_count: + description: Number of mobile RUM lite sessions. + format: int64 + type: integer + mobile_rum_units: + description: The number of mobile RUM units. + format: int64 + type: integer + org_name: + description: The organization name. + type: string + public_id: + description: The organization public ID. + type: string + rum_units: + description: Total RUM units across mobile and browser RUM. + format: int64 + nullable: true + type: integer + type: object + UsageRumUnitsResponse: + description: Response containing the number of RUM Units for each hour for a + given organization. + properties: + usage: + description: Get hourly usage for RUM Units. + items: + $ref: '#/components/schemas/UsageRumUnitsHour' + type: array + type: object UsageSDSHour: description: Sensitive Data Scanner usage for a given organization for a given hour. @@ -13010,6 +13056,21 @@ components: current date for all organizations. format: int64 type: integer + browser_rum_lite_session_count_sum: + description: Shows the sum of all browser lite sessions over all hours in + the current date for all organizations. + format: int64 + type: integer + browser_rum_replay_session_count_sum: + description: Shows the sum of all browser replay sessions over all hours + in the current date for all organizations. + format: int64 + type: integer + browser_rum_units_sum: + description: Shows the sum of all browser RUM units over all hours in the + current date for all organizations. + format: int64 + type: integer container_avg: description: Shows the average of all distinct containers over all hours in the current date for all organizations. @@ -13114,6 +13175,11 @@ components: in the current date all organizations. format: int64 type: integer + mobile_rum_lite_session_count_sum: + description: Shows the sum of all mobile lite sessions over all hours in + the current date for all organizations. + format: int64 + type: integer mobile_rum_session_count_android_sum: description: Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. @@ -13129,6 +13195,11 @@ components: the current date for all organizations format: int64 type: integer + mobile_rum_units_sum: + description: Shows the sum of all mobile RUM units over all hours in the + current date for all organizations. + format: int64 + type: integer netflow_indexed_events_count_sum: description: Shows the sum of all Network flows indexed over all hours in the current date for all organizations. @@ -13165,6 +13236,11 @@ components: hours in the current date for all organizations. format: int64 type: integer + rum_units_sum: + description: Shows the sum of all browser and mobile RUM units over all + hours in the current date for all organizations. + format: int64 + type: integer sds_logs_scanned_bytes_sum: description: Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. @@ -13251,6 +13327,21 @@ components: current date for the given org. format: int64 type: integer + browser_rum_lite_session_count_sum: + description: Shows the sum of all browser lite sessions over all hours in + the current date for the given org. + format: int64 + type: integer + browser_rum_replay_session_count_sum: + description: Shows the sum of all browser replay sessions over all hours + in the current date for the given org. + format: int64 + type: integer + browser_rum_units_sum: + description: Shows the sum of all browser RUM units over all hours in the + current date for the given org. + format: int64 + type: integer container_avg: description: Shows the average of all distinct containers over all hours in the current date for the given org. @@ -13293,12 +13384,12 @@ components: type: integer dbm_host_top99p_sum: description: Shows the 99th percentile of all Database Monitoring hosts - over all hours in the current month for all organizations. + over all hours in the current month for the given org. format: int64 type: integer dbm_queries_avg_sum: description: Shows the average of all distinct Database Monitoring normalized - queries over all hours in the current month for all organizations. + queries over all hours in the current month for the given org. format: int64 type: integer fargate_tasks_count_avg: @@ -13353,6 +13444,11 @@ components: in the current date for the given org. format: int64 type: integer + mobile_rum_lite_session_count_sum: + description: Shows the sum of all mobile lite sessions over all hours in + the current date for the given org. + format: int64 + type: integer mobile_rum_session_count_android_sum: description: Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. @@ -13368,6 +13464,11 @@ components: the current date for the given org. format: int64 type: integer + mobile_rum_units_sum: + description: Shows the sum of all mobile RUM units over all hours in the + current date for the given org. + format: int64 + type: integer name: description: The organization name. type: string @@ -13405,15 +13506,20 @@ components: hours in the current date for the given org. format: int64 type: integer + rum_units_sum: + description: Shows the sum of all browser and mobile RUM units over all + hours in the current date for the given org. + format: int64 + type: integer sds_logs_scanned_bytes_sum: description: Shows the sum of all bytes scanned of logs usage by the Sensitive - Data Scanner over all hours in the current month for all organizations. + Data Scanner over all hours in the current month for the given org. format: int64 type: integer sds_total_scanned_bytes_sum: description: Shows the sum of all bytes scanned across all usage types by - the Sensitive Data Scanner over all hours in the current month for all - organizations. + the Sensitive Data Scanner over all hours in the current month for the + given org. format: int64 type: integer synthetics_browser_check_calls_count_sum: @@ -13496,6 +13602,21 @@ components: current months for all organizations. format: int64 type: integer + browser_rum_lite_session_count_agg_sum: + description: Shows the sum of all browser lite sessions over all hours in + the current months for all organizations. + format: int64 + type: integer + browser_rum_replay_session_count_agg_sum: + description: Shows the sum of all browser replay sessions over all hours + in the current months for all organizations. + format: int64 + type: integer + browser_rum_units_agg_sum: + description: Shows the sum of all browser RUM units over all hours in the + current months for all organizations. + format: int64 + type: integer container_avg_sum: description: Shows the average of all distinct containers over all hours in the current months for all organizations. @@ -13621,6 +13742,11 @@ components: type: integer logs_by_retention: $ref: '#/components/schemas/LogsByRetention' + mobile_rum_lite_session_count_agg_sum: + description: Shows the sum of all mobile lite sessions over all hours in + the current months for all organizations. + format: int64 + type: integer mobile_rum_session_count_agg_sum: description: Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. @@ -13636,6 +13762,11 @@ components: in the current months for all organizations. format: int64 type: integer + mobile_rum_units_agg_sum: + description: Shows the sum of all mobile RUM units over all hours in the + current months for all organizations. + format: int64 + type: integer netflow_indexed_events_count_agg_sum: description: Shows the sum of all Network flows indexed over all hours in the current months for all organizations. @@ -13684,6 +13815,11 @@ components: hours in the current months for all organizations. format: int64 type: integer + rum_units_agg_sum: + description: Shows the sum of all browser and mobile RUM units over all + hours in the current months for all organizations. + format: int64 + type: integer sds_logs_scanned_bytes_sum: description: Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. @@ -24256,6 +24392,58 @@ paths: x-menu-order: 24 x-undo: type: safe + /api/v1/usage/rum: + get: + description: Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) + Units. + operationId: GetUsageRumUnits + parameters: + - description: 'Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] + for usage beginning at this hour.' + in: query + name: start_hr + required: true + schema: + format: date-time + type: string + - description: 'Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] + for usage ending **before** this hour.' + in: query + name: end_hr + required: false + schema: + format: date-time + type: string + responses: + '200': + content: + application/json;datetime-format=rfc3339: + schema: + $ref: '#/components/schemas/UsageRumUnitsResponse' + description: OK + '400': + content: + application/json;datetime-format=rfc3339: + schema: + $ref: '#/components/schemas/APIErrorResponse' + description: Bad Request + '403': + content: + application/json;datetime-format=rfc3339: + schema: + $ref: '#/components/schemas/APIErrorResponse' + description: Forbidden - User is not authorized + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read + summary: Get hourly usage for RUM Units + tags: + - Usage Metering + x-menu-order: 35 + x-undo: + type: safe /api/v1/usage/rum_sessions: get: description: Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) diff --git a/docs/v1/README.md b/docs/v1/README.md index 15e7679604af..d7503712f66a 100644 --- a/docs/v1/README.md +++ b/docs/v1/README.md @@ -214,6 +214,7 @@ All URIs are relative to *https://api.datadoghq.com* | _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_network_hosts**](UsageMeteringAPI.md#get_usage_network_hosts) | **GET** /api/v1/usage/network_hosts | Get hourly usage for Network Hosts | | _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_profiling**](UsageMeteringAPI.md#get_usage_profiling) | **GET** /api/v1/usage/profiling | Get hourly usage for profiled hosts | | _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_rum_sessions**](UsageMeteringAPI.md#get_usage_rum_sessions) | **GET** /api/v1/usage/rum_sessions | Get hourly usage for RUM Sessions | +| _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_rum_units**](UsageMeteringAPI.md#get_usage_rum_units) | **GET** /api/v1/usage/rum | Get hourly usage for RUM Units | | _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_sds**](UsageMeteringAPI.md#get_usage_sds) | **GET** /api/v1/usage/sds | Get hourly usage for Sensitive Data Scanner | | _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_snmp**](UsageMeteringAPI.md#get_usage_snmp) | **GET** /api/v1/usage/snmp | Get hourly usage for SNMP devices | | _DatadogAPIClient::V1::UsageMeteringAPI_ | [**get_usage_summary**](UsageMeteringAPI.md#get_usage_summary) | **GET** /api/v1/usage/summary | Get usage across your multi-org account | @@ -795,6 +796,8 @@ All URIs are relative to *https://api.datadoghq.com* - [DatadogAPIClient::V1::UsageReportsType](UsageReportsType.md) - [DatadogAPIClient::V1::UsageRumSessionsHour](UsageRumSessionsHour.md) - [DatadogAPIClient::V1::UsageRumSessionsResponse](UsageRumSessionsResponse.md) +- [DatadogAPIClient::V1::UsageRumUnitsHour](UsageRumUnitsHour.md) +- [DatadogAPIClient::V1::UsageRumUnitsResponse](UsageRumUnitsResponse.md) - [DatadogAPIClient::V1::UsageSDSHour](UsageSDSHour.md) - [DatadogAPIClient::V1::UsageSDSResponse](UsageSDSResponse.md) - [DatadogAPIClient::V1::UsageSNMPHour](UsageSNMPHour.md) diff --git a/docs/v1/UsageMeteringAPI.md b/docs/v1/UsageMeteringAPI.md index 3a2f7bb2a75f..40bb31f795ec 100644 --- a/docs/v1/UsageMeteringAPI.md +++ b/docs/v1/UsageMeteringAPI.md @@ -29,6 +29,7 @@ All URIs are relative to *https://api.datadoghq.com* | [**get_usage_network_hosts**](UsageMeteringAPI.md#get_usage_network_hosts) | **GET** /api/v1/usage/network_hosts | Get hourly usage for Network Hosts | | [**get_usage_profiling**](UsageMeteringAPI.md#get_usage_profiling) | **GET** /api/v1/usage/profiling | Get hourly usage for profiled hosts | | [**get_usage_rum_sessions**](UsageMeteringAPI.md#get_usage_rum_sessions) | **GET** /api/v1/usage/rum_sessions | Get hourly usage for RUM Sessions | +| [**get_usage_rum_units**](UsageMeteringAPI.md#get_usage_rum_units) | **GET** /api/v1/usage/rum | Get hourly usage for RUM Units | | [**get_usage_sds**](UsageMeteringAPI.md#get_usage_sds) | **GET** /api/v1/usage/sds | Get hourly usage for Sensitive Data Scanner | | [**get_usage_snmp**](UsageMeteringAPI.md#get_usage_snmp) | **GET** /api/v1/usage/snmp | Get hourly usage for SNMP devices | | [**get_usage_summary**](UsageMeteringAPI.md#get_usage_summary) | **GET** /api/v1/usage/summary | Get usage across your multi-org account | @@ -1648,6 +1649,69 @@ end - **Content-Type**: Not defined - **Accept**: application/json;datetime-format=rfc3339 +## get_usage_rum_units + +> get_usage_rum_units(start_hr, opts) + +Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. + +### Examples + +```ruby +require 'datadog_api_client' +api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new +start_hr = Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. +opts = { + end_hr: Time.parse('2013-10-20T19:20:30+01:00') # Time | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. +} + +begin + # Get hourly usage for RUM Units + result = api_instance.get_usage_rum_units(start_hr, opts) + p result +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling UsageMeteringAPI->get_usage_rum_units: #{e}" +end +``` + +#### Using the get_usage_rum_units_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_usage_rum_units_with_http_info(start_hr, opts) + +```ruby +begin + # Get hourly usage for RUM Units + data, status_code, headers = api_instance.get_usage_rum_units_with_http_info(start_hr, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling UsageMeteringAPI->get_usage_rum_units_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------ | -------- | --------------------------------------------------------------------------------------------------------- | ---------- | +| **start_hr** | **Time** | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. | | +| **end_hr** | **Time** | Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. | [optional] | + +### Return type + +[**UsageRumUnitsResponse**](UsageRumUnitsResponse.md) + +### Authorization + +[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json;datetime-format=rfc3339 + ## get_usage_sds > get_usage_sds(start_hr, opts) diff --git a/docs/v1/UsageRumUnitsHour.md b/docs/v1/UsageRumUnitsHour.md new file mode 100644 index 000000000000..42c6be0d8fb2 --- /dev/null +++ b/docs/v1/UsageRumUnitsHour.md @@ -0,0 +1,32 @@ +# DatadogAPIClient::V1::UsageRumUnitsHour + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **browser_rum_lite_session_count** | **Integer** | Number of browser RUM lite sessions. | [optional] | +| **browser_rum_replay_session_count** | **Integer** | Number of browser RUM replay sessions. | [optional] | +| **browser_rum_units** | **Integer** | The number of browser RUM units. | [optional] | +| **mobile_rum_lite_session_count** | **Integer** | Number of mobile RUM lite sessions. | [optional] | +| **mobile_rum_units** | **Integer** | The number of mobile RUM units. | [optional] | +| **org_name** | **String** | The organization name. | [optional] | +| **public_id** | **String** | The organization public ID. | [optional] | +| **rum_units** | **Integer** | Total RUM units across mobile and browser RUM. | [optional] | + +## Example + +```ruby +require 'datadog_api_client/v1' + +instance = DatadogAPIClient::V1::UsageRumUnitsHour.new( + browser_rum_lite_session_count: null, + browser_rum_replay_session_count: null, + browser_rum_units: null, + mobile_rum_lite_session_count: null, + mobile_rum_units: null, + org_name: null, + public_id: null, + rum_units: null +) +``` + diff --git a/docs/v1/UsageRumUnitsResponse.md b/docs/v1/UsageRumUnitsResponse.md new file mode 100644 index 000000000000..8055bac65a91 --- /dev/null +++ b/docs/v1/UsageRumUnitsResponse.md @@ -0,0 +1,18 @@ +# DatadogAPIClient::V1::UsageRumUnitsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **usage** | [**Array<UsageRumUnitsHour>**](UsageRumUnitsHour.md) | Get hourly usage for RUM Units. | [optional] | + +## Example + +```ruby +require 'datadog_api_client/v1' + +instance = DatadogAPIClient::V1::UsageRumUnitsResponse.new( + usage: null +) +``` + diff --git a/docs/v1/UsageSummaryDate.md b/docs/v1/UsageSummaryDate.md index b9d96014d64a..ac2559179c6e 100644 --- a/docs/v1/UsageSummaryDate.md +++ b/docs/v1/UsageSummaryDate.md @@ -13,6 +13,9 @@ | **aws_lambda_invocations_sum** | **Integer** | Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. | [optional] | | **azure_app_service_top99p** | **Integer** | Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. | [optional] | | **billable_ingested_bytes_sum** | **Integer** | Shows the sum of all log bytes ingested over all hours in the current date for all organizations. | [optional] | +| **browser_rum_lite_session_count_sum** | **Integer** | Shows the sum of all browser lite sessions over all hours in the current date for all organizations. | [optional] | +| **browser_rum_replay_session_count_sum** | **Integer** | Shows the sum of all browser replay sessions over all hours in the current date for all organizations. | [optional] | +| **browser_rum_units_sum** | **Integer** | Shows the sum of all browser RUM units over all hours in the current date for all organizations. | [optional] | | **container_avg** | **Integer** | Shows the average of all distinct containers over all hours in the current date for all organizations. | [optional] | | **container_hwm** | **Integer** | Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. | [optional] | | **cspm_container_avg** | **Integer** | Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. | [optional] | @@ -34,9 +37,11 @@ | **ingested_events_bytes_sum** | **Integer** | Shows the sum of all log bytes ingested over all hours in the current date for all organizations. | [optional] | | **iot_device_sum** | **Integer** | Shows the sum of all IoT devices over all hours in the current date for all organizations. | [optional] | | **iot_device_top99p** | **Integer** | Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. | [optional] | +| **mobile_rum_lite_session_count_sum** | **Integer** | Shows the sum of all mobile lite sessions over all hours in the current date for all organizations. | [optional] | | **mobile_rum_session_count_android_sum** | **Integer** | Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. | [optional] | | **mobile_rum_session_count_ios_sum** | **Integer** | Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for all organizations. | [optional] | | **mobile_rum_session_count_sum** | **Integer** | Shows the sum of all mobile RUM Sessions over all hours in the current date for all organizations | [optional] | +| **mobile_rum_units_sum** | **Integer** | Shows the sum of all mobile RUM units over all hours in the current date for all organizations. | [optional] | | **netflow_indexed_events_count_sum** | **Integer** | Shows the sum of all Network flows indexed over all hours in the current date for all organizations. | [optional] | | **npm_host_top99p** | **Integer** | Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for all organizations. | [optional] | | **opentelemetry_host_top99p** | **Integer** | Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. | [optional] | @@ -44,6 +49,7 @@ | **profiling_host_top99p** | **Integer** | Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. | [optional] | | **rum_session_count_sum** | **Integer** | Shows the sum of all browser RUM Sessions over all hours in the current date for all organizations | [optional] | | **rum_total_session_count_sum** | **Integer** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. | [optional] | +| **rum_units_sum** | **Integer** | Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. | [optional] | | **sds_logs_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] | | **sds_total_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] | | **synthetics_browser_check_calls_count_sum** | **Integer** | Shows the sum of all Synthetic browser tests over all hours in the current date for all organizations. | [optional] | @@ -67,6 +73,9 @@ instance = DatadogAPIClient::V1::UsageSummaryDate.new( aws_lambda_invocations_sum: null, azure_app_service_top99p: null, billable_ingested_bytes_sum: null, + browser_rum_lite_session_count_sum: null, + browser_rum_replay_session_count_sum: null, + browser_rum_units_sum: null, container_avg: null, container_hwm: null, cspm_container_avg: null, @@ -88,9 +97,11 @@ instance = DatadogAPIClient::V1::UsageSummaryDate.new( ingested_events_bytes_sum: null, iot_device_sum: null, iot_device_top99p: null, + mobile_rum_lite_session_count_sum: null, mobile_rum_session_count_android_sum: null, mobile_rum_session_count_ios_sum: null, mobile_rum_session_count_sum: null, + mobile_rum_units_sum: null, netflow_indexed_events_count_sum: null, npm_host_top99p: null, opentelemetry_host_top99p: null, @@ -98,6 +109,7 @@ instance = DatadogAPIClient::V1::UsageSummaryDate.new( profiling_host_top99p: null, rum_session_count_sum: null, rum_total_session_count_sum: null, + rum_units_sum: null, sds_logs_scanned_bytes_sum: null, sds_total_scanned_bytes_sum: null, synthetics_browser_check_calls_count_sum: null, diff --git a/docs/v1/UsageSummaryDateOrg.md b/docs/v1/UsageSummaryDateOrg.md index d1c52f2c782b..21f988a649aa 100644 --- a/docs/v1/UsageSummaryDateOrg.md +++ b/docs/v1/UsageSummaryDateOrg.md @@ -13,6 +13,9 @@ | **aws_lambda_invocations_sum** | **Integer** | Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. | [optional] | | **azure_app_service_top99p** | **Integer** | Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. | [optional] | | **billable_ingested_bytes_sum** | **Integer** | Shows the sum of all log bytes ingested over all hours in the current date for the given org. | [optional] | +| **browser_rum_lite_session_count_sum** | **Integer** | Shows the sum of all browser lite sessions over all hours in the current date for the given org. | [optional] | +| **browser_rum_replay_session_count_sum** | **Integer** | Shows the sum of all browser replay sessions over all hours in the current date for the given org. | [optional] | +| **browser_rum_units_sum** | **Integer** | Shows the sum of all browser RUM units over all hours in the current date for the given org. | [optional] | | **container_avg** | **Integer** | Shows the average of all distinct containers over all hours in the current date for the given org. | [optional] | | **container_hwm** | **Integer** | Shows the high-water mark of all distinct containers over all hours in the current date for the given org. | [optional] | | **cspm_container_avg** | **Integer** | Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. | [optional] | @@ -21,8 +24,8 @@ | **custom_ts_avg** | **Integer** | Shows the average number of distinct custom metrics over all hours in the current date for the given org. | [optional] | | **cws_container_count_avg** | **Integer** | Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. | [optional] | | **cws_host_top99p** | **Integer** | Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. | [optional] | -| **dbm_host_top99p_sum** | **Integer** | Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. | [optional] | -| **dbm_queries_avg_sum** | **Integer** | Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for all organizations. | [optional] | +| **dbm_host_top99p_sum** | **Integer** | Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. | [optional] | +| **dbm_queries_avg_sum** | **Integer** | Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. | [optional] | | **fargate_tasks_count_avg** | **Integer** | The average task count for Fargate. | [optional] | | **fargate_tasks_count_hwm** | **Integer** | Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. | [optional] | | **gcp_host_top99p** | **Integer** | Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. | [optional] | @@ -34,9 +37,11 @@ | **ingested_events_bytes_sum** | **Integer** | Shows the sum of all log bytes ingested over all hours in the current date for the given org. | [optional] | | **iot_device_agg_sum** | **Integer** | Shows the sum of all IoT devices over all hours in the current date for the given org. | [optional] | | **iot_device_top99p_sum** | **Integer** | Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. | [optional] | +| **mobile_rum_lite_session_count_sum** | **Integer** | Shows the sum of all mobile lite sessions over all hours in the current date for the given org. | [optional] | | **mobile_rum_session_count_android_sum** | **Integer** | Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. | [optional] | | **mobile_rum_session_count_ios_sum** | **Integer** | Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org. | [optional] | | **mobile_rum_session_count_sum** | **Integer** | Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. | [optional] | +| **mobile_rum_units_sum** | **Integer** | Shows the sum of all mobile RUM units over all hours in the current date for the given org. | [optional] | | **name** | **String** | The organization name. | [optional] | | **netflow_indexed_events_count_sum** | **Integer** | Shows the sum of all Network flows indexed over all hours in the current date for the given org. | [optional] | | **npm_host_top99p** | **Integer** | Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for the given org. | [optional] | @@ -45,8 +50,9 @@ | **public_id** | **String** | The organization public id. | [optional] | | **rum_session_count_sum** | **Integer** | Shows the sum of all browser RUM Sessions over all hours in the current date for the given org. | [optional] | | **rum_total_session_count_sum** | **Integer** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. | [optional] | -| **sds_logs_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] | -| **sds_total_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] | +| **rum_units_sum** | **Integer** | Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. | [optional] | +| **sds_logs_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. | [optional] | +| **sds_total_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. | [optional] | | **synthetics_browser_check_calls_count_sum** | **Integer** | Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. | [optional] | | **synthetics_check_calls_count_sum** | **Integer** | Shows the sum of all Synthetic API tests over all hours in the current date for the given org. | [optional] | | **trace_search_indexed_events_count_sum** | **Integer** | Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. | [optional] | @@ -68,6 +74,9 @@ instance = DatadogAPIClient::V1::UsageSummaryDateOrg.new( aws_lambda_invocations_sum: null, azure_app_service_top99p: null, billable_ingested_bytes_sum: null, + browser_rum_lite_session_count_sum: null, + browser_rum_replay_session_count_sum: null, + browser_rum_units_sum: null, container_avg: null, container_hwm: null, cspm_container_avg: null, @@ -89,9 +98,11 @@ instance = DatadogAPIClient::V1::UsageSummaryDateOrg.new( ingested_events_bytes_sum: null, iot_device_agg_sum: null, iot_device_top99p_sum: null, + mobile_rum_lite_session_count_sum: null, mobile_rum_session_count_android_sum: null, mobile_rum_session_count_ios_sum: null, mobile_rum_session_count_sum: null, + mobile_rum_units_sum: null, name: null, netflow_indexed_events_count_sum: null, npm_host_top99p: null, @@ -100,6 +111,7 @@ instance = DatadogAPIClient::V1::UsageSummaryDateOrg.new( public_id: null, rum_session_count_sum: null, rum_total_session_count_sum: null, + rum_units_sum: null, sds_logs_scanned_bytes_sum: null, sds_total_scanned_bytes_sum: null, synthetics_browser_check_calls_count_sum: null, diff --git a/docs/v1/UsageSummaryResponse.md b/docs/v1/UsageSummaryResponse.md index f958ed3b225e..df9942dac9b8 100644 --- a/docs/v1/UsageSummaryResponse.md +++ b/docs/v1/UsageSummaryResponse.md @@ -14,6 +14,9 @@ | **azure_app_service_top99p_sum** | **Integer** | Shows the 99th percentile of all Azure app services over all hours in the current months for all organizations. | [optional] | | **azure_host_top99p_sum** | **Integer** | Shows the 99th percentile of all Azure hosts over all hours in the current months for all organizations. | [optional] | | **billable_ingested_bytes_agg_sum** | **Integer** | Shows the sum of all log bytes ingested over all hours in the current months for all organizations. | [optional] | +| **browser_rum_lite_session_count_agg_sum** | **Integer** | Shows the sum of all browser lite sessions over all hours in the current months for all organizations. | [optional] | +| **browser_rum_replay_session_count_agg_sum** | **Integer** | Shows the sum of all browser replay sessions over all hours in the current months for all organizations. | [optional] | +| **browser_rum_units_agg_sum** | **Integer** | Shows the sum of all browser RUM units over all hours in the current months for all organizations. | [optional] | | **container_avg_sum** | **Integer** | Shows the average of all distinct containers over all hours in the current months for all organizations. | [optional] | | **container_hwm_sum** | **Integer** | Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. | [optional] | | **cspm_container_avg_sum** | **Integer** | Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations. | [optional] | @@ -39,9 +42,11 @@ | **live_indexed_events_agg_sum** | **Integer** | Shows the sum of all live logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). | [optional] | | **live_ingested_bytes_agg_sum** | **Integer** | Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). | [optional] | | **logs_by_retention** | [**LogsByRetention**](LogsByRetention.md) | | [optional] | +| **mobile_rum_lite_session_count_agg_sum** | **Integer** | Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. | [optional] | | **mobile_rum_session_count_agg_sum** | **Integer** | Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. | [optional] | | **mobile_rum_session_count_android_agg_sum** | **Integer** | Shows the sum of all mobile RUM Sessions on Android over all hours in the current months for all organizations. | [optional] | | **mobile_rum_session_count_ios_agg_sum** | **Integer** | Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations. | [optional] | +| **mobile_rum_units_agg_sum** | **Integer** | Shows the sum of all mobile RUM units over all hours in the current months for all organizations. | [optional] | | **netflow_indexed_events_count_agg_sum** | **Integer** | Shows the sum of all Network flows indexed over all hours in the current months for all organizations. | [optional] | | **npm_host_top99p_sum** | **Integer** | Shows the 99th percentile of all distinct Networks hosts over all hours in the current months for all organizations. | [optional] | | **opentelemetry_host_top99p_sum** | **Integer** | Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. | [optional] | @@ -51,6 +56,7 @@ | **rehydrated_ingested_bytes_agg_sum** | **Integer** | Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). | [optional] | | **rum_session_count_agg_sum** | **Integer** | Shows the sum of all browser RUM Sessions over all hours in the current months for all organizations. | [optional] | | **rum_total_session_count_agg_sum** | **Integer** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. | [optional] | +| **rum_units_agg_sum** | **Integer** | Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. | [optional] | | **sds_logs_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] | | **sds_total_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] | | **start_date** | **Time** | Shows the first date of usage in the current months for all organizations. | [optional] | @@ -77,6 +83,9 @@ instance = DatadogAPIClient::V1::UsageSummaryResponse.new( azure_app_service_top99p_sum: null, azure_host_top99p_sum: null, billable_ingested_bytes_agg_sum: null, + browser_rum_lite_session_count_agg_sum: null, + browser_rum_replay_session_count_agg_sum: null, + browser_rum_units_agg_sum: null, container_avg_sum: null, container_hwm_sum: null, cspm_container_avg_sum: null, @@ -102,9 +111,11 @@ instance = DatadogAPIClient::V1::UsageSummaryResponse.new( live_indexed_events_agg_sum: null, live_ingested_bytes_agg_sum: null, logs_by_retention: null, + mobile_rum_lite_session_count_agg_sum: null, mobile_rum_session_count_agg_sum: null, mobile_rum_session_count_android_agg_sum: null, mobile_rum_session_count_ios_agg_sum: null, + mobile_rum_units_agg_sum: null, netflow_indexed_events_count_agg_sum: null, npm_host_top99p_sum: null, opentelemetry_host_top99p_sum: null, @@ -114,6 +125,7 @@ instance = DatadogAPIClient::V1::UsageSummaryResponse.new( rehydrated_ingested_bytes_agg_sum: null, rum_session_count_agg_sum: null, rum_total_session_count_agg_sum: null, + rum_units_agg_sum: null, sds_logs_scanned_bytes_sum: null, sds_total_scanned_bytes_sum: null, start_date: null, diff --git a/features/v1/undo.json b/features/v1/undo.json index 3c1f0f602bd5..350be8389509 100644 --- a/features/v1/undo.json +++ b/features/v1/undo.json @@ -1267,6 +1267,12 @@ "type": "safe" } }, + "GetUsageRumUnits": { + "tag": "Usage Metering", + "undo": { + "type": "safe" + } + }, "GetUsageRumSessions": { "tag": "Usage Metering", "undo": { diff --git a/features/v1/usage_metering.feature b/features/v1/usage_metering.feature index a365fffbd761..e9c59352b4d7 100644 --- a/features/v1/usage_metering.feature +++ b/features/v1/usage_metering.feature @@ -187,6 +187,18 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK + @generated @skip + Scenario: Get hourly usage for RUM Units returns "Bad Request" response + Given new "GetUsageRumUnits" request + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip + Scenario: Get hourly usage for RUM Units returns "OK" response + Given new "GetUsageRumUnits" request + When the request is sent + Then the response status is 200 OK + @generated @skip Scenario: Get hourly usage for SNMP devices returns "Bad Request" response Given new "GetUsageSNMP" request diff --git a/lib/datadog_api_client/v1.rb b/lib/datadog_api_client/v1.rb index 03ea5d30d1ee..6c6634518994 100644 --- a/lib/datadog_api_client/v1.rb +++ b/lib/datadog_api_client/v1.rb @@ -577,6 +577,8 @@ require 'datadog_api_client/v1/models/usage_reports_type' require 'datadog_api_client/v1/models/usage_rum_sessions_hour' require 'datadog_api_client/v1/models/usage_rum_sessions_response' +require 'datadog_api_client/v1/models/usage_rum_units_hour' +require 'datadog_api_client/v1/models/usage_rum_units_response' require 'datadog_api_client/v1/models/usage_sds_hour' require 'datadog_api_client/v1/models/usage_sds_response' require 'datadog_api_client/v1/models/usage_snmp_hour' 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 dd37c697de5f..ddbd6b69b593 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -1958,6 +1958,83 @@ def get_usage_rum_sessions_with_http_info(start_hr, opts = {}) return data, status_code, headers end + # Get hourly usage for RUM Units + # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. + # @param [Hash] opts the optional parameters + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + # @return [UsageRumUnitsResponse] + def get_usage_rum_units(start_hr, opts = {}) + data, _status_code, _headers = get_usage_rum_units_with_http_info(start_hr, opts) + data + end + + # Get hourly usage for RUM Units + # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. + # @param [Hash] opts the optional parameters + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. + # @return [Array<(UsageRumUnitsResponse, Integer, Hash)>] UsageRumUnitsResponse data, response status code and response headers + def get_usage_rum_units_with_http_info(start_hr, opts = {}) + + if @api_client.config.unstable_operations.has_key?(:get_usage_rum_units) + unstable_enabled = @api_client.config.unstable_operations[:get_usage_rum_units] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "get_usage_rum_units") + else + raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_usage_rum_units")) + end + end + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_rum_units ...' + end + # verify the required parameter 'start_hr' is set + if @api_client.config.client_side_validation && start_hr.nil? + fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_rum_units" + end + # resource path + local_var_path = '/api/v1/usage/rum' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'start_hr'] = start_hr + query_params[:'end_hr'] = opts[:'end_hr'] if !opts[:'end_hr'].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] || 'UsageRumUnitsResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :get_usage_rum_units, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: UsageMeteringAPI#get_usage_rum_units\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get hourly usage for Sensitive Data Scanner # Get hourly usage for Sensitive Data Scanner. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb new file mode 100644 index 000000000000..91b49b531bb1 --- /dev/null +++ b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb @@ -0,0 +1,304 @@ +=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://openapi-generator.tech + + 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 + # Number of RUM Units used for each hour for a given organization (data available as of November 1, 2021). + class UsageRumUnitsHour + # whether the object has unparsed attributes + attr_accessor :_unparsed + + # Number of browser RUM lite sessions. + attr_accessor :browser_rum_lite_session_count + + # Number of browser RUM replay sessions. + attr_accessor :browser_rum_replay_session_count + + # The number of browser RUM units. + attr_accessor :browser_rum_units + + # Number of mobile RUM lite sessions. + attr_accessor :mobile_rum_lite_session_count + + # The number of mobile RUM units. + attr_accessor :mobile_rum_units + + # The organization name. + attr_accessor :org_name + + # The organization public ID. + attr_accessor :public_id + + # Total RUM units across mobile and browser RUM. + attr_accessor :rum_units + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'browser_rum_lite_session_count' => :'browser_rum_lite_session_count', + :'browser_rum_replay_session_count' => :'browser_rum_replay_session_count', + :'browser_rum_units' => :'browser_rum_units', + :'mobile_rum_lite_session_count' => :'mobile_rum_lite_session_count', + :'mobile_rum_units' => :'mobile_rum_units', + :'org_name' => :'org_name', + :'public_id' => :'public_id', + :'rum_units' => :'rum_units' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'browser_rum_lite_session_count' => :'Integer', + :'browser_rum_replay_session_count' => :'Integer', + :'browser_rum_units' => :'Integer', + :'mobile_rum_lite_session_count' => :'Integer', + :'mobile_rum_units' => :'Integer', + :'org_name' => :'String', + :'public_id' => :'String', + :'rum_units' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'rum_units' + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsHour` 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::UsageRumUnitsHour`. 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?(:'browser_rum_lite_session_count') + self.browser_rum_lite_session_count = attributes[:'browser_rum_lite_session_count'] + end + + if attributes.key?(:'browser_rum_replay_session_count') + self.browser_rum_replay_session_count = attributes[:'browser_rum_replay_session_count'] + end + + if attributes.key?(:'browser_rum_units') + self.browser_rum_units = attributes[:'browser_rum_units'] + end + + if attributes.key?(:'mobile_rum_lite_session_count') + self.mobile_rum_lite_session_count = attributes[:'mobile_rum_lite_session_count'] + end + + if attributes.key?(:'mobile_rum_units') + self.mobile_rum_units = attributes[:'mobile_rum_units'] + 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?(:'rum_units') + self.rum_units = attributes[:'rum_units'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + browser_rum_lite_session_count == o.browser_rum_lite_session_count && + browser_rum_replay_session_count == o.browser_rum_replay_session_count && + browser_rum_units == o.browser_rum_units && + mobile_rum_lite_session_count == o.mobile_rum_lite_session_count && + mobile_rum_units == o.mobile_rum_units && + org_name == o.org_name && + public_id == o.public_id && + rum_units == o.rum_units + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [browser_rum_lite_session_count, browser_rum_replay_session_count, browser_rum_units, mobile_rum_lite_session_count, mobile_rum_units, org_name, public_id, rum_units].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + 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 + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb new file mode 100644 index 000000000000..beeb7520d126 --- /dev/null +++ b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb @@ -0,0 +1,235 @@ +=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://openapi-generator.tech + + 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 number of RUM Units for each hour for a given organization. + class UsageRumUnitsResponse + # whether the object has unparsed attributes + attr_accessor :_unparsed + + # Get hourly usage for RUM Units. + attr_accessor :usage + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'usage' => :'usage' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'usage' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsResponse` 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::UsageRumUnitsResponse`. 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?(:'usage') + if (value = attributes[:'usage']).is_a?(Array) + self.usage = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + usage == o.usage + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [usage].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + 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 + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index 00e00300fefa..a786182cb01a 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -49,6 +49,15 @@ class UsageSummaryDate # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. attr_accessor :billable_ingested_bytes_sum + # Shows the sum of all browser lite sessions over all hours in the current date for all organizations. + attr_accessor :browser_rum_lite_session_count_sum + + # Shows the sum of all browser replay sessions over all hours in the current date for all organizations. + attr_accessor :browser_rum_replay_session_count_sum + + # Shows the sum of all browser RUM units over all hours in the current date for all organizations. + attr_accessor :browser_rum_units_sum + # Shows the average of all distinct containers over all hours in the current date for all organizations. attr_accessor :container_avg @@ -112,6 +121,9 @@ class UsageSummaryDate # Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. attr_accessor :iot_device_top99p + # Shows the sum of all mobile lite sessions over all hours in the current date for all organizations. + attr_accessor :mobile_rum_lite_session_count_sum + # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. attr_accessor :mobile_rum_session_count_android_sum @@ -121,6 +133,9 @@ class UsageSummaryDate # Shows the sum of all mobile RUM Sessions over all hours in the current date for all organizations attr_accessor :mobile_rum_session_count_sum + # Shows the sum of all mobile RUM units over all hours in the current date for all organizations. + attr_accessor :mobile_rum_units_sum + # Shows the sum of all Network flows indexed over all hours in the current date for all organizations. attr_accessor :netflow_indexed_events_count_sum @@ -142,6 +157,9 @@ class UsageSummaryDate # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. attr_accessor :rum_total_session_count_sum + # Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. + attr_accessor :rum_units_sum + # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_logs_scanned_bytes_sum @@ -175,6 +193,9 @@ def self.attribute_map :'aws_lambda_invocations_sum' => :'aws_lambda_invocations_sum', :'azure_app_service_top99p' => :'azure_app_service_top99p', :'billable_ingested_bytes_sum' => :'billable_ingested_bytes_sum', + :'browser_rum_lite_session_count_sum' => :'browser_rum_lite_session_count_sum', + :'browser_rum_replay_session_count_sum' => :'browser_rum_replay_session_count_sum', + :'browser_rum_units_sum' => :'browser_rum_units_sum', :'container_avg' => :'container_avg', :'container_hwm' => :'container_hwm', :'cspm_container_avg' => :'cspm_container_avg', @@ -196,9 +217,11 @@ def self.attribute_map :'ingested_events_bytes_sum' => :'ingested_events_bytes_sum', :'iot_device_sum' => :'iot_device_sum', :'iot_device_top99p' => :'iot_device_top99p', + :'mobile_rum_lite_session_count_sum' => :'mobile_rum_lite_session_count_sum', :'mobile_rum_session_count_android_sum' => :'mobile_rum_session_count_android_sum', :'mobile_rum_session_count_ios_sum' => :'mobile_rum_session_count_ios_sum', :'mobile_rum_session_count_sum' => :'mobile_rum_session_count_sum', + :'mobile_rum_units_sum' => :'mobile_rum_units_sum', :'netflow_indexed_events_count_sum' => :'netflow_indexed_events_count_sum', :'npm_host_top99p' => :'npm_host_top99p', :'opentelemetry_host_top99p' => :'opentelemetry_host_top99p', @@ -206,6 +229,7 @@ def self.attribute_map :'profiling_host_top99p' => :'profiling_host_top99p', :'rum_session_count_sum' => :'rum_session_count_sum', :'rum_total_session_count_sum' => :'rum_total_session_count_sum', + :'rum_units_sum' => :'rum_units_sum', :'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum', :'sds_total_scanned_bytes_sum' => :'sds_total_scanned_bytes_sum', :'synthetics_browser_check_calls_count_sum' => :'synthetics_browser_check_calls_count_sum', @@ -233,6 +257,9 @@ def self.openapi_types :'aws_lambda_invocations_sum' => :'Integer', :'azure_app_service_top99p' => :'Integer', :'billable_ingested_bytes_sum' => :'Integer', + :'browser_rum_lite_session_count_sum' => :'Integer', + :'browser_rum_replay_session_count_sum' => :'Integer', + :'browser_rum_units_sum' => :'Integer', :'container_avg' => :'Integer', :'container_hwm' => :'Integer', :'cspm_container_avg' => :'Integer', @@ -254,9 +281,11 @@ def self.openapi_types :'ingested_events_bytes_sum' => :'Integer', :'iot_device_sum' => :'Integer', :'iot_device_top99p' => :'Integer', + :'mobile_rum_lite_session_count_sum' => :'Integer', :'mobile_rum_session_count_android_sum' => :'Integer', :'mobile_rum_session_count_ios_sum' => :'Integer', :'mobile_rum_session_count_sum' => :'Integer', + :'mobile_rum_units_sum' => :'Integer', :'netflow_indexed_events_count_sum' => :'Integer', :'npm_host_top99p' => :'Integer', :'opentelemetry_host_top99p' => :'Integer', @@ -264,6 +293,7 @@ def self.openapi_types :'profiling_host_top99p' => :'Integer', :'rum_session_count_sum' => :'Integer', :'rum_total_session_count_sum' => :'Integer', + :'rum_units_sum' => :'Integer', :'sds_logs_scanned_bytes_sum' => :'Integer', :'sds_total_scanned_bytes_sum' => :'Integer', :'synthetics_browser_check_calls_count_sum' => :'Integer', @@ -331,6 +361,18 @@ def initialize(attributes = {}) self.billable_ingested_bytes_sum = attributes[:'billable_ingested_bytes_sum'] end + if attributes.key?(:'browser_rum_lite_session_count_sum') + self.browser_rum_lite_session_count_sum = attributes[:'browser_rum_lite_session_count_sum'] + end + + if attributes.key?(:'browser_rum_replay_session_count_sum') + self.browser_rum_replay_session_count_sum = attributes[:'browser_rum_replay_session_count_sum'] + end + + if attributes.key?(:'browser_rum_units_sum') + self.browser_rum_units_sum = attributes[:'browser_rum_units_sum'] + end + if attributes.key?(:'container_avg') self.container_avg = attributes[:'container_avg'] end @@ -415,6 +457,10 @@ def initialize(attributes = {}) self.iot_device_top99p = attributes[:'iot_device_top99p'] end + if attributes.key?(:'mobile_rum_lite_session_count_sum') + self.mobile_rum_lite_session_count_sum = attributes[:'mobile_rum_lite_session_count_sum'] + end + if attributes.key?(:'mobile_rum_session_count_android_sum') self.mobile_rum_session_count_android_sum = attributes[:'mobile_rum_session_count_android_sum'] end @@ -427,6 +473,10 @@ def initialize(attributes = {}) self.mobile_rum_session_count_sum = attributes[:'mobile_rum_session_count_sum'] end + if attributes.key?(:'mobile_rum_units_sum') + self.mobile_rum_units_sum = attributes[:'mobile_rum_units_sum'] + end + if attributes.key?(:'netflow_indexed_events_count_sum') self.netflow_indexed_events_count_sum = attributes[:'netflow_indexed_events_count_sum'] end @@ -457,6 +507,10 @@ def initialize(attributes = {}) self.rum_total_session_count_sum = attributes[:'rum_total_session_count_sum'] end + if attributes.key?(:'rum_units_sum') + self.rum_units_sum = attributes[:'rum_units_sum'] + end + if attributes.key?(:'sds_logs_scanned_bytes_sum') self.sds_logs_scanned_bytes_sum = attributes[:'sds_logs_scanned_bytes_sum'] end @@ -513,6 +567,9 @@ def ==(o) aws_lambda_invocations_sum == o.aws_lambda_invocations_sum && azure_app_service_top99p == o.azure_app_service_top99p && billable_ingested_bytes_sum == o.billable_ingested_bytes_sum && + browser_rum_lite_session_count_sum == o.browser_rum_lite_session_count_sum && + browser_rum_replay_session_count_sum == o.browser_rum_replay_session_count_sum && + browser_rum_units_sum == o.browser_rum_units_sum && container_avg == o.container_avg && container_hwm == o.container_hwm && cspm_container_avg == o.cspm_container_avg && @@ -534,9 +591,11 @@ def ==(o) ingested_events_bytes_sum == o.ingested_events_bytes_sum && iot_device_sum == o.iot_device_sum && iot_device_top99p == o.iot_device_top99p && + mobile_rum_lite_session_count_sum == o.mobile_rum_lite_session_count_sum && mobile_rum_session_count_android_sum == o.mobile_rum_session_count_android_sum && mobile_rum_session_count_ios_sum == o.mobile_rum_session_count_ios_sum && mobile_rum_session_count_sum == o.mobile_rum_session_count_sum && + mobile_rum_units_sum == o.mobile_rum_units_sum && netflow_indexed_events_count_sum == o.netflow_indexed_events_count_sum && npm_host_top99p == o.npm_host_top99p && opentelemetry_host_top99p == o.opentelemetry_host_top99p && @@ -544,6 +603,7 @@ def ==(o) profiling_host_top99p == o.profiling_host_top99p && rum_session_count_sum == o.rum_session_count_sum && rum_total_session_count_sum == o.rum_total_session_count_sum && + rum_units_sum == o.rum_units_sum && sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum && sds_total_scanned_bytes_sum == o.sds_total_scanned_bytes_sum && synthetics_browser_check_calls_count_sum == o.synthetics_browser_check_calls_count_sum && @@ -562,7 +622,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, container_avg, container_hwm, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, orgs, profiling_host_top99p, rum_session_count_sum, rum_total_session_count_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash + [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, container_avg, container_hwm, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, orgs, profiling_host_top99p, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash end # Builds the object from hash diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index 0398aae4d098..3655d9d524aa 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -49,6 +49,15 @@ class UsageSummaryDateOrg # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :billable_ingested_bytes_sum + # Shows the sum of all browser lite sessions over all hours in the current date for the given org. + attr_accessor :browser_rum_lite_session_count_sum + + # Shows the sum of all browser replay sessions over all hours in the current date for the given org. + attr_accessor :browser_rum_replay_session_count_sum + + # Shows the sum of all browser RUM units over all hours in the current date for the given org. + attr_accessor :browser_rum_units_sum + # Shows the average of all distinct containers over all hours in the current date for the given org. attr_accessor :container_avg @@ -73,10 +82,10 @@ class UsageSummaryDateOrg # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. attr_accessor :cws_host_top99p - # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. + # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. attr_accessor :dbm_host_top99p_sum - # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for all organizations. + # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. attr_accessor :dbm_queries_avg_sum # The average task count for Fargate. @@ -112,6 +121,9 @@ class UsageSummaryDateOrg # Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_top99p_sum + # Shows the sum of all mobile lite sessions over all hours in the current date for the given org. + attr_accessor :mobile_rum_lite_session_count_sum + # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_android_sum @@ -121,6 +133,9 @@ class UsageSummaryDateOrg # Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_sum + # Shows the sum of all mobile RUM units over all hours in the current date for the given org. + attr_accessor :mobile_rum_units_sum + # The organization name. attr_accessor :name @@ -145,10 +160,13 @@ class UsageSummaryDateOrg # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. attr_accessor :rum_total_session_count_sum - # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. + # Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. + attr_accessor :rum_units_sum + + # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_logs_scanned_bytes_sum - # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. + # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_total_scanned_bytes_sum # Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. @@ -178,6 +196,9 @@ def self.attribute_map :'aws_lambda_invocations_sum' => :'aws_lambda_invocations_sum', :'azure_app_service_top99p' => :'azure_app_service_top99p', :'billable_ingested_bytes_sum' => :'billable_ingested_bytes_sum', + :'browser_rum_lite_session_count_sum' => :'browser_rum_lite_session_count_sum', + :'browser_rum_replay_session_count_sum' => :'browser_rum_replay_session_count_sum', + :'browser_rum_units_sum' => :'browser_rum_units_sum', :'container_avg' => :'container_avg', :'container_hwm' => :'container_hwm', :'cspm_container_avg' => :'cspm_container_avg', @@ -199,9 +220,11 @@ def self.attribute_map :'ingested_events_bytes_sum' => :'ingested_events_bytes_sum', :'iot_device_agg_sum' => :'iot_device_agg_sum', :'iot_device_top99p_sum' => :'iot_device_top99p_sum', + :'mobile_rum_lite_session_count_sum' => :'mobile_rum_lite_session_count_sum', :'mobile_rum_session_count_android_sum' => :'mobile_rum_session_count_android_sum', :'mobile_rum_session_count_ios_sum' => :'mobile_rum_session_count_ios_sum', :'mobile_rum_session_count_sum' => :'mobile_rum_session_count_sum', + :'mobile_rum_units_sum' => :'mobile_rum_units_sum', :'name' => :'name', :'netflow_indexed_events_count_sum' => :'netflow_indexed_events_count_sum', :'npm_host_top99p' => :'npm_host_top99p', @@ -210,6 +233,7 @@ def self.attribute_map :'public_id' => :'public_id', :'rum_session_count_sum' => :'rum_session_count_sum', :'rum_total_session_count_sum' => :'rum_total_session_count_sum', + :'rum_units_sum' => :'rum_units_sum', :'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum', :'sds_total_scanned_bytes_sum' => :'sds_total_scanned_bytes_sum', :'synthetics_browser_check_calls_count_sum' => :'synthetics_browser_check_calls_count_sum', @@ -237,6 +261,9 @@ def self.openapi_types :'aws_lambda_invocations_sum' => :'Integer', :'azure_app_service_top99p' => :'Integer', :'billable_ingested_bytes_sum' => :'Integer', + :'browser_rum_lite_session_count_sum' => :'Integer', + :'browser_rum_replay_session_count_sum' => :'Integer', + :'browser_rum_units_sum' => :'Integer', :'container_avg' => :'Integer', :'container_hwm' => :'Integer', :'cspm_container_avg' => :'Integer', @@ -258,9 +285,11 @@ def self.openapi_types :'ingested_events_bytes_sum' => :'Integer', :'iot_device_agg_sum' => :'Integer', :'iot_device_top99p_sum' => :'Integer', + :'mobile_rum_lite_session_count_sum' => :'Integer', :'mobile_rum_session_count_android_sum' => :'Integer', :'mobile_rum_session_count_ios_sum' => :'Integer', :'mobile_rum_session_count_sum' => :'Integer', + :'mobile_rum_units_sum' => :'Integer', :'name' => :'String', :'netflow_indexed_events_count_sum' => :'Integer', :'npm_host_top99p' => :'Integer', @@ -269,6 +298,7 @@ def self.openapi_types :'public_id' => :'String', :'rum_session_count_sum' => :'Integer', :'rum_total_session_count_sum' => :'Integer', + :'rum_units_sum' => :'Integer', :'sds_logs_scanned_bytes_sum' => :'Integer', :'sds_total_scanned_bytes_sum' => :'Integer', :'synthetics_browser_check_calls_count_sum' => :'Integer', @@ -336,6 +366,18 @@ def initialize(attributes = {}) self.billable_ingested_bytes_sum = attributes[:'billable_ingested_bytes_sum'] end + if attributes.key?(:'browser_rum_lite_session_count_sum') + self.browser_rum_lite_session_count_sum = attributes[:'browser_rum_lite_session_count_sum'] + end + + if attributes.key?(:'browser_rum_replay_session_count_sum') + self.browser_rum_replay_session_count_sum = attributes[:'browser_rum_replay_session_count_sum'] + end + + if attributes.key?(:'browser_rum_units_sum') + self.browser_rum_units_sum = attributes[:'browser_rum_units_sum'] + end + if attributes.key?(:'container_avg') self.container_avg = attributes[:'container_avg'] end @@ -420,6 +462,10 @@ def initialize(attributes = {}) self.iot_device_top99p_sum = attributes[:'iot_device_top99p_sum'] end + if attributes.key?(:'mobile_rum_lite_session_count_sum') + self.mobile_rum_lite_session_count_sum = attributes[:'mobile_rum_lite_session_count_sum'] + end + if attributes.key?(:'mobile_rum_session_count_android_sum') self.mobile_rum_session_count_android_sum = attributes[:'mobile_rum_session_count_android_sum'] end @@ -432,6 +478,10 @@ def initialize(attributes = {}) self.mobile_rum_session_count_sum = attributes[:'mobile_rum_session_count_sum'] end + if attributes.key?(:'mobile_rum_units_sum') + self.mobile_rum_units_sum = attributes[:'mobile_rum_units_sum'] + end + if attributes.key?(:'name') self.name = attributes[:'name'] end @@ -464,6 +514,10 @@ def initialize(attributes = {}) self.rum_total_session_count_sum = attributes[:'rum_total_session_count_sum'] end + if attributes.key?(:'rum_units_sum') + self.rum_units_sum = attributes[:'rum_units_sum'] + end + if attributes.key?(:'sds_logs_scanned_bytes_sum') self.sds_logs_scanned_bytes_sum = attributes[:'sds_logs_scanned_bytes_sum'] end @@ -520,6 +574,9 @@ def ==(o) aws_lambda_invocations_sum == o.aws_lambda_invocations_sum && azure_app_service_top99p == o.azure_app_service_top99p && billable_ingested_bytes_sum == o.billable_ingested_bytes_sum && + browser_rum_lite_session_count_sum == o.browser_rum_lite_session_count_sum && + browser_rum_replay_session_count_sum == o.browser_rum_replay_session_count_sum && + browser_rum_units_sum == o.browser_rum_units_sum && container_avg == o.container_avg && container_hwm == o.container_hwm && cspm_container_avg == o.cspm_container_avg && @@ -541,9 +598,11 @@ def ==(o) ingested_events_bytes_sum == o.ingested_events_bytes_sum && iot_device_agg_sum == o.iot_device_agg_sum && iot_device_top99p_sum == o.iot_device_top99p_sum && + mobile_rum_lite_session_count_sum == o.mobile_rum_lite_session_count_sum && mobile_rum_session_count_android_sum == o.mobile_rum_session_count_android_sum && mobile_rum_session_count_ios_sum == o.mobile_rum_session_count_ios_sum && mobile_rum_session_count_sum == o.mobile_rum_session_count_sum && + mobile_rum_units_sum == o.mobile_rum_units_sum && name == o.name && netflow_indexed_events_count_sum == o.netflow_indexed_events_count_sum && npm_host_top99p == o.npm_host_top99p && @@ -552,6 +611,7 @@ def ==(o) public_id == o.public_id && rum_session_count_sum == o.rum_session_count_sum && rum_total_session_count_sum == o.rum_total_session_count_sum && + rum_units_sum == o.rum_units_sum && sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum && sds_total_scanned_bytes_sum == o.sds_total_scanned_bytes_sum && synthetics_browser_check_calls_count_sum == o.synthetics_browser_check_calls_count_sum && @@ -570,7 +630,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, container_avg, container_hwm, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, profiling_host_top99p, public_id, rum_session_count_sum, rum_total_session_count_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash + [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, container_avg, container_hwm, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, profiling_host_top99p, public_id, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash end # Builds the object from hash diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index 78dbcc1ff42d..9bf89b6b6bd7 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -52,6 +52,15 @@ class UsageSummaryResponse # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. attr_accessor :billable_ingested_bytes_agg_sum + # Shows the sum of all browser lite sessions over all hours in the current months for all organizations. + attr_accessor :browser_rum_lite_session_count_agg_sum + + # Shows the sum of all browser replay sessions over all hours in the current months for all organizations. + attr_accessor :browser_rum_replay_session_count_agg_sum + + # Shows the sum of all browser RUM units over all hours in the current months for all organizations. + attr_accessor :browser_rum_units_agg_sum + # Shows the average of all distinct containers over all hours in the current months for all organizations. attr_accessor :container_avg_sum @@ -126,6 +135,9 @@ class UsageSummaryResponse attr_accessor :logs_by_retention + # Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. + attr_accessor :mobile_rum_lite_session_count_agg_sum + # Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_agg_sum @@ -135,6 +147,9 @@ class UsageSummaryResponse # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_ios_agg_sum + # Shows the sum of all mobile RUM units over all hours in the current months for all organizations. + attr_accessor :mobile_rum_units_agg_sum + # Shows the sum of all Network flows indexed over all hours in the current months for all organizations. attr_accessor :netflow_indexed_events_count_agg_sum @@ -162,6 +177,9 @@ class UsageSummaryResponse # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. attr_accessor :rum_total_session_count_agg_sum + # Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. + attr_accessor :rum_units_agg_sum + # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_logs_scanned_bytes_sum @@ -202,6 +220,9 @@ def self.attribute_map :'azure_app_service_top99p_sum' => :'azure_app_service_top99p_sum', :'azure_host_top99p_sum' => :'azure_host_top99p_sum', :'billable_ingested_bytes_agg_sum' => :'billable_ingested_bytes_agg_sum', + :'browser_rum_lite_session_count_agg_sum' => :'browser_rum_lite_session_count_agg_sum', + :'browser_rum_replay_session_count_agg_sum' => :'browser_rum_replay_session_count_agg_sum', + :'browser_rum_units_agg_sum' => :'browser_rum_units_agg_sum', :'container_avg_sum' => :'container_avg_sum', :'container_hwm_sum' => :'container_hwm_sum', :'cspm_container_avg_sum' => :'cspm_container_avg_sum', @@ -227,9 +248,11 @@ def self.attribute_map :'live_indexed_events_agg_sum' => :'live_indexed_events_agg_sum', :'live_ingested_bytes_agg_sum' => :'live_ingested_bytes_agg_sum', :'logs_by_retention' => :'logs_by_retention', + :'mobile_rum_lite_session_count_agg_sum' => :'mobile_rum_lite_session_count_agg_sum', :'mobile_rum_session_count_agg_sum' => :'mobile_rum_session_count_agg_sum', :'mobile_rum_session_count_android_agg_sum' => :'mobile_rum_session_count_android_agg_sum', :'mobile_rum_session_count_ios_agg_sum' => :'mobile_rum_session_count_ios_agg_sum', + :'mobile_rum_units_agg_sum' => :'mobile_rum_units_agg_sum', :'netflow_indexed_events_count_agg_sum' => :'netflow_indexed_events_count_agg_sum', :'npm_host_top99p_sum' => :'npm_host_top99p_sum', :'opentelemetry_host_top99p_sum' => :'opentelemetry_host_top99p_sum', @@ -239,6 +262,7 @@ def self.attribute_map :'rehydrated_ingested_bytes_agg_sum' => :'rehydrated_ingested_bytes_agg_sum', :'rum_session_count_agg_sum' => :'rum_session_count_agg_sum', :'rum_total_session_count_agg_sum' => :'rum_total_session_count_agg_sum', + :'rum_units_agg_sum' => :'rum_units_agg_sum', :'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum', :'sds_total_scanned_bytes_sum' => :'sds_total_scanned_bytes_sum', :'start_date' => :'start_date', @@ -269,6 +293,9 @@ def self.openapi_types :'azure_app_service_top99p_sum' => :'Integer', :'azure_host_top99p_sum' => :'Integer', :'billable_ingested_bytes_agg_sum' => :'Integer', + :'browser_rum_lite_session_count_agg_sum' => :'Integer', + :'browser_rum_replay_session_count_agg_sum' => :'Integer', + :'browser_rum_units_agg_sum' => :'Integer', :'container_avg_sum' => :'Integer', :'container_hwm_sum' => :'Integer', :'cspm_container_avg_sum' => :'Integer', @@ -294,9 +321,11 @@ def self.openapi_types :'live_indexed_events_agg_sum' => :'Integer', :'live_ingested_bytes_agg_sum' => :'Integer', :'logs_by_retention' => :'LogsByRetention', + :'mobile_rum_lite_session_count_agg_sum' => :'Integer', :'mobile_rum_session_count_agg_sum' => :'Integer', :'mobile_rum_session_count_android_agg_sum' => :'Integer', :'mobile_rum_session_count_ios_agg_sum' => :'Integer', + :'mobile_rum_units_agg_sum' => :'Integer', :'netflow_indexed_events_count_agg_sum' => :'Integer', :'npm_host_top99p_sum' => :'Integer', :'opentelemetry_host_top99p_sum' => :'Integer', @@ -306,6 +335,7 @@ def self.openapi_types :'rehydrated_ingested_bytes_agg_sum' => :'Integer', :'rum_session_count_agg_sum' => :'Integer', :'rum_total_session_count_agg_sum' => :'Integer', + :'rum_units_agg_sum' => :'Integer', :'sds_logs_scanned_bytes_sum' => :'Integer', :'sds_total_scanned_bytes_sum' => :'Integer', :'start_date' => :'Time', @@ -379,6 +409,18 @@ def initialize(attributes = {}) self.billable_ingested_bytes_agg_sum = attributes[:'billable_ingested_bytes_agg_sum'] end + if attributes.key?(:'browser_rum_lite_session_count_agg_sum') + self.browser_rum_lite_session_count_agg_sum = attributes[:'browser_rum_lite_session_count_agg_sum'] + end + + if attributes.key?(:'browser_rum_replay_session_count_agg_sum') + self.browser_rum_replay_session_count_agg_sum = attributes[:'browser_rum_replay_session_count_agg_sum'] + end + + if attributes.key?(:'browser_rum_units_agg_sum') + self.browser_rum_units_agg_sum = attributes[:'browser_rum_units_agg_sum'] + end + if attributes.key?(:'container_avg_sum') self.container_avg_sum = attributes[:'container_avg_sum'] end @@ -479,6 +521,10 @@ def initialize(attributes = {}) self.logs_by_retention = attributes[:'logs_by_retention'] end + if attributes.key?(:'mobile_rum_lite_session_count_agg_sum') + self.mobile_rum_lite_session_count_agg_sum = attributes[:'mobile_rum_lite_session_count_agg_sum'] + end + if attributes.key?(:'mobile_rum_session_count_agg_sum') self.mobile_rum_session_count_agg_sum = attributes[:'mobile_rum_session_count_agg_sum'] end @@ -491,6 +537,10 @@ def initialize(attributes = {}) self.mobile_rum_session_count_ios_agg_sum = attributes[:'mobile_rum_session_count_ios_agg_sum'] end + if attributes.key?(:'mobile_rum_units_agg_sum') + self.mobile_rum_units_agg_sum = attributes[:'mobile_rum_units_agg_sum'] + end + if attributes.key?(:'netflow_indexed_events_count_agg_sum') self.netflow_indexed_events_count_agg_sum = attributes[:'netflow_indexed_events_count_agg_sum'] end @@ -527,6 +577,10 @@ def initialize(attributes = {}) self.rum_total_session_count_agg_sum = attributes[:'rum_total_session_count_agg_sum'] end + if attributes.key?(:'rum_units_agg_sum') + self.rum_units_agg_sum = attributes[:'rum_units_agg_sum'] + end + if attributes.key?(:'sds_logs_scanned_bytes_sum') self.sds_logs_scanned_bytes_sum = attributes[:'sds_logs_scanned_bytes_sum'] end @@ -594,6 +648,9 @@ def ==(o) azure_app_service_top99p_sum == o.azure_app_service_top99p_sum && azure_host_top99p_sum == o.azure_host_top99p_sum && billable_ingested_bytes_agg_sum == o.billable_ingested_bytes_agg_sum && + browser_rum_lite_session_count_agg_sum == o.browser_rum_lite_session_count_agg_sum && + browser_rum_replay_session_count_agg_sum == o.browser_rum_replay_session_count_agg_sum && + browser_rum_units_agg_sum == o.browser_rum_units_agg_sum && container_avg_sum == o.container_avg_sum && container_hwm_sum == o.container_hwm_sum && cspm_container_avg_sum == o.cspm_container_avg_sum && @@ -619,9 +676,11 @@ def ==(o) live_indexed_events_agg_sum == o.live_indexed_events_agg_sum && live_ingested_bytes_agg_sum == o.live_ingested_bytes_agg_sum && logs_by_retention == o.logs_by_retention && + mobile_rum_lite_session_count_agg_sum == o.mobile_rum_lite_session_count_agg_sum && mobile_rum_session_count_agg_sum == o.mobile_rum_session_count_agg_sum && mobile_rum_session_count_android_agg_sum == o.mobile_rum_session_count_android_agg_sum && mobile_rum_session_count_ios_agg_sum == o.mobile_rum_session_count_ios_agg_sum && + mobile_rum_units_agg_sum == o.mobile_rum_units_agg_sum && netflow_indexed_events_count_agg_sum == o.netflow_indexed_events_count_agg_sum && npm_host_top99p_sum == o.npm_host_top99p_sum && opentelemetry_host_top99p_sum == o.opentelemetry_host_top99p_sum && @@ -631,6 +690,7 @@ def ==(o) rehydrated_ingested_bytes_agg_sum == o.rehydrated_ingested_bytes_agg_sum && rum_session_count_agg_sum == o.rum_session_count_agg_sum && rum_total_session_count_agg_sum == o.rum_total_session_count_agg_sum && + rum_units_agg_sum == o.rum_units_agg_sum && sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum && sds_total_scanned_bytes_sum == o.sds_total_scanned_bytes_sum && start_date == o.start_date && @@ -651,7 +711,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, container_avg_sum, container_hwm_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_session_count_agg_sum, rum_total_session_count_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash + [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, container_avg_sum, container_hwm_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash end # Builds the object from hash diff --git a/spec/v1/models/usage_rum_units_hour_spec.rb b/spec/v1/models/usage_rum_units_hour_spec.rb new file mode 100644 index 000000000000..caa86e47600e --- /dev/null +++ b/spec/v1/models/usage_rum_units_hour_spec.rb @@ -0,0 +1,79 @@ +=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://openapi-generator.tech + + 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 'spec_helper' +require 'json' +require 'date' + +# Unit tests for DatadogAPIClient::V1::UsageRumUnitsHour +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe DatadogAPIClient::V1::UsageRumUnitsHour do + let(:instance) { DatadogAPIClient::V1::UsageRumUnitsHour.new } + + describe 'test an instance of UsageRumUnitsHour' do + it 'should create an instance of UsageRumUnitsHour' do + expect(instance).to be_instance_of(DatadogAPIClient::V1::UsageRumUnitsHour) + end + end + describe 'test attribute "browser_rum_lite_session_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "browser_rum_replay_session_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "browser_rum_units"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "mobile_rum_lite_session_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "mobile_rum_units"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "org_name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "public_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "rum_units"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/v1/models/usage_rum_units_response_spec.rb b/spec/v1/models/usage_rum_units_response_spec.rb new file mode 100644 index 000000000000..6ee976579a5a --- /dev/null +++ b/spec/v1/models/usage_rum_units_response_spec.rb @@ -0,0 +1,37 @@ +=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://openapi-generator.tech + + 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 'spec_helper' +require 'json' +require 'date' + +# Unit tests for DatadogAPIClient::V1::UsageRumUnitsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe DatadogAPIClient::V1::UsageRumUnitsResponse do + let(:instance) { DatadogAPIClient::V1::UsageRumUnitsResponse.new } + + describe 'test an instance of UsageRumUnitsResponse' do + it 'should create an instance of UsageRumUnitsResponse' do + expect(instance).to be_instance_of(DatadogAPIClient::V1::UsageRumUnitsResponse) + end + end + describe 'test attribute "usage"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end