datadog_api_client 2.27.1 → 2.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +0 -3
- data/.generator/schemas/v1/openapi.yaml +385 -616
- data/.generator/schemas/v2/openapi.yaml +1498 -386
- data/.generator/src/generator/formatter.py +2 -43
- data/.generator/src/generator/keywords.json +43 -0
- data/.generator/src/generator/templates/api.j2 +4 -0
- data/.generator/src/generator/templates/api_client.j2 +1 -0
- data/CHANGELOG.md +39 -0
- data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +1 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +0 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +1 -1
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v1/synthetics/UpdateMobileTest.rb +1 -1
- data/examples/v2/domain-allowlist/GetDomainAllowlist.rb +5 -0
- data/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +17 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -0
- data/examples/v2/incidents/CreateIncidentType.rb +19 -0
- data/examples/v2/incidents/DeleteIncidentType.rb +11 -0
- data/examples/v2/incidents/GetIncidentType.rb +8 -0
- data/examples/v2/incidents/ListIncidentTypes.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentType.rb +22 -0
- data/examples/v2/metrics/QueryScalarData.rb +0 -3
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +0 -3
- data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/{CreateApiHandle_1540689753.rb → CreateTenantBasedHandle_1540689753.rb} +5 -5
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/{ListApiHandles.rb → ListTenantBasedHandles.rb} +2 -2
- data/examples/v2/microsoft-teams-integration/{ListApiHandles_769592979.rb → ListTenantBasedHandles_769592979.rb} +1 -1
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +18 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +32 -0
- data/examples/v2/rum-metrics/DeleteRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/GetRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/ListRumMetrics.rb +5 -0
- data/examples/v2/rum-metrics/UpdateRumMetric.rb +29 -0
- data/examples/v2/security-monitoring/ListFindings_1668290866.rb +14 -0
- data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +8 -0
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +4 -1
- data/lib/datadog_api_client/api_client.rb +1 -0
- data/lib/datadog_api_client/configuration.rb +6 -2
- data/lib/datadog_api_client/inflector.rb +81 -28
- data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -3
- data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -3
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -6
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -61
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +2 -2
- data/lib/datadog_api_client/v1/models/{synthetics_status.rb → synthetics_batch_status.rb} +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +32 -6
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params.rb +249 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_direction.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_context_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_relative_position.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items_type.rb +30 -0
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_initial_application_arguments.rb → synthetics_mobile_step_params_positions_items.rb} +21 -11
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_ci_options.rb → synthetics_mobile_step_params_variable.rb} +38 -17
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +42 -16
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +24 -5
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +22 -2
- data/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +19 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +34 -4
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_options_monitor_options_notification_preset_name.rb → synthetics_test_options_monitor_options_notification_preset_name.rb} +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +31 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +32 -6
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items.rb → synthetics_test_restriction_policy_binding.rb} +11 -11
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items_role.rb → synthetics_test_restriction_policy_binding_relation.rb} +2 -2
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +3 -69
- data/lib/datadog_api_client/v2/api/domain_allowlist_api.rb +153 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +361 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -13
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +98 -161
- data/lib/datadog_api_client/v2/api/rum_metrics_api.rb +357 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +19 -19
- data/lib/datadog_api_client/v2/api/teams_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +79 -10
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item.rb +125 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/domain_allowlist.rb +151 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → domain_allowlist_attributes.rb} +20 -18
- data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
- data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_binding.rb → v2/models/domain_allowlist_response.rb} +13 -13
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data.rb +151 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_type.rb → domain_allowlist_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/entity_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_escalation_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_event_item.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_opsgenie.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_pagerduty.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_log_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_performance.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_pipelines.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_integrations.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +9 -9
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_additional_owners_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_contacts_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_links_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_queue_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_service.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_service_datadog.rb +6 -6
- data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_system.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_system_datadog.rb +5 -5
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +14 -4
- data/lib/datadog_api_client/v2/models/finding_vulnerability_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +115 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_data.rb → incident_type_create_data.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_request.rb → incident_type_create_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handles_response.rb → incident_type_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{aws_related_account.rb → incident_type_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/incident_type_patch_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_response.rb → incident_type_patch_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request.rb → incident_type_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{aws_related_account_type.rb → incident_type_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_user_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/incident_user_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/include_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_entity_catalog_response_links.rb +3 -3
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_attributes.rb → microsoft_teams_tenant_based_handle_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_attributes.rb → microsoft_teams_tenant_based_handle_info_response_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_response_data.rb → microsoft_teams_tenant_based_handle_info_response_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_attributes.rb → microsoft_teams_tenant_based_handle_request_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request_data.rb → microsoft_teams_tenant_based_handle_request_data.rb} +7 -7
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_data.rb → microsoft_teams_tenant_based_handle_response_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata_teams_item.rb +186 -0
- data/lib/datadog_api_client/v2/models/relation_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_metric_compute.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_metric_compute_aggregation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_event_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/rum_metric_filter.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_group_by.rb +133 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response.rb → rum_metric_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/rum_metric_response_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_compute.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_data.rb +125 -0
- data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb → v2/models/rum_metric_response_filter.rb} +13 -13
- data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_uniqueness.rb +105 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_type.rb → rum_metric_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness_when.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_compute.rb +106 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{aws_related_accounts_response.rb → rum_metrics_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +15 -4
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +2 -2
- data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +110 -43
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
- data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +0 -17
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +0 -5
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +0 -8
- data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +0 -5
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +0 -5
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +0 -8
- data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +0 -8
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +0 -17
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +0 -18
- data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +0 -251
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options.rb +0 -155
@@ -0,0 +1,145 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The compute rule to compute the rum-based metric.
|
21
|
+
class RumMetricCompute
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The type of aggregation to use.
|
25
|
+
attr_reader :aggregation_type
|
26
|
+
|
27
|
+
# Toggle to include or exclude percentile aggregations for distribution metrics.
|
28
|
+
# Only present when `aggregation_type` is `distribution`.
|
29
|
+
attr_accessor :include_percentiles
|
30
|
+
|
31
|
+
# The path to the value the rum-based metric will aggregate on.
|
32
|
+
# Only present when `aggregation_type` is `distribution`.
|
33
|
+
attr_accessor :path
|
34
|
+
|
35
|
+
attr_accessor :additional_properties
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
# @!visibility private
|
39
|
+
def self.attribute_map
|
40
|
+
{
|
41
|
+
:'aggregation_type' => :'aggregation_type',
|
42
|
+
:'include_percentiles' => :'include_percentiles',
|
43
|
+
:'path' => :'path'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
# @!visibility private
|
49
|
+
def self.openapi_types
|
50
|
+
{
|
51
|
+
:'aggregation_type' => :'RumMetricComputeAggregationType',
|
52
|
+
:'include_percentiles' => :'Boolean',
|
53
|
+
:'path' => :'String'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
59
|
+
# @!visibility private
|
60
|
+
def initialize(attributes = {})
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumMetricCompute` initialize method"
|
63
|
+
end
|
64
|
+
|
65
|
+
self.additional_properties = {}
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
+
self.additional_properties[k.to_sym] = v
|
70
|
+
else
|
71
|
+
h[k.to_sym] = v
|
72
|
+
end
|
73
|
+
}
|
74
|
+
|
75
|
+
if attributes.key?(:'aggregation_type')
|
76
|
+
self.aggregation_type = attributes[:'aggregation_type']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'include_percentiles')
|
80
|
+
self.include_percentiles = attributes[:'include_percentiles']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'path')
|
84
|
+
self.path = attributes[:'path']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
# @!visibility private
|
91
|
+
def valid?
|
92
|
+
return false if @aggregation_type.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param aggregation_type [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def aggregation_type=(aggregation_type)
|
100
|
+
if aggregation_type.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "aggregation_type", aggregation_type cannot be nil.'
|
102
|
+
end
|
103
|
+
@aggregation_type = aggregation_type
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
108
|
+
# @!visibility private
|
109
|
+
def to_hash
|
110
|
+
hash = {}
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
112
|
+
value = self.send(attr)
|
113
|
+
if value.nil?
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
116
|
+
end
|
117
|
+
|
118
|
+
hash[param] = _to_hash(value)
|
119
|
+
end
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
121
|
+
hash[attr] = value
|
122
|
+
end
|
123
|
+
hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param o [Object] Object to be compared
|
128
|
+
# @!visibility private
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
aggregation_type == o.aggregation_type &&
|
133
|
+
include_percentiles == o.include_percentiles &&
|
134
|
+
path == o.path
|
135
|
+
additional_properties == o.additional_properties
|
136
|
+
end
|
137
|
+
|
138
|
+
# Calculates hash code according to all attributes.
|
139
|
+
# @return [Integer] Hash code
|
140
|
+
# @!visibility private
|
141
|
+
def hash
|
142
|
+
[aggregation_type, include_percentiles, path].hash
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The type of aggregation to use.
|
21
|
+
class RumMetricComputeAggregationType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
COUNT = "count".freeze
|
25
|
+
DISTRIBUTION = "distribution".freeze
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,176 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The object describing the Datadog rum-based metric to create.
|
21
|
+
class RumMetricCreateAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The compute rule to compute the rum-based metric.
|
25
|
+
attr_reader :compute
|
26
|
+
|
27
|
+
# The type of RUM events to filter on.
|
28
|
+
attr_reader :event_type
|
29
|
+
|
30
|
+
# The rum-based metric filter. Events matching this filter will be aggregated in this metric.
|
31
|
+
attr_accessor :filter
|
32
|
+
|
33
|
+
# The rules for the group by.
|
34
|
+
attr_accessor :group_by
|
35
|
+
|
36
|
+
# The rule to count updatable events. Is only set if `event_type` is `sessions` or `views`.
|
37
|
+
attr_accessor :uniqueness
|
38
|
+
|
39
|
+
attr_accessor :additional_properties
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
# @!visibility private
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
:'compute' => :'compute',
|
46
|
+
:'event_type' => :'event_type',
|
47
|
+
:'filter' => :'filter',
|
48
|
+
:'group_by' => :'group_by',
|
49
|
+
:'uniqueness' => :'uniqueness'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'compute' => :'RumMetricCompute',
|
58
|
+
:'event_type' => :'RumMetricEventType',
|
59
|
+
:'filter' => :'RumMetricFilter',
|
60
|
+
:'group_by' => :'Array<RumMetricGroupBy>',
|
61
|
+
:'uniqueness' => :'RumMetricUniqueness'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
67
|
+
# @!visibility private
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumMetricCreateAttributes` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
self.additional_properties = {}
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
self.additional_properties[k.to_sym] = v
|
78
|
+
else
|
79
|
+
h[k.to_sym] = v
|
80
|
+
end
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'compute')
|
84
|
+
self.compute = attributes[:'compute']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'event_type')
|
88
|
+
self.event_type = attributes[:'event_type']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'filter')
|
92
|
+
self.filter = attributes[:'filter']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'group_by')
|
96
|
+
if (value = attributes[:'group_by']).is_a?(Array)
|
97
|
+
self.group_by = value
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'uniqueness')
|
102
|
+
self.uniqueness = attributes[:'uniqueness']
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# Check to see if the all the properties in the model are valid
|
107
|
+
# @return true if the model is valid
|
108
|
+
# @!visibility private
|
109
|
+
def valid?
|
110
|
+
return false if @compute.nil?
|
111
|
+
return false if @event_type.nil?
|
112
|
+
true
|
113
|
+
end
|
114
|
+
|
115
|
+
# Custom attribute writer method with validation
|
116
|
+
# @param compute [Object] Object to be assigned
|
117
|
+
# @!visibility private
|
118
|
+
def compute=(compute)
|
119
|
+
if compute.nil?
|
120
|
+
fail ArgumentError, 'invalid value for "compute", compute cannot be nil.'
|
121
|
+
end
|
122
|
+
@compute = compute
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param event_type [Object] Object to be assigned
|
127
|
+
# @!visibility private
|
128
|
+
def event_type=(event_type)
|
129
|
+
if event_type.nil?
|
130
|
+
fail ArgumentError, 'invalid value for "event_type", event_type cannot be nil.'
|
131
|
+
end
|
132
|
+
@event_type = event_type
|
133
|
+
end
|
134
|
+
|
135
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
136
|
+
# @return [Hash] Returns the object in the form of hash
|
137
|
+
# @!visibility private
|
138
|
+
def to_hash
|
139
|
+
hash = {}
|
140
|
+
self.class.attribute_map.each_pair do |attr, param|
|
141
|
+
value = self.send(attr)
|
142
|
+
if value.nil?
|
143
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
144
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
145
|
+
end
|
146
|
+
|
147
|
+
hash[param] = _to_hash(value)
|
148
|
+
end
|
149
|
+
self.additional_properties.each_pair do |attr, value|
|
150
|
+
hash[attr] = value
|
151
|
+
end
|
152
|
+
hash
|
153
|
+
end
|
154
|
+
|
155
|
+
# Checks equality by comparing each attribute.
|
156
|
+
# @param o [Object] Object to be compared
|
157
|
+
# @!visibility private
|
158
|
+
def ==(o)
|
159
|
+
return true if self.equal?(o)
|
160
|
+
self.class == o.class &&
|
161
|
+
compute == o.compute &&
|
162
|
+
event_type == o.event_type &&
|
163
|
+
filter == o.filter &&
|
164
|
+
group_by == o.group_by &&
|
165
|
+
uniqueness == o.uniqueness
|
166
|
+
additional_properties == o.additional_properties
|
167
|
+
end
|
168
|
+
|
169
|
+
# Calculates hash code according to all attributes.
|
170
|
+
# @return [Integer] Hash code
|
171
|
+
# @!visibility private
|
172
|
+
def hash
|
173
|
+
[compute, event_type, filter, group_by, uniqueness].hash
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The new rum-based metric properties.
|
21
|
+
class RumMetricCreateData
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The object describing the Datadog rum-based metric to create.
|
25
|
+
attr_reader :attributes
|
26
|
+
|
27
|
+
# The name of the rum-based metric.
|
28
|
+
attr_reader :id
|
29
|
+
|
30
|
+
# The type of the resource. The value should always be rum_metrics.
|
31
|
+
attr_reader :type
|
32
|
+
|
33
|
+
attr_accessor :additional_properties
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
# @!visibility private
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'attributes' => :'attributes',
|
40
|
+
:'id' => :'id',
|
41
|
+
:'type' => :'type'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'attributes' => :'RumMetricCreateAttributes',
|
50
|
+
:'id' => :'String',
|
51
|
+
:'type' => :'RumMetricType'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
57
|
+
# @!visibility private
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumMetricCreateData` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
self.additional_properties = {}
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
self.additional_properties[k.to_sym] = v
|
68
|
+
else
|
69
|
+
h[k.to_sym] = v
|
70
|
+
end
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'attributes')
|
74
|
+
self.attributes = attributes[:'attributes']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'id')
|
78
|
+
self.id = attributes[:'id']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'type')
|
82
|
+
self.type = attributes[:'type']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
# @!visibility private
|
89
|
+
def valid?
|
90
|
+
return false if @attributes.nil?
|
91
|
+
return false if @id.nil?
|
92
|
+
return false if @type.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param attributes [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def attributes=(attributes)
|
100
|
+
if attributes.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
102
|
+
end
|
103
|
+
@attributes = attributes
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param id [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def id=(id)
|
110
|
+
if id.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
112
|
+
end
|
113
|
+
@id = id
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param type [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def type=(type)
|
120
|
+
if type.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
122
|
+
end
|
123
|
+
@type = type
|
124
|
+
end
|
125
|
+
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
128
|
+
# @!visibility private
|
129
|
+
def to_hash
|
130
|
+
hash = {}
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
132
|
+
value = self.send(attr)
|
133
|
+
if value.nil?
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
136
|
+
end
|
137
|
+
|
138
|
+
hash[param] = _to_hash(value)
|
139
|
+
end
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
141
|
+
hash[attr] = value
|
142
|
+
end
|
143
|
+
hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param o [Object] Object to be compared
|
148
|
+
# @!visibility private
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
attributes == o.attributes &&
|
153
|
+
id == o.id &&
|
154
|
+
type == o.type
|
155
|
+
additional_properties == o.additional_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Integer] Hash code
|
160
|
+
# @!visibility private
|
161
|
+
def hash
|
162
|
+
[attributes, id, type].hash
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The new rum-based metric body.
|
21
|
+
class RumMetricCreateRequest
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The new rum-based metric properties.
|
25
|
+
attr_reader :data
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'data' => :'data'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'data' => :'RumMetricCreateData'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumMetricCreateRequest` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
self.data = attributes[:'data']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
# @!visibility private
|
71
|
+
def valid?
|
72
|
+
return false if @data.nil?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Custom attribute writer method with validation
|
77
|
+
# @param data [Object] Object to be assigned
|
78
|
+
# @!visibility private
|
79
|
+
def data=(data)
|
80
|
+
if data.nil?
|
81
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
82
|
+
end
|
83
|
+
@data = data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
88
|
+
# @!visibility private
|
89
|
+
def to_hash
|
90
|
+
hash = {}
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
92
|
+
value = self.send(attr)
|
93
|
+
if value.nil?
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
96
|
+
end
|
97
|
+
|
98
|
+
hash[param] = _to_hash(value)
|
99
|
+
end
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
101
|
+
hash[attr] = value
|
102
|
+
end
|
103
|
+
hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param o [Object] Object to be compared
|
108
|
+
# @!visibility private
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
data == o.data
|
113
|
+
additional_properties == o.additional_properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# Calculates hash code according to all attributes.
|
117
|
+
# @return [Integer] Hash code
|
118
|
+
# @!visibility private
|
119
|
+
def hash
|
120
|
+
[data].hash
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The type of RUM events to filter on.
|
21
|
+
class RumMetricEventType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
SESSION = "session".freeze
|
25
|
+
VIEW = "view".freeze
|
26
|
+
ACTION = "action".freeze
|
27
|
+
ERROR = "error".freeze
|
28
|
+
RESOURCE = "resource".freeze
|
29
|
+
LONG_TASK = "long_task".freeze
|
30
|
+
VITAL = "vital".freeze
|
31
|
+
end
|
32
|
+
end
|