datadog_api_client 2.26.1 → 2.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +0 -3
- data/.generator/schemas/v1/openapi.yaml +2123 -212
- data/.generator/schemas/v2/openapi.yaml +3082 -240
- data/.generator/src/generator/formatter.py +3 -44
- 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/.github/workflows/approved_status.yml +4 -0
- data/.github/workflows/changelog.yml +5 -0
- data/.github/workflows/codeql-analysis.yml +4 -0
- data/.github/workflows/docs.yml +3 -0
- data/.github/workflows/labeler.yml +5 -0
- data/.github/workflows/prepare_release.yml +4 -0
- data/.github/workflows/publish.yml +5 -0
- data/.github/workflows/release.yml +4 -0
- data/.github/workflows/stale.yml +6 -0
- data/.github/workflows/test.yml +3 -0
- data/.github/workflows/test_integration.yml +3 -0
- data/CHANGELOG.md +66 -0
- data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1433408735.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_794302680.rb +152 -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/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +27 -0
- data/examples/v1/synthetics/FetchUptimes.rb +13 -0
- data/examples/v1/synthetics/GetMobileTest.rb +8 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v1/synthetics/UpdateMobileTest.rb +30 -0
- 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/logs/AggregateLogs_2955613758.rb +0 -1
- 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/CreateTenantBasedHandle_1540689753.rb +17 -0
- 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/GetChannelByName.rb +5 -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/ListTenantBasedHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb +5 -0
- 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/CreateSecurityMonitoringRule.rb +9 -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 +109 -5
- data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +274 -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 +2 -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 +4 -6
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -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_config_variable_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_fetch_uptimes_payload.rb +167 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +229 -0
- 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_step_params_positions_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_variable.rb +144 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_type.rb +42 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +263 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +380 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +173 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application_reference_type.rb +27 -0
- 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_test_options_monitor_options_notification_preset_name.rb +29 -0
- 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_test_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_port.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_restriction_policy_binding.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_restriction_policy_binding_relation.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_uptime.rb +135 -0
- data/lib/datadog_api_client/v1/models/synthetics_uptime.rb +161 -0
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +16 -4
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_palette.rb +36 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace.rb +63 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring.rb +165 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_rule.rb +163 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +51 -1
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +3 -3
- 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 +362 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -17
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +434 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +3 -3
- 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/domain_allowlist_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response.rb +105 -0
- 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/domain_allowlist_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- 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/fastly_services_response.rb +1 -1
- 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_notification_handle.rb +1 -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/incident_type_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_type_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_type_list_response.rb +125 -0
- 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/incident_type_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_type_response.rb +123 -0
- 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/metric_tag_configuration_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_type_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_type.rb +26 -0
- 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_get_channel_by_name_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_response_attributes.rb +249 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_response_data.rb +147 -0
- 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_tenant_based_handle_request_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_request_data.rb +144 -0
- 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_tenant_based_handle_response_data.rb +147 -0
- 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/powerpack_template_variable.rb +35 -4
- 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/rum_metric_response.rb +105 -0
- 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/v2/models/rum_metric_response_filter.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → rum_metric_response_uniqueness.rb} +11 -21
- data/lib/datadog_api_client/v2/models/rum_metric_type.rb +26 -0
- 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/security_monitoring_reference_table.rb +145 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +13 -1
- 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/team_update_attributes.rb +1 -26
- data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +145 -8
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
|
@@ -0,0 +1,153 @@
|
|
|
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 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class DomainAllowlistAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Get Domain Allowlist.
|
|
27
|
+
#
|
|
28
|
+
# @see #get_domain_allowlist_with_http_info
|
|
29
|
+
def get_domain_allowlist(opts = {})
|
|
30
|
+
data, _status_code, _headers = get_domain_allowlist_with_http_info(opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get Domain Allowlist.
|
|
35
|
+
#
|
|
36
|
+
# Get the domain allowlist for an organization.
|
|
37
|
+
#
|
|
38
|
+
# @param opts [Hash] the optional parameters
|
|
39
|
+
# @return [Array<(DomainAllowlistResponse, Integer, Hash)>] DomainAllowlistResponse data, response status code and response headers
|
|
40
|
+
def get_domain_allowlist_with_http_info(opts = {})
|
|
41
|
+
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: DomainAllowlistAPI.get_domain_allowlist ...'
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/v2/domain_allowlist'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:debug_body]
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:debug_return_type] || 'DomainAllowlistResponse'
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:operation => :get_domain_allowlist,
|
|
70
|
+
:header_params => header_params,
|
|
71
|
+
:query_params => query_params,
|
|
72
|
+
:form_params => form_params,
|
|
73
|
+
:body => post_body,
|
|
74
|
+
:auth_names => auth_names,
|
|
75
|
+
:return_type => return_type,
|
|
76
|
+
:api_version => "V2"
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: DomainAllowlistAPI#get_domain_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Sets Domain Allowlist.
|
|
87
|
+
#
|
|
88
|
+
# @see #patch_domain_allowlist_with_http_info
|
|
89
|
+
def patch_domain_allowlist(body, opts = {})
|
|
90
|
+
data, _status_code, _headers = patch_domain_allowlist_with_http_info(body, opts)
|
|
91
|
+
data
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Sets Domain Allowlist.
|
|
95
|
+
#
|
|
96
|
+
# Update the domain allowlist for an organization.
|
|
97
|
+
#
|
|
98
|
+
# @param body [DomainAllowlistRequest]
|
|
99
|
+
# @param opts [Hash] the optional parameters
|
|
100
|
+
# @return [Array<(DomainAllowlistResponse, Integer, Hash)>] DomainAllowlistResponse data, response status code and response headers
|
|
101
|
+
def patch_domain_allowlist_with_http_info(body, opts = {})
|
|
102
|
+
|
|
103
|
+
if @api_client.config.debugging
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: DomainAllowlistAPI.patch_domain_allowlist ...'
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'body' is set
|
|
107
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DomainAllowlistAPI.patch_domain_allowlist"
|
|
109
|
+
end
|
|
110
|
+
# resource path
|
|
111
|
+
local_var_path = '/api/v2/domain_allowlist'
|
|
112
|
+
|
|
113
|
+
# query parameters
|
|
114
|
+
query_params = opts[:query_params] || {}
|
|
115
|
+
|
|
116
|
+
# header parameters
|
|
117
|
+
header_params = opts[:header_params] || {}
|
|
118
|
+
# HTTP header 'Accept' (if needed)
|
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
120
|
+
# HTTP header 'Content-Type'
|
|
121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
122
|
+
|
|
123
|
+
# form parameters
|
|
124
|
+
form_params = opts[:form_params] || {}
|
|
125
|
+
|
|
126
|
+
# http body (model)
|
|
127
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
128
|
+
|
|
129
|
+
# return_type
|
|
130
|
+
return_type = opts[:debug_return_type] || 'DomainAllowlistResponse'
|
|
131
|
+
|
|
132
|
+
# auth_names
|
|
133
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
134
|
+
|
|
135
|
+
new_options = opts.merge(
|
|
136
|
+
:operation => :patch_domain_allowlist,
|
|
137
|
+
:header_params => header_params,
|
|
138
|
+
:query_params => query_params,
|
|
139
|
+
:form_params => form_params,
|
|
140
|
+
:body => post_body,
|
|
141
|
+
:auth_names => auth_names,
|
|
142
|
+
:return_type => return_type,
|
|
143
|
+
:api_version => "V2"
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug "API called: DomainAllowlistAPI#patch_domain_allowlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
+
end
|
|
150
|
+
return data, status_code, headers
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -252,6 +252,79 @@ module DatadogAPIClient::V2
|
|
|
252
252
|
return data, status_code, headers
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
+
# Create an incident type.
|
|
256
|
+
#
|
|
257
|
+
# @see #create_incident_type_with_http_info
|
|
258
|
+
def create_incident_type(body, opts = {})
|
|
259
|
+
data, _status_code, _headers = create_incident_type_with_http_info(body, opts)
|
|
260
|
+
data
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Create an incident type.
|
|
264
|
+
#
|
|
265
|
+
# Create an incident type.
|
|
266
|
+
#
|
|
267
|
+
# @param body [IncidentTypeCreateRequest] Incident type payload.
|
|
268
|
+
# @param opts [Hash] the optional parameters
|
|
269
|
+
# @return [Array<(IncidentTypeResponse, Integer, Hash)>] IncidentTypeResponse data, response status code and response headers
|
|
270
|
+
def create_incident_type_with_http_info(body, opts = {})
|
|
271
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_type".to_sym]
|
|
272
|
+
if unstable_enabled
|
|
273
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_type")
|
|
274
|
+
else
|
|
275
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_incident_type"))
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
if @api_client.config.debugging
|
|
279
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.create_incident_type ...'
|
|
280
|
+
end
|
|
281
|
+
# verify the required parameter 'body' is set
|
|
282
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
283
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IncidentsAPI.create_incident_type"
|
|
284
|
+
end
|
|
285
|
+
# resource path
|
|
286
|
+
local_var_path = '/api/v2/incidents/config/types'
|
|
287
|
+
|
|
288
|
+
# query parameters
|
|
289
|
+
query_params = opts[:query_params] || {}
|
|
290
|
+
|
|
291
|
+
# header parameters
|
|
292
|
+
header_params = opts[:header_params] || {}
|
|
293
|
+
# HTTP header 'Accept' (if needed)
|
|
294
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
295
|
+
# HTTP header 'Content-Type'
|
|
296
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
297
|
+
|
|
298
|
+
# form parameters
|
|
299
|
+
form_params = opts[:form_params] || {}
|
|
300
|
+
|
|
301
|
+
# http body (model)
|
|
302
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
303
|
+
|
|
304
|
+
# return_type
|
|
305
|
+
return_type = opts[:debug_return_type] || 'IncidentTypeResponse'
|
|
306
|
+
|
|
307
|
+
# auth_names
|
|
308
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
309
|
+
|
|
310
|
+
new_options = opts.merge(
|
|
311
|
+
:operation => :create_incident_type,
|
|
312
|
+
:header_params => header_params,
|
|
313
|
+
:query_params => query_params,
|
|
314
|
+
:form_params => form_params,
|
|
315
|
+
:body => post_body,
|
|
316
|
+
:auth_names => auth_names,
|
|
317
|
+
:return_type => return_type,
|
|
318
|
+
:api_version => "V2"
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
322
|
+
if @api_client.config.debugging
|
|
323
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#create_incident_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
|
+
end
|
|
325
|
+
return data, status_code, headers
|
|
326
|
+
end
|
|
327
|
+
|
|
255
328
|
# Delete an existing incident.
|
|
256
329
|
#
|
|
257
330
|
# @see #delete_incident_with_http_info
|
|
@@ -475,6 +548,77 @@ module DatadogAPIClient::V2
|
|
|
475
548
|
return data, status_code, headers
|
|
476
549
|
end
|
|
477
550
|
|
|
551
|
+
# Delete an incident type.
|
|
552
|
+
#
|
|
553
|
+
# @see #delete_incident_type_with_http_info
|
|
554
|
+
def delete_incident_type(incident_type_id, opts = {})
|
|
555
|
+
delete_incident_type_with_http_info(incident_type_id, opts)
|
|
556
|
+
nil
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# Delete an incident type.
|
|
560
|
+
#
|
|
561
|
+
# Delete an incident type.
|
|
562
|
+
#
|
|
563
|
+
# @param incident_type_id [String] The UUID of the incident type.
|
|
564
|
+
# @param opts [Hash] the optional parameters
|
|
565
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
566
|
+
def delete_incident_type_with_http_info(incident_type_id, opts = {})
|
|
567
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_incident_type".to_sym]
|
|
568
|
+
if unstable_enabled
|
|
569
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_incident_type")
|
|
570
|
+
else
|
|
571
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_incident_type"))
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
if @api_client.config.debugging
|
|
575
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.delete_incident_type ...'
|
|
576
|
+
end
|
|
577
|
+
# verify the required parameter 'incident_type_id' is set
|
|
578
|
+
if @api_client.config.client_side_validation && incident_type_id.nil?
|
|
579
|
+
fail ArgumentError, "Missing the required parameter 'incident_type_id' when calling IncidentsAPI.delete_incident_type"
|
|
580
|
+
end
|
|
581
|
+
# resource path
|
|
582
|
+
local_var_path = '/api/v2/incidents/config/types/{incident_type_id}'.sub('{incident_type_id}', CGI.escape(incident_type_id.to_s).gsub('%2F', '/'))
|
|
583
|
+
|
|
584
|
+
# query parameters
|
|
585
|
+
query_params = opts[:query_params] || {}
|
|
586
|
+
|
|
587
|
+
# header parameters
|
|
588
|
+
header_params = opts[:header_params] || {}
|
|
589
|
+
# HTTP header 'Accept' (if needed)
|
|
590
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
591
|
+
|
|
592
|
+
# form parameters
|
|
593
|
+
form_params = opts[:form_params] || {}
|
|
594
|
+
|
|
595
|
+
# http body (model)
|
|
596
|
+
post_body = opts[:debug_body]
|
|
597
|
+
|
|
598
|
+
# return_type
|
|
599
|
+
return_type = opts[:debug_return_type]
|
|
600
|
+
|
|
601
|
+
# auth_names
|
|
602
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
603
|
+
|
|
604
|
+
new_options = opts.merge(
|
|
605
|
+
:operation => :delete_incident_type,
|
|
606
|
+
:header_params => header_params,
|
|
607
|
+
:query_params => query_params,
|
|
608
|
+
:form_params => form_params,
|
|
609
|
+
:body => post_body,
|
|
610
|
+
:auth_names => auth_names,
|
|
611
|
+
:return_type => return_type,
|
|
612
|
+
:api_version => "V2"
|
|
613
|
+
)
|
|
614
|
+
|
|
615
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
616
|
+
if @api_client.config.debugging
|
|
617
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#delete_incident_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
618
|
+
end
|
|
619
|
+
return data, status_code, headers
|
|
620
|
+
end
|
|
621
|
+
|
|
478
622
|
# Get the details of an incident.
|
|
479
623
|
#
|
|
480
624
|
# @see #get_incident_with_http_info
|
|
@@ -700,6 +844,77 @@ module DatadogAPIClient::V2
|
|
|
700
844
|
return data, status_code, headers
|
|
701
845
|
end
|
|
702
846
|
|
|
847
|
+
# Get incident type details.
|
|
848
|
+
#
|
|
849
|
+
# @see #get_incident_type_with_http_info
|
|
850
|
+
def get_incident_type(incident_type_id, opts = {})
|
|
851
|
+
data, _status_code, _headers = get_incident_type_with_http_info(incident_type_id, opts)
|
|
852
|
+
data
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
# Get incident type details.
|
|
856
|
+
#
|
|
857
|
+
# Get incident type details.
|
|
858
|
+
#
|
|
859
|
+
# @param incident_type_id [String] The UUID of the incident type.
|
|
860
|
+
# @param opts [Hash] the optional parameters
|
|
861
|
+
# @return [Array<(IncidentTypeResponse, Integer, Hash)>] IncidentTypeResponse data, response status code and response headers
|
|
862
|
+
def get_incident_type_with_http_info(incident_type_id, opts = {})
|
|
863
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_incident_type".to_sym]
|
|
864
|
+
if unstable_enabled
|
|
865
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_incident_type")
|
|
866
|
+
else
|
|
867
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_incident_type"))
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
if @api_client.config.debugging
|
|
871
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.get_incident_type ...'
|
|
872
|
+
end
|
|
873
|
+
# verify the required parameter 'incident_type_id' is set
|
|
874
|
+
if @api_client.config.client_side_validation && incident_type_id.nil?
|
|
875
|
+
fail ArgumentError, "Missing the required parameter 'incident_type_id' when calling IncidentsAPI.get_incident_type"
|
|
876
|
+
end
|
|
877
|
+
# resource path
|
|
878
|
+
local_var_path = '/api/v2/incidents/config/types/{incident_type_id}'.sub('{incident_type_id}', CGI.escape(incident_type_id.to_s).gsub('%2F', '/'))
|
|
879
|
+
|
|
880
|
+
# query parameters
|
|
881
|
+
query_params = opts[:query_params] || {}
|
|
882
|
+
|
|
883
|
+
# header parameters
|
|
884
|
+
header_params = opts[:header_params] || {}
|
|
885
|
+
# HTTP header 'Accept' (if needed)
|
|
886
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
887
|
+
|
|
888
|
+
# form parameters
|
|
889
|
+
form_params = opts[:form_params] || {}
|
|
890
|
+
|
|
891
|
+
# http body (model)
|
|
892
|
+
post_body = opts[:debug_body]
|
|
893
|
+
|
|
894
|
+
# return_type
|
|
895
|
+
return_type = opts[:debug_return_type] || 'IncidentTypeResponse'
|
|
896
|
+
|
|
897
|
+
# auth_names
|
|
898
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
899
|
+
|
|
900
|
+
new_options = opts.merge(
|
|
901
|
+
:operation => :get_incident_type,
|
|
902
|
+
:header_params => header_params,
|
|
903
|
+
:query_params => query_params,
|
|
904
|
+
:form_params => form_params,
|
|
905
|
+
:body => post_body,
|
|
906
|
+
:auth_names => auth_names,
|
|
907
|
+
:return_type => return_type,
|
|
908
|
+
:api_version => "V2"
|
|
909
|
+
)
|
|
910
|
+
|
|
911
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
912
|
+
if @api_client.config.debugging
|
|
913
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#get_incident_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
914
|
+
end
|
|
915
|
+
return data, status_code, headers
|
|
916
|
+
end
|
|
917
|
+
|
|
703
918
|
# Get a list of attachments.
|
|
704
919
|
#
|
|
705
920
|
# @see #list_incident_attachments_with_http_info
|
|
@@ -755,7 +970,7 @@ module DatadogAPIClient::V2
|
|
|
755
970
|
return_type = opts[:debug_return_type] || 'IncidentAttachmentsResponse'
|
|
756
971
|
|
|
757
972
|
# auth_names
|
|
758
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
973
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
759
974
|
|
|
760
975
|
new_options = opts.merge(
|
|
761
976
|
:operation => :list_incident_attachments,
|
|
@@ -1010,6 +1225,74 @@ module DatadogAPIClient::V2
|
|
|
1010
1225
|
return data, status_code, headers
|
|
1011
1226
|
end
|
|
1012
1227
|
|
|
1228
|
+
# Get a list of incident types.
|
|
1229
|
+
#
|
|
1230
|
+
# @see #list_incident_types_with_http_info
|
|
1231
|
+
def list_incident_types(opts = {})
|
|
1232
|
+
data, _status_code, _headers = list_incident_types_with_http_info(opts)
|
|
1233
|
+
data
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
# Get a list of incident types.
|
|
1237
|
+
#
|
|
1238
|
+
# Get all incident types.
|
|
1239
|
+
#
|
|
1240
|
+
# @param opts [Hash] the optional parameters
|
|
1241
|
+
# @option opts [Boolean] :include_deleted Include deleted incident types in the response.
|
|
1242
|
+
# @return [Array<(IncidentTypeListResponse, Integer, Hash)>] IncidentTypeListResponse data, response status code and response headers
|
|
1243
|
+
def list_incident_types_with_http_info(opts = {})
|
|
1244
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_types".to_sym]
|
|
1245
|
+
if unstable_enabled
|
|
1246
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_types")
|
|
1247
|
+
else
|
|
1248
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_incident_types"))
|
|
1249
|
+
end
|
|
1250
|
+
|
|
1251
|
+
if @api_client.config.debugging
|
|
1252
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_types ...'
|
|
1253
|
+
end
|
|
1254
|
+
# resource path
|
|
1255
|
+
local_var_path = '/api/v2/incidents/config/types'
|
|
1256
|
+
|
|
1257
|
+
# query parameters
|
|
1258
|
+
query_params = opts[:query_params] || {}
|
|
1259
|
+
query_params[:'include_deleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
1260
|
+
|
|
1261
|
+
# header parameters
|
|
1262
|
+
header_params = opts[:header_params] || {}
|
|
1263
|
+
# HTTP header 'Accept' (if needed)
|
|
1264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1265
|
+
|
|
1266
|
+
# form parameters
|
|
1267
|
+
form_params = opts[:form_params] || {}
|
|
1268
|
+
|
|
1269
|
+
# http body (model)
|
|
1270
|
+
post_body = opts[:debug_body]
|
|
1271
|
+
|
|
1272
|
+
# return_type
|
|
1273
|
+
return_type = opts[:debug_return_type] || 'IncidentTypeListResponse'
|
|
1274
|
+
|
|
1275
|
+
# auth_names
|
|
1276
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1277
|
+
|
|
1278
|
+
new_options = opts.merge(
|
|
1279
|
+
:operation => :list_incident_types,
|
|
1280
|
+
:header_params => header_params,
|
|
1281
|
+
:query_params => query_params,
|
|
1282
|
+
:form_params => form_params,
|
|
1283
|
+
:body => post_body,
|
|
1284
|
+
:auth_names => auth_names,
|
|
1285
|
+
:return_type => return_type,
|
|
1286
|
+
:api_version => "V2"
|
|
1287
|
+
)
|
|
1288
|
+
|
|
1289
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1290
|
+
if @api_client.config.debugging
|
|
1291
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#list_incident_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1292
|
+
end
|
|
1293
|
+
return data, status_code, headers
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1013
1296
|
# Search for incidents.
|
|
1014
1297
|
#
|
|
1015
1298
|
# @see #search_incidents_with_http_info
|
|
@@ -1444,5 +1727,83 @@ module DatadogAPIClient::V2
|
|
|
1444
1727
|
end
|
|
1445
1728
|
return data, status_code, headers
|
|
1446
1729
|
end
|
|
1730
|
+
|
|
1731
|
+
# Update an incident type.
|
|
1732
|
+
#
|
|
1733
|
+
# @see #update_incident_type_with_http_info
|
|
1734
|
+
def update_incident_type(incident_type_id, body, opts = {})
|
|
1735
|
+
data, _status_code, _headers = update_incident_type_with_http_info(incident_type_id, body, opts)
|
|
1736
|
+
data
|
|
1737
|
+
end
|
|
1738
|
+
|
|
1739
|
+
# Update an incident type.
|
|
1740
|
+
#
|
|
1741
|
+
# Update an incident type.
|
|
1742
|
+
#
|
|
1743
|
+
# @param incident_type_id [String] The UUID of the incident type.
|
|
1744
|
+
# @param body [IncidentTypePatchRequest] Incident type payload.
|
|
1745
|
+
# @param opts [Hash] the optional parameters
|
|
1746
|
+
# @return [Array<(IncidentTypeResponse, Integer, Hash)>] IncidentTypeResponse data, response status code and response headers
|
|
1747
|
+
def update_incident_type_with_http_info(incident_type_id, body, opts = {})
|
|
1748
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_incident_type".to_sym]
|
|
1749
|
+
if unstable_enabled
|
|
1750
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_incident_type")
|
|
1751
|
+
else
|
|
1752
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_incident_type"))
|
|
1753
|
+
end
|
|
1754
|
+
|
|
1755
|
+
if @api_client.config.debugging
|
|
1756
|
+
@api_client.config.logger.debug 'Calling API: IncidentsAPI.update_incident_type ...'
|
|
1757
|
+
end
|
|
1758
|
+
# verify the required parameter 'incident_type_id' is set
|
|
1759
|
+
if @api_client.config.client_side_validation && incident_type_id.nil?
|
|
1760
|
+
fail ArgumentError, "Missing the required parameter 'incident_type_id' when calling IncidentsAPI.update_incident_type"
|
|
1761
|
+
end
|
|
1762
|
+
# verify the required parameter 'body' is set
|
|
1763
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1764
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling IncidentsAPI.update_incident_type"
|
|
1765
|
+
end
|
|
1766
|
+
# resource path
|
|
1767
|
+
local_var_path = '/api/v2/incidents/config/types/{incident_type_id}'.sub('{incident_type_id}', CGI.escape(incident_type_id.to_s).gsub('%2F', '/'))
|
|
1768
|
+
|
|
1769
|
+
# query parameters
|
|
1770
|
+
query_params = opts[:query_params] || {}
|
|
1771
|
+
|
|
1772
|
+
# header parameters
|
|
1773
|
+
header_params = opts[:header_params] || {}
|
|
1774
|
+
# HTTP header 'Accept' (if needed)
|
|
1775
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1776
|
+
# HTTP header 'Content-Type'
|
|
1777
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1778
|
+
|
|
1779
|
+
# form parameters
|
|
1780
|
+
form_params = opts[:form_params] || {}
|
|
1781
|
+
|
|
1782
|
+
# http body (model)
|
|
1783
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1784
|
+
|
|
1785
|
+
# return_type
|
|
1786
|
+
return_type = opts[:debug_return_type] || 'IncidentTypeResponse'
|
|
1787
|
+
|
|
1788
|
+
# auth_names
|
|
1789
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1790
|
+
|
|
1791
|
+
new_options = opts.merge(
|
|
1792
|
+
:operation => :update_incident_type,
|
|
1793
|
+
:header_params => header_params,
|
|
1794
|
+
:query_params => query_params,
|
|
1795
|
+
:form_params => form_params,
|
|
1796
|
+
:body => post_body,
|
|
1797
|
+
:auth_names => auth_names,
|
|
1798
|
+
:return_type => return_type,
|
|
1799
|
+
:api_version => "V2"
|
|
1800
|
+
)
|
|
1801
|
+
|
|
1802
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1803
|
+
if @api_client.config.debugging
|
|
1804
|
+
@api_client.config.logger.debug "API called: IncidentsAPI#update_incident_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1805
|
+
end
|
|
1806
|
+
return data, status_code, headers
|
|
1807
|
+
end
|
|
1447
1808
|
end
|
|
1448
1809
|
end
|
|
@@ -323,10 +323,10 @@ module DatadogAPIClient::V2
|
|
|
323
323
|
# @param metric_name [String] The name of the metric.
|
|
324
324
|
# @param opts [Hash] the optional parameters
|
|
325
325
|
# @option opts [String] :filter_groups Filtered tag keys that the metric is configured to query with.
|
|
326
|
-
# @option opts [Integer] :filter_hours_ago The number of hours of look back (from now) to estimate cardinality with.
|
|
326
|
+
# @option opts [Integer] :filter_hours_ago The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
|
|
327
327
|
# @option opts [Integer] :filter_num_aggregations The number of aggregations that a `count`, `rate`, or `gauge` metric is configured to use. Max number of aggregation combos is 9.
|
|
328
328
|
# @option opts [Boolean] :filter_pct A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
|
|
329
|
-
# @option opts [Integer] :filter_timespan_h A window, in hours, from the look back to estimate cardinality with.
|
|
329
|
+
# @option opts [Integer] :filter_timespan_h A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
|
|
330
330
|
# @return [Array<(MetricEstimateResponse, Integer, Hash)>] MetricEstimateResponse data, response status code and response headers
|
|
331
331
|
def estimate_metrics_output_series_with_http_info(metric_name, opts = {})
|
|
332
332
|
|
|
@@ -607,7 +607,7 @@ module DatadogAPIClient::V2
|
|
|
607
607
|
# @param opts [Hash] the optional parameters
|
|
608
608
|
# @option opts [Boolean] :filter_configured Filter custom metrics that have configured tags.
|
|
609
609
|
# @option opts [String] :filter_tags_configured Filter tag configurations by configured tags.
|
|
610
|
-
# @option opts [
|
|
610
|
+
# @option opts [MetricTagConfigurationMetricTypeCategory] :filter_metric_type Filter metrics by metric type.
|
|
611
611
|
# @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled.
|
|
612
612
|
# @option opts [Boolean] :filter_queried (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
|
|
613
613
|
# @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter.
|
|
@@ -618,7 +618,7 @@ module DatadogAPIClient::V2
|
|
|
618
618
|
if @api_client.config.debugging
|
|
619
619
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_configurations ...'
|
|
620
620
|
end
|
|
621
|
-
allowable_values = ['
|
|
621
|
+
allowable_values = ['non_distribution', 'distribution']
|
|
622
622
|
if @api_client.config.client_side_validation && opts[:'filter_metric_type'] && !allowable_values.include?(opts[:'filter_metric_type'])
|
|
623
623
|
fail ArgumentError, "invalid value for \"filter_metric_type\", must be one of #{allowable_values}"
|
|
624
624
|
end
|
|
@@ -680,7 +680,7 @@ module DatadogAPIClient::V2
|
|
|
680
680
|
|
|
681
681
|
# List tags by metric name.
|
|
682
682
|
#
|
|
683
|
-
# View indexed tag key-value pairs for a given metric name.
|
|
683
|
+
# View indexed tag key-value pairs for a given metric name over the previous hour.
|
|
684
684
|
#
|
|
685
685
|
# @param metric_name [String] The name of the metric.
|
|
686
686
|
# @param opts [Hash] the optional parameters
|
|
@@ -820,12 +820,6 @@ module DatadogAPIClient::V2
|
|
|
820
820
|
# @param opts [Hash] the optional parameters
|
|
821
821
|
# @return [Array<(ScalarFormulaQueryResponse, Integer, Hash)>] ScalarFormulaQueryResponse data, response status code and response headers
|
|
822
822
|
def query_scalar_data_with_http_info(body, opts = {})
|
|
823
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.query_scalar_data".to_sym]
|
|
824
|
-
if unstable_enabled
|
|
825
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.query_scalar_data")
|
|
826
|
-
else
|
|
827
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.query_scalar_data"))
|
|
828
|
-
end
|
|
829
823
|
|
|
830
824
|
if @api_client.config.debugging
|
|
831
825
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.query_scalar_data ...'
|
|
@@ -894,12 +888,6 @@ module DatadogAPIClient::V2
|
|
|
894
888
|
# @param opts [Hash] the optional parameters
|
|
895
889
|
# @return [Array<(TimeseriesFormulaQueryResponse, Integer, Hash)>] TimeseriesFormulaQueryResponse data, response status code and response headers
|
|
896
890
|
def query_timeseries_data_with_http_info(body, opts = {})
|
|
897
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.query_timeseries_data".to_sym]
|
|
898
|
-
if unstable_enabled
|
|
899
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.query_timeseries_data")
|
|
900
|
-
else
|
|
901
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.query_timeseries_data"))
|
|
902
|
-
end
|
|
903
891
|
|
|
904
892
|
if @api_client.config.debugging
|
|
905
893
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.query_timeseries_data ...'
|