datadog_api_client 2.19.0 → 2.21.0
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 +5 -0
- data/.generator/schemas/v1/openapi.yaml +430 -172
- data/.generator/schemas/v2/openapi.yaml +3146 -165
- data/.generator/src/generator/templates/api.j2 +5 -5
- data/CHANGELOG.md +48 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +3 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +25 -0
- data/examples/v1/logs-indexes/CreateLogsIndex.rb +5 -0
- data/examples/v1/logs-indexes/UpdateLogsIndex.rb +5 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +29 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/TriggerCITests.rb +1 -1
- data/examples/v1/synthetics/UpdateBrowserTest.rb +2 -1
- data/examples/v1/usage-metering/GetUsageLambda.rb +5 -2
- data/examples/v2/api-management/CreateOpenAPI.rb +11 -0
- data/examples/v2/api-management/DeleteOpenAPI.rb +11 -0
- data/examples/v2/api-management/GetOpenAPI.rb +11 -0
- data/examples/v2/api-management/UpdateOpenAPI.rb +14 -0
- data/examples/v2/case-management/ArchiveCase.rb +14 -0
- data/examples/v2/case-management/AssignCase.rb +20 -0
- data/examples/v2/case-management/CreateCase.rb +33 -0
- data/examples/v2/case-management/CreateProject.rb +15 -0
- data/examples/v2/case-management/DeleteProject.rb +5 -0
- data/examples/v2/case-management/GetCase.rb +8 -0
- data/examples/v2/case-management/GetProject.rb +5 -0
- data/examples/v2/case-management/GetProjects.rb +5 -0
- data/examples/v2/case-management/SearchCases.rb +5 -0
- data/examples/v2/case-management/SearchCases_3433960044.rb +5 -0
- data/examples/v2/case-management/UnarchiveCase.rb +14 -0
- data/examples/v2/case-management/UnassignCase.rb +14 -0
- data/examples/v2/case-management/UpdatePriority.rb +17 -0
- data/examples/v2/case-management/UpdateStatus.rb +17 -0
- data/examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.rb +17 -0
- data/examples/v2/cloud-workload-security/DeleteCSMThreatsAgentRule.rb +8 -0
- data/examples/v2/cloud-workload-security/DownloadCSMThreatsPolicy.rb +5 -0
- data/examples/v2/cloud-workload-security/GetCSMThreatsAgentRule.rb +8 -0
- data/examples/v2/cloud-workload-security/ListCSMThreatsAgentRules.rb +5 -0
- data/examples/v2/cloud-workload-security/UpdateCSMThreatsAgentRule.rb +20 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +6 -3
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +18 -0
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +21 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb +31 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb +31 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb +27 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb +32 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb +31 -0
- data/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb +8 -0
- data/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb +8 -0
- data/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb +5 -0
- data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +18 -0
- data/examples/v2/metrics/ListMetricAssets.rb +5 -0
- data/examples/v2/okta-integration/CreateOktaAccount.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +19 -0
- data/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb +5 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb +17 -0
- data/examples/v2/teams/GetTeamMemberships_3799131168.rb +8 -0
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +4 -0
- data/lib/datadog_api_client/inflector.rb +134 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -3
- data/lib/datadog_api_client/v1/api/organizations_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +8 -8
- data/lib/datadog_api_client/v1/models/dashboard.rb +5 -1
- data/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +2 -0
- data/lib/datadog_api_client/v1/models/gcp_account.rb +14 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +6 -0
- data/lib/datadog_api_client/v1/models/log.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +90 -0
- data/lib/datadog_api_client/v1/models/logs_index.rb +36 -1
- data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +36 -1
- data/lib/datadog_api_client/v1/models/metrics_payload.rb +1 -1
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +84 -4
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/split_config.rb +6 -6
- data/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_lambda_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +81 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +83 -3
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +182 -102
- data/lib/datadog_api_client/v2/api/api_management_api.rb +319 -0
- data/lib/datadog_api_client/v2/api/case_management_api.rb +942 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +392 -0
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +15 -0
- data/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb +355 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +69 -1
- data/lib/datadog_api_client/v2/api/organizations_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +329 -0
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -1
- data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +6 -6
- data/lib/datadog_api_client/v2/models/case.rb +150 -0
- data/lib/datadog_api_client/v2/models/case3rd_party_ticket_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_assign.rb +119 -0
- data/lib/datadog_api_client/v2/models/case_assign_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_assign_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/case_create.rb +129 -0
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/case_create_relationships.rb +116 -0
- data/lib/datadog_api_client/v2/models/case_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_empty.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_empty_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_priority.rb +31 -0
- data/lib/datadog_api_client/v2/models/case_relationships.rb +120 -0
- data/lib/datadog_api_client/v2/models/case_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/case_sortable_field.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_update_priority.rb +119 -0
- data/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_update_priority_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_update_status.rb +119 -0
- data/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_update_status_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/cases_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/cases_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +100 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +90 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +80 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/create_open_api_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_destination_attribute_tags_restriction_list_type.rb +31 -0
- data/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +119 -0
- data/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +119 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +64 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +181 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +141 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +141 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth.rb +63 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +140 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +140 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +171 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +100 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +64 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +181 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +141 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +120 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth.rb +63 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +98 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +119 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +169 -0
- data/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +129 -0
- data/lib/datadog_api_client/v2/models/custom_destinations_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +31 -20
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +14 -1
- data/lib/datadog_api_client/v2/models/jira_issue.rb +90 -0
- data/lib/datadog_api_client/v2/models/jira_issue_result.rb +110 -0
- data/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +1 -12
- data/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_asset_response_included.rb +65 -0
- data/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +110 -0
- data/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_assets_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +112 -0
- data/lib/datadog_api_client/v2/models/metric_dashboard_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_monitor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_notebook_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_slo_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_slo_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/nullable_user_relationship.rb +88 -0
- data/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/open_api_endpoint.rb +90 -0
- data/lib/datadog_api_client/v2/models/open_api_file.rb +80 -0
- data/lib/datadog_api_client/v2/models/project.rb +150 -0
- data/lib/datadog_api_client/v2/models/project_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/project_create.rb +119 -0
- data/lib/datadog_api_client/v2/models/project_create_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/project_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/project_relationship.rb +98 -0
- data/lib/datadog_api_client/v2/models/project_relationship_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/project_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/project_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/project_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/projects_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +100 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +198 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +181 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_user.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +1 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/service_now_ticket.rb +90 -0
- data/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_open_api_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/user_relationship_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/user_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/user_team_response.rb +16 -4
- data/lib/datadog_api_client/v2/models/users_relationship.rb +100 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +179 -3
- data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +0 -8
|
@@ -0,0 +1,169 @@
|
|
|
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 attributes associated with the custom destination.
|
|
21
|
+
class CustomDestinationUpdateRequestAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether logs matching this custom destination should be forwarded or not.
|
|
25
|
+
attr_accessor :enabled
|
|
26
|
+
|
|
27
|
+
# Whether tags from the forwarded logs should be forwarded or not.
|
|
28
|
+
attr_accessor :forward_tags
|
|
29
|
+
|
|
30
|
+
# List of [keys of tags](https://docs.datadoghq.com/getting_started/tagging/#define-tags) to be restricted from being forwarded.
|
|
31
|
+
# An empty list represents no restriction is in place and either all or no tags will be forwarded depending on `forward_tags_restriction_list_type` parameter.
|
|
32
|
+
attr_reader :forward_tags_restriction_list
|
|
33
|
+
|
|
34
|
+
# How `forward_tags_restriction_list` parameter should be interpreted.
|
|
35
|
+
# If `ALLOW_LIST`, then only tags whose keys on the forwarded logs match the ones on the restriction list
|
|
36
|
+
# are forwarded.
|
|
37
|
+
#
|
|
38
|
+
# `BLOCK_LIST` works the opposite way. It does not forward the tags matching the ones on the list.
|
|
39
|
+
attr_accessor :forward_tags_restriction_list_type
|
|
40
|
+
|
|
41
|
+
# A custom destination's location to forward logs.
|
|
42
|
+
attr_accessor :forwarder_destination
|
|
43
|
+
|
|
44
|
+
# The custom destination name.
|
|
45
|
+
attr_accessor :name
|
|
46
|
+
|
|
47
|
+
# The custom destination query and filter. Logs matching this query are forwarded to the destination.
|
|
48
|
+
attr_accessor :query
|
|
49
|
+
|
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
|
+
# @!visibility private
|
|
52
|
+
def self.attribute_map
|
|
53
|
+
{
|
|
54
|
+
:'enabled' => :'enabled',
|
|
55
|
+
:'forward_tags' => :'forward_tags',
|
|
56
|
+
:'forward_tags_restriction_list' => :'forward_tags_restriction_list',
|
|
57
|
+
:'forward_tags_restriction_list_type' => :'forward_tags_restriction_list_type',
|
|
58
|
+
:'forwarder_destination' => :'forwarder_destination',
|
|
59
|
+
:'name' => :'name',
|
|
60
|
+
:'query' => :'query'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Attribute type mapping.
|
|
65
|
+
# @!visibility private
|
|
66
|
+
def self.openapi_types
|
|
67
|
+
{
|
|
68
|
+
:'enabled' => :'Boolean',
|
|
69
|
+
:'forward_tags' => :'Boolean',
|
|
70
|
+
:'forward_tags_restriction_list' => :'Array<String>',
|
|
71
|
+
:'forward_tags_restriction_list_type' => :'CustomDestinationAttributeTagsRestrictionListType',
|
|
72
|
+
:'forwarder_destination' => :'CustomDestinationForwardDestination',
|
|
73
|
+
:'name' => :'String',
|
|
74
|
+
:'query' => :'String'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Initializes the object
|
|
79
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
80
|
+
# @!visibility private
|
|
81
|
+
def initialize(attributes = {})
|
|
82
|
+
if (!attributes.is_a?(Hash))
|
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationUpdateRequestAttributes` initialize method"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationUpdateRequestAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
90
|
+
end
|
|
91
|
+
h[k.to_sym] = v
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'enabled')
|
|
95
|
+
self.enabled = attributes[:'enabled']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'forward_tags')
|
|
99
|
+
self.forward_tags = attributes[:'forward_tags']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'forward_tags_restriction_list')
|
|
103
|
+
if (value = attributes[:'forward_tags_restriction_list']).is_a?(Array)
|
|
104
|
+
self.forward_tags_restriction_list = value
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'forward_tags_restriction_list_type')
|
|
109
|
+
self.forward_tags_restriction_list_type = attributes[:'forward_tags_restriction_list_type']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'forwarder_destination')
|
|
113
|
+
self.forwarder_destination = attributes[:'forwarder_destination']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'name')
|
|
117
|
+
self.name = attributes[:'name']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'query')
|
|
121
|
+
self.query = attributes[:'query']
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Check to see if the all the properties in the model are valid
|
|
126
|
+
# @return true if the model is valid
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def valid?
|
|
129
|
+
return false if !@forward_tags_restriction_list.nil? && @forward_tags_restriction_list.length > 10
|
|
130
|
+
return false if !@forward_tags_restriction_list.nil? && @forward_tags_restriction_list.length < 0
|
|
131
|
+
true
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param forward_tags_restriction_list [Object] Object to be assigned
|
|
136
|
+
# @!visibility private
|
|
137
|
+
def forward_tags_restriction_list=(forward_tags_restriction_list)
|
|
138
|
+
if !forward_tags_restriction_list.nil? && forward_tags_restriction_list.length > 10
|
|
139
|
+
fail ArgumentError, 'invalid value for "forward_tags_restriction_list", number of items must be less than or equal to 10.'
|
|
140
|
+
end
|
|
141
|
+
if !forward_tags_restriction_list.nil? && forward_tags_restriction_list.length < 0
|
|
142
|
+
fail ArgumentError, 'invalid value for "forward_tags_restriction_list", number of items must be greater than or equal to 0.'
|
|
143
|
+
end
|
|
144
|
+
@forward_tags_restriction_list = forward_tags_restriction_list
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Checks equality by comparing each attribute.
|
|
148
|
+
# @param o [Object] Object to be compared
|
|
149
|
+
# @!visibility private
|
|
150
|
+
def ==(o)
|
|
151
|
+
return true if self.equal?(o)
|
|
152
|
+
self.class == o.class &&
|
|
153
|
+
enabled == o.enabled &&
|
|
154
|
+
forward_tags == o.forward_tags &&
|
|
155
|
+
forward_tags_restriction_list == o.forward_tags_restriction_list &&
|
|
156
|
+
forward_tags_restriction_list_type == o.forward_tags_restriction_list_type &&
|
|
157
|
+
forwarder_destination == o.forwarder_destination &&
|
|
158
|
+
name == o.name &&
|
|
159
|
+
query == o.query
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Calculates hash code according to all attributes.
|
|
163
|
+
# @return [Integer] Hash code
|
|
164
|
+
# @!visibility private
|
|
165
|
+
def hash
|
|
166
|
+
[enabled, forward_tags, forward_tags_restriction_list, forward_tags_restriction_list_type, forwarder_destination, name, query].hash
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
@@ -0,0 +1,129 @@
|
|
|
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 definition of a custom destination.
|
|
21
|
+
class CustomDestinationUpdateRequestDefinition
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The attributes associated with the custom destination.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# The custom destination ID.
|
|
28
|
+
attr_reader :id
|
|
29
|
+
|
|
30
|
+
# The type of the resource. The value should always be `custom_destination`.
|
|
31
|
+
attr_reader :type
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
# @!visibility private
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
39
|
+
:'type' => :'type'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'attributes' => :'CustomDestinationUpdateRequestAttributes',
|
|
48
|
+
:'id' => :'String',
|
|
49
|
+
:'type' => :'CustomDestinationType'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Initializes the object
|
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationUpdateRequestDefinition` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationUpdateRequestDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'attributes')
|
|
70
|
+
self.attributes = attributes[:'attributes']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'id')
|
|
74
|
+
self.id = attributes[:'id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'type')
|
|
78
|
+
self.type = attributes[:'type']
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
# @!visibility private
|
|
85
|
+
def valid?
|
|
86
|
+
return false if @id.nil?
|
|
87
|
+
return false if @type.nil?
|
|
88
|
+
true
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Custom attribute writer method with validation
|
|
92
|
+
# @param id [Object] Object to be assigned
|
|
93
|
+
# @!visibility private
|
|
94
|
+
def id=(id)
|
|
95
|
+
if id.nil?
|
|
96
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
97
|
+
end
|
|
98
|
+
@id = id
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method with validation
|
|
102
|
+
# @param type [Object] Object to be assigned
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def type=(type)
|
|
105
|
+
if type.nil?
|
|
106
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
107
|
+
end
|
|
108
|
+
@type = type
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Checks equality by comparing each attribute.
|
|
112
|
+
# @param o [Object] Object to be compared
|
|
113
|
+
# @!visibility private
|
|
114
|
+
def ==(o)
|
|
115
|
+
return true if self.equal?(o)
|
|
116
|
+
self.class == o.class &&
|
|
117
|
+
attributes == o.attributes &&
|
|
118
|
+
id == o.id &&
|
|
119
|
+
type == o.type
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
# @!visibility private
|
|
125
|
+
def hash
|
|
126
|
+
[attributes, id, type].hash
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
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 available custom destinations.
|
|
21
|
+
class CustomDestinationsResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A list of custom destinations.
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
# @!visibility private
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'data' => :'data'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'data' => :'Array<CustomDestinationResponseDefinition>'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Initializes the object
|
|
44
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
45
|
+
# @!visibility private
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
if (!attributes.is_a?(Hash))
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CustomDestinationsResponse` initialize method"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CustomDestinationsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
55
|
+
end
|
|
56
|
+
h[k.to_sym] = v
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if attributes.key?(:'data')
|
|
60
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
61
|
+
self.data = value
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Checks equality by comparing each attribute.
|
|
67
|
+
# @param o [Object] Object to be compared
|
|
68
|
+
# @!visibility private
|
|
69
|
+
def ==(o)
|
|
70
|
+
return true if self.equal?(o)
|
|
71
|
+
self.class == o.class &&
|
|
72
|
+
data == o.data
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Calculates hash code according to all attributes.
|
|
76
|
+
# @return [Integer] Hash code
|
|
77
|
+
# @!visibility private
|
|
78
|
+
def hash
|
|
79
|
+
[data].hash
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class DORADeploymentRequestAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Environment name to where the service was deployed.
|
|
25
|
+
attr_accessor :env
|
|
26
|
+
|
|
24
27
|
# Unix timestamp in nanoseconds when the deployment finished. It should not be older than 3 hours.
|
|
25
28
|
attr_reader :finished_at
|
|
26
29
|
|
|
@@ -43,6 +46,7 @@ module DatadogAPIClient::V2
|
|
|
43
46
|
# @!visibility private
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
{
|
|
49
|
+
:'env' => :'env',
|
|
46
50
|
:'finished_at' => :'finished_at',
|
|
47
51
|
:'git' => :'git',
|
|
48
52
|
:'id' => :'id',
|
|
@@ -56,6 +60,7 @@ module DatadogAPIClient::V2
|
|
|
56
60
|
# @!visibility private
|
|
57
61
|
def self.openapi_types
|
|
58
62
|
{
|
|
63
|
+
:'env' => :'String',
|
|
59
64
|
:'finished_at' => :'Integer',
|
|
60
65
|
:'git' => :'DORAGitInfo',
|
|
61
66
|
:'id' => :'String',
|
|
@@ -81,6 +86,10 @@ module DatadogAPIClient::V2
|
|
|
81
86
|
h[k.to_sym] = v
|
|
82
87
|
}
|
|
83
88
|
|
|
89
|
+
if attributes.key?(:'env')
|
|
90
|
+
self.env = attributes[:'env']
|
|
91
|
+
end
|
|
92
|
+
|
|
84
93
|
if attributes.key?(:'finished_at')
|
|
85
94
|
self.finished_at = attributes[:'finished_at']
|
|
86
95
|
end
|
|
@@ -152,6 +161,7 @@ module DatadogAPIClient::V2
|
|
|
152
161
|
def ==(o)
|
|
153
162
|
return true if self.equal?(o)
|
|
154
163
|
self.class == o.class &&
|
|
164
|
+
env == o.env &&
|
|
155
165
|
finished_at == o.finished_at &&
|
|
156
166
|
git == o.git &&
|
|
157
167
|
id == o.id &&
|
|
@@ -164,7 +174,7 @@ module DatadogAPIClient::V2
|
|
|
164
174
|
# @return [Integer] Hash code
|
|
165
175
|
# @!visibility private
|
|
166
176
|
def hash
|
|
167
|
-
[finished_at, git, id, service, started_at, version].hash
|
|
177
|
+
[env, finished_at, git, id, service, started_at, version].hash
|
|
168
178
|
end
|
|
169
179
|
end
|
|
170
180
|
end
|
|
@@ -21,20 +21,23 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class DORAIncidentRequestAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Environment name that was impacted by the incident.
|
|
25
|
+
attr_accessor :env
|
|
26
|
+
|
|
24
27
|
# Unix timestamp in nanoseconds when the incident finished. It should not be older than 3 hours.
|
|
25
28
|
attr_accessor :finished_at
|
|
26
29
|
|
|
27
30
|
# Git info for DORA Metrics events.
|
|
28
31
|
attr_accessor :git
|
|
29
32
|
|
|
30
|
-
# Incident ID
|
|
33
|
+
# Incident ID. Required to update a previously sent incident.
|
|
31
34
|
attr_accessor :id
|
|
32
35
|
|
|
33
36
|
# Incident name.
|
|
34
37
|
attr_accessor :name
|
|
35
38
|
|
|
36
|
-
# Service
|
|
37
|
-
|
|
39
|
+
# Service names impacted by the incident. If possible, use names registered in the Service Catalog. Required when the team field is not provided.
|
|
40
|
+
attr_accessor :services
|
|
38
41
|
|
|
39
42
|
# Incident severity.
|
|
40
43
|
attr_accessor :severity
|
|
@@ -42,6 +45,9 @@ module DatadogAPIClient::V2
|
|
|
42
45
|
# Unix timestamp in nanoseconds when the incident started.
|
|
43
46
|
attr_reader :started_at
|
|
44
47
|
|
|
48
|
+
# Name of the team owning the services impacted. If possible, use team handles registered in Datadog. Required when the services field is not provided.
|
|
49
|
+
attr_accessor :team
|
|
50
|
+
|
|
45
51
|
# Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).
|
|
46
52
|
attr_accessor :version
|
|
47
53
|
|
|
@@ -49,13 +55,15 @@ module DatadogAPIClient::V2
|
|
|
49
55
|
# @!visibility private
|
|
50
56
|
def self.attribute_map
|
|
51
57
|
{
|
|
58
|
+
:'env' => :'env',
|
|
52
59
|
:'finished_at' => :'finished_at',
|
|
53
60
|
:'git' => :'git',
|
|
54
61
|
:'id' => :'id',
|
|
55
62
|
:'name' => :'name',
|
|
56
|
-
:'
|
|
63
|
+
:'services' => :'services',
|
|
57
64
|
:'severity' => :'severity',
|
|
58
65
|
:'started_at' => :'started_at',
|
|
66
|
+
:'team' => :'team',
|
|
59
67
|
:'version' => :'version'
|
|
60
68
|
}
|
|
61
69
|
end
|
|
@@ -64,13 +72,15 @@ module DatadogAPIClient::V2
|
|
|
64
72
|
# @!visibility private
|
|
65
73
|
def self.openapi_types
|
|
66
74
|
{
|
|
75
|
+
:'env' => :'String',
|
|
67
76
|
:'finished_at' => :'Integer',
|
|
68
77
|
:'git' => :'DORAGitInfo',
|
|
69
78
|
:'id' => :'String',
|
|
70
79
|
:'name' => :'String',
|
|
71
|
-
:'
|
|
80
|
+
:'services' => :'Array<String>',
|
|
72
81
|
:'severity' => :'String',
|
|
73
82
|
:'started_at' => :'Integer',
|
|
83
|
+
:'team' => :'String',
|
|
74
84
|
:'version' => :'String'
|
|
75
85
|
}
|
|
76
86
|
end
|
|
@@ -91,6 +101,10 @@ module DatadogAPIClient::V2
|
|
|
91
101
|
h[k.to_sym] = v
|
|
92
102
|
}
|
|
93
103
|
|
|
104
|
+
if attributes.key?(:'env')
|
|
105
|
+
self.env = attributes[:'env']
|
|
106
|
+
end
|
|
107
|
+
|
|
94
108
|
if attributes.key?(:'finished_at')
|
|
95
109
|
self.finished_at = attributes[:'finished_at']
|
|
96
110
|
end
|
|
@@ -107,8 +121,10 @@ module DatadogAPIClient::V2
|
|
|
107
121
|
self.name = attributes[:'name']
|
|
108
122
|
end
|
|
109
123
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
|
|
124
|
+
if attributes.key?(:'services')
|
|
125
|
+
if (value = attributes[:'services']).is_a?(Array)
|
|
126
|
+
self.services = value
|
|
127
|
+
end
|
|
112
128
|
end
|
|
113
129
|
|
|
114
130
|
if attributes.key?(:'severity')
|
|
@@ -119,6 +135,10 @@ module DatadogAPIClient::V2
|
|
|
119
135
|
self.started_at = attributes[:'started_at']
|
|
120
136
|
end
|
|
121
137
|
|
|
138
|
+
if attributes.key?(:'team')
|
|
139
|
+
self.team = attributes[:'team']
|
|
140
|
+
end
|
|
141
|
+
|
|
122
142
|
if attributes.key?(:'version')
|
|
123
143
|
self.version = attributes[:'version']
|
|
124
144
|
end
|
|
@@ -128,21 +148,10 @@ module DatadogAPIClient::V2
|
|
|
128
148
|
# @return true if the model is valid
|
|
129
149
|
# @!visibility private
|
|
130
150
|
def valid?
|
|
131
|
-
return false if @service.nil?
|
|
132
151
|
return false if @started_at.nil?
|
|
133
152
|
true
|
|
134
153
|
end
|
|
135
154
|
|
|
136
|
-
# Custom attribute writer method with validation
|
|
137
|
-
# @param service [Object] Object to be assigned
|
|
138
|
-
# @!visibility private
|
|
139
|
-
def service=(service)
|
|
140
|
-
if service.nil?
|
|
141
|
-
fail ArgumentError, 'invalid value for "service", service cannot be nil.'
|
|
142
|
-
end
|
|
143
|
-
@service = service
|
|
144
|
-
end
|
|
145
|
-
|
|
146
155
|
# Custom attribute writer method with validation
|
|
147
156
|
# @param started_at [Object] Object to be assigned
|
|
148
157
|
# @!visibility private
|
|
@@ -159,13 +168,15 @@ module DatadogAPIClient::V2
|
|
|
159
168
|
def ==(o)
|
|
160
169
|
return true if self.equal?(o)
|
|
161
170
|
self.class == o.class &&
|
|
171
|
+
env == o.env &&
|
|
162
172
|
finished_at == o.finished_at &&
|
|
163
173
|
git == o.git &&
|
|
164
174
|
id == o.id &&
|
|
165
175
|
name == o.name &&
|
|
166
|
-
|
|
176
|
+
services == o.services &&
|
|
167
177
|
severity == o.severity &&
|
|
168
178
|
started_at == o.started_at &&
|
|
179
|
+
team == o.team &&
|
|
169
180
|
version == o.version
|
|
170
181
|
end
|
|
171
182
|
|
|
@@ -173,7 +184,7 @@ module DatadogAPIClient::V2
|
|
|
173
184
|
# @return [Integer] Hash code
|
|
174
185
|
# @!visibility private
|
|
175
186
|
def hash
|
|
176
|
-
[finished_at, git, id, name,
|
|
187
|
+
[env, finished_at, git, id, name, services, severity, started_at, team, version].hash
|
|
177
188
|
end
|
|
178
189
|
end
|
|
179
190
|
end
|
|
@@ -30,6 +30,10 @@ module DatadogAPIClient::V2
|
|
|
30
30
|
# Your service account email address.
|
|
31
31
|
attr_accessor :client_email
|
|
32
32
|
|
|
33
|
+
# List of filters to limit the Cloud Run revisions that are pulled into Datadog by using tags.
|
|
34
|
+
# Only Cloud Run revision resources that apply to specified filters are imported into Datadog.
|
|
35
|
+
attr_accessor :cloud_run_revision_filters
|
|
36
|
+
|
|
33
37
|
# Your Host Filters.
|
|
34
38
|
attr_accessor :host_filters
|
|
35
39
|
|
|
@@ -49,6 +53,7 @@ module DatadogAPIClient::V2
|
|
|
49
53
|
:'account_tags' => :'account_tags',
|
|
50
54
|
:'automute' => :'automute',
|
|
51
55
|
:'client_email' => :'client_email',
|
|
56
|
+
:'cloud_run_revision_filters' => :'cloud_run_revision_filters',
|
|
52
57
|
:'host_filters' => :'host_filters',
|
|
53
58
|
:'is_cspm_enabled' => :'is_cspm_enabled',
|
|
54
59
|
:'is_security_command_center_enabled' => :'is_security_command_center_enabled',
|
|
@@ -63,6 +68,7 @@ module DatadogAPIClient::V2
|
|
|
63
68
|
:'account_tags' => :'Array<String>',
|
|
64
69
|
:'automute' => :'Boolean',
|
|
65
70
|
:'client_email' => :'String',
|
|
71
|
+
:'cloud_run_revision_filters' => :'Array<String>',
|
|
66
72
|
:'host_filters' => :'Array<String>',
|
|
67
73
|
:'is_cspm_enabled' => :'Boolean',
|
|
68
74
|
:'is_security_command_center_enabled' => :'Boolean',
|
|
@@ -100,6 +106,12 @@ module DatadogAPIClient::V2
|
|
|
100
106
|
self.client_email = attributes[:'client_email']
|
|
101
107
|
end
|
|
102
108
|
|
|
109
|
+
if attributes.key?(:'cloud_run_revision_filters')
|
|
110
|
+
if (value = attributes[:'cloud_run_revision_filters']).is_a?(Array)
|
|
111
|
+
self.cloud_run_revision_filters = value
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
103
115
|
if attributes.key?(:'host_filters')
|
|
104
116
|
if (value = attributes[:'host_filters']).is_a?(Array)
|
|
105
117
|
self.host_filters = value
|
|
@@ -128,6 +140,7 @@ module DatadogAPIClient::V2
|
|
|
128
140
|
account_tags == o.account_tags &&
|
|
129
141
|
automute == o.automute &&
|
|
130
142
|
client_email == o.client_email &&
|
|
143
|
+
cloud_run_revision_filters == o.cloud_run_revision_filters &&
|
|
131
144
|
host_filters == o.host_filters &&
|
|
132
145
|
is_cspm_enabled == o.is_cspm_enabled &&
|
|
133
146
|
is_security_command_center_enabled == o.is_security_command_center_enabled &&
|
|
@@ -138,7 +151,7 @@ module DatadogAPIClient::V2
|
|
|
138
151
|
# @return [Integer] Hash code
|
|
139
152
|
# @!visibility private
|
|
140
153
|
def hash
|
|
141
|
-
[account_tags, automute, client_email, host_filters, is_cspm_enabled, is_security_command_center_enabled, resource_collection_enabled].hash
|
|
154
|
+
[account_tags, automute, client_email, cloud_run_revision_filters, host_filters, is_cspm_enabled, is_security_command_center_enabled, resource_collection_enabled].hash
|
|
142
155
|
end
|
|
143
156
|
end
|
|
144
157
|
end
|