datadog_api_client 2.20.0 → 2.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +5 -0
- data/.generator/schemas/v1/openapi.yaml +502 -754
- data/.generator/schemas/v2/openapi.yaml +2903 -102
- data/.github/workflows/prepare_release.yml +2 -2
- data/.github/workflows/publish.yml +2 -2
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +52 -0
- data/Gemfile +1 -1
- data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +3 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +25 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +29 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +4 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
- data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
- data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
- 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.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +18 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +21 -0
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
- 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 +22 -0
- data/examples/v2/metrics/ListMetricAssets.rb +5 -0
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
- data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
- data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
- data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +132 -7
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +104 -131
- data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
- 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 +8 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +12 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +124 -4
- data/lib/datadog_api_client/v1/models/series.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
- data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
- 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 +23 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
- 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/apm_retention_filters_api.rb +6 -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 +70 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +67 -0
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -1
- data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +15 -6
- data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
- 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/{v1/models/usage_attribution_pagination.rb → v2/models/case_update_status_attributes.rb} +29 -51
- data/lib/datadog_api_client/v2/models/case_update_status_request.rb +98 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_metadata.rb → v2/models/cases_response.rb} +22 -22
- 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/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 +1 -1
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +21 -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_series.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/{v1/models/usage_attribution_response.rb → v2/models/nullable_user_relationship.rb} +22 -26
- data/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +119 -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/relationship_to_team.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -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_definition_v2_dot2.rb +13 -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/slo_report_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
- data/lib/datadog_api_client/v2/models/slo_report_create_request_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -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/user_teams_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/users_relationship.rb +100 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +196 -33
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -61
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -72
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -0,0 +1,90 @@
|
|
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
|
+
# Relationship to Team object.
|
21
|
+
class RelationshipToTeamData
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The unique identifier of the team.
|
25
|
+
attr_accessor :id
|
26
|
+
|
27
|
+
# Team type
|
28
|
+
attr_accessor :type
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
# @!visibility private
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'id' => :'id',
|
35
|
+
:'type' => :'type'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'id' => :'String',
|
44
|
+
:'type' => :'TeamType'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
50
|
+
# @!visibility private
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToTeamData` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RelationshipToTeamData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'id')
|
65
|
+
self.id = attributes[:'id']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'type')
|
69
|
+
self.type = attributes[:'type']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param o [Object] Object to be compared
|
75
|
+
# @!visibility private
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
id == o.id &&
|
80
|
+
type == o.type
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Integer] Hash code
|
85
|
+
# @!visibility private
|
86
|
+
def hash
|
87
|
+
[id, type].hash
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,183 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The object describing the configuration of the retention filter to create/update.
|
21
|
+
class RetentionFilterUpdateAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Enable/Disable the retention filter.
|
25
|
+
attr_reader :enabled
|
26
|
+
|
27
|
+
# The spans filter. Spans matching this filter will be indexed and stored.
|
28
|
+
attr_reader :filter
|
29
|
+
|
30
|
+
# The type of retention filter.
|
31
|
+
attr_reader :filter_type
|
32
|
+
|
33
|
+
# The name of the retention filter.
|
34
|
+
attr_reader :name
|
35
|
+
|
36
|
+
# Sample rate to apply to spans going through this retention filter,
|
37
|
+
# a value of 1.0 keeps all spans matching the query.
|
38
|
+
attr_reader :rate
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
# @!visibility private
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'enabled' => :'enabled',
|
45
|
+
:'filter' => :'filter',
|
46
|
+
:'filter_type' => :'filter_type',
|
47
|
+
:'name' => :'name',
|
48
|
+
:'rate' => :'rate'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Attribute type mapping.
|
53
|
+
# @!visibility private
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'enabled' => :'Boolean',
|
57
|
+
:'filter' => :'SpansFilterCreate',
|
58
|
+
:'filter_type' => :'RetentionFilterAllType',
|
59
|
+
:'name' => :'String',
|
60
|
+
:'rate' => :'Float'
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
# Initializes the object
|
65
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
66
|
+
# @!visibility private
|
67
|
+
def initialize(attributes = {})
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RetentionFilterUpdateAttributes` initialize method"
|
70
|
+
end
|
71
|
+
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::RetentionFilterUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
79
|
+
|
80
|
+
if attributes.key?(:'enabled')
|
81
|
+
self.enabled = attributes[:'enabled']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'filter')
|
85
|
+
self.filter = attributes[:'filter']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'filter_type')
|
89
|
+
self.filter_type = attributes[:'filter_type']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'name')
|
93
|
+
self.name = attributes[:'name']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'rate')
|
97
|
+
self.rate = attributes[:'rate']
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Check to see if the all the properties in the model are valid
|
102
|
+
# @return true if the model is valid
|
103
|
+
# @!visibility private
|
104
|
+
def valid?
|
105
|
+
return false if @enabled.nil?
|
106
|
+
return false if @filter.nil?
|
107
|
+
return false if @filter_type.nil?
|
108
|
+
return false if @name.nil?
|
109
|
+
return false if @rate.nil?
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Custom attribute writer method with validation
|
114
|
+
# @param enabled [Object] Object to be assigned
|
115
|
+
# @!visibility private
|
116
|
+
def enabled=(enabled)
|
117
|
+
if enabled.nil?
|
118
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
119
|
+
end
|
120
|
+
@enabled = enabled
|
121
|
+
end
|
122
|
+
|
123
|
+
# Custom attribute writer method with validation
|
124
|
+
# @param filter [Object] Object to be assigned
|
125
|
+
# @!visibility private
|
126
|
+
def filter=(filter)
|
127
|
+
if filter.nil?
|
128
|
+
fail ArgumentError, 'invalid value for "filter", filter cannot be nil.'
|
129
|
+
end
|
130
|
+
@filter = filter
|
131
|
+
end
|
132
|
+
|
133
|
+
# Custom attribute writer method with validation
|
134
|
+
# @param filter_type [Object] Object to be assigned
|
135
|
+
# @!visibility private
|
136
|
+
def filter_type=(filter_type)
|
137
|
+
if filter_type.nil?
|
138
|
+
fail ArgumentError, 'invalid value for "filter_type", filter_type cannot be nil.'
|
139
|
+
end
|
140
|
+
@filter_type = filter_type
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method with validation
|
144
|
+
# @param name [Object] Object to be assigned
|
145
|
+
# @!visibility private
|
146
|
+
def name=(name)
|
147
|
+
if name.nil?
|
148
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
149
|
+
end
|
150
|
+
@name = name
|
151
|
+
end
|
152
|
+
|
153
|
+
# Custom attribute writer method with validation
|
154
|
+
# @param rate [Object] Object to be assigned
|
155
|
+
# @!visibility private
|
156
|
+
def rate=(rate)
|
157
|
+
if rate.nil?
|
158
|
+
fail ArgumentError, 'invalid value for "rate", rate cannot be nil.'
|
159
|
+
end
|
160
|
+
@rate = rate
|
161
|
+
end
|
162
|
+
|
163
|
+
# Checks equality by comparing each attribute.
|
164
|
+
# @param o [Object] Object to be compared
|
165
|
+
# @!visibility private
|
166
|
+
def ==(o)
|
167
|
+
return true if self.equal?(o)
|
168
|
+
self.class == o.class &&
|
169
|
+
enabled == o.enabled &&
|
170
|
+
filter == o.filter &&
|
171
|
+
filter_type == o.filter_type &&
|
172
|
+
name == o.name &&
|
173
|
+
rate == o.rate
|
174
|
+
end
|
175
|
+
|
176
|
+
# Calculates hash code according to all attributes.
|
177
|
+
# @return [Integer] Hash code
|
178
|
+
# @!visibility private
|
179
|
+
def hash
|
180
|
+
[enabled, filter, filter_type, name, rate].hash
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
|
|
44
44
|
# @!visibility private
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'attributes' => :'
|
47
|
+
:'attributes' => :'RetentionFilterUpdateAttributes',
|
48
48
|
:'id' => :'String',
|
49
49
|
:'type' => :'ApmRetentionFilterType'
|
50
50
|
}
|
@@ -27,7 +27,7 @@ module DatadogAPIClient::V2
|
|
27
27
|
# How to generate compliance signals. Useful for cloud_configuration rules only.
|
28
28
|
attr_accessor :compliance_signal_options
|
29
29
|
|
30
|
-
# Additional queries to filter matched events before they are processed.
|
30
|
+
# Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
|
31
31
|
attr_accessor :filters
|
32
32
|
|
33
33
|
# Whether the notifications include the triggering group-by values in their title.
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Cases for generating signals.
|
25
25
|
attr_reader :cases
|
26
26
|
|
27
|
-
# Additional queries to filter matched events before they are processed.
|
27
|
+
# Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
|
28
28
|
attr_accessor :filters
|
29
29
|
|
30
30
|
# Whether the notifications include the triggering group-by values in their title.
|
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
|
|
33
33
|
# When the rule will be deprecated, timestamp in milliseconds.
|
34
34
|
attr_accessor :deprecation_date
|
35
35
|
|
36
|
-
# Additional queries to filter matched events before they are processed.
|
36
|
+
# Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
|
37
37
|
attr_accessor :filters
|
38
38
|
|
39
39
|
# Whether the notifications include the triggering group-by values in their title.
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Cases for generating signals.
|
25
25
|
attr_reader :cases
|
26
26
|
|
27
|
-
# Additional queries to filter matched events before they are processed.
|
27
|
+
# Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
|
28
28
|
attr_accessor :filters
|
29
29
|
|
30
30
|
# Whether the notifications include the triggering group-by values in their title.
|
@@ -36,7 +36,7 @@ module DatadogAPIClient::V2
|
|
36
36
|
# When the rule will be deprecated, timestamp in milliseconds.
|
37
37
|
attr_accessor :deprecation_date
|
38
38
|
|
39
|
-
# Additional queries to filter matched events before they are processed.
|
39
|
+
# Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
|
40
40
|
attr_accessor :filters
|
41
41
|
|
42
42
|
# Whether the notifications include the triggering group-by values in their title.
|
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
|
|
27
27
|
# A user.
|
28
28
|
attr_accessor :creator
|
29
29
|
|
30
|
+
# An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule.
|
31
|
+
attr_accessor :data_exclusion_query
|
32
|
+
|
30
33
|
# A description for the suppression rule.
|
31
34
|
attr_accessor :description
|
32
35
|
|
@@ -60,6 +63,7 @@ module DatadogAPIClient::V2
|
|
60
63
|
{
|
61
64
|
:'creation_date' => :'creation_date',
|
62
65
|
:'creator' => :'creator',
|
66
|
+
:'data_exclusion_query' => :'data_exclusion_query',
|
63
67
|
:'description' => :'description',
|
64
68
|
:'enabled' => :'enabled',
|
65
69
|
:'expiration_date' => :'expiration_date',
|
@@ -78,6 +82,7 @@ module DatadogAPIClient::V2
|
|
78
82
|
{
|
79
83
|
:'creation_date' => :'Integer',
|
80
84
|
:'creator' => :'SecurityMonitoringUser',
|
85
|
+
:'data_exclusion_query' => :'String',
|
81
86
|
:'description' => :'String',
|
82
87
|
:'enabled' => :'Boolean',
|
83
88
|
:'expiration_date' => :'Integer',
|
@@ -114,6 +119,10 @@ module DatadogAPIClient::V2
|
|
114
119
|
self.creator = attributes[:'creator']
|
115
120
|
end
|
116
121
|
|
122
|
+
if attributes.key?(:'data_exclusion_query')
|
123
|
+
self.data_exclusion_query = attributes[:'data_exclusion_query']
|
124
|
+
end
|
125
|
+
|
117
126
|
if attributes.key?(:'description')
|
118
127
|
self.description = attributes[:'description']
|
119
128
|
end
|
@@ -177,6 +186,7 @@ module DatadogAPIClient::V2
|
|
177
186
|
self.class == o.class &&
|
178
187
|
creation_date == o.creation_date &&
|
179
188
|
creator == o.creator &&
|
189
|
+
data_exclusion_query == o.data_exclusion_query &&
|
180
190
|
description == o.description &&
|
181
191
|
enabled == o.enabled &&
|
182
192
|
expiration_date == o.expiration_date &&
|
@@ -192,7 +202,7 @@ module DatadogAPIClient::V2
|
|
192
202
|
# @return [Integer] Hash code
|
193
203
|
# @!visibility private
|
194
204
|
def hash
|
195
|
-
[creation_date, creator, description, enabled, expiration_date, name, rule_query, suppression_query, update_date, updater, version].hash
|
205
|
+
[creation_date, creator, data_exclusion_query, description, enabled, expiration_date, name, rule_query, suppression_query, update_date, updater, version].hash
|
196
206
|
end
|
197
207
|
end
|
198
208
|
end
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
21
21
|
class SecurityMonitoringSuppressionCreateAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule.
|
25
|
+
attr_accessor :data_exclusion_query
|
26
|
+
|
24
27
|
# A description for the suppression rule.
|
25
28
|
attr_accessor :description
|
26
29
|
|
@@ -36,13 +39,14 @@ module DatadogAPIClient::V2
|
|
36
39
|
# The rule query of the suppression rule, with the same syntax as the search bar for detection rules.
|
37
40
|
attr_reader :rule_query
|
38
41
|
|
39
|
-
# The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered
|
40
|
-
|
42
|
+
# The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered. It uses the same syntax as the queries to search signals in the Signals Explorer.
|
43
|
+
attr_accessor :suppression_query
|
41
44
|
|
42
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
46
|
# @!visibility private
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
49
|
+
:'data_exclusion_query' => :'data_exclusion_query',
|
46
50
|
:'description' => :'description',
|
47
51
|
:'enabled' => :'enabled',
|
48
52
|
:'expiration_date' => :'expiration_date',
|
@@ -56,6 +60,7 @@ module DatadogAPIClient::V2
|
|
56
60
|
# @!visibility private
|
57
61
|
def self.openapi_types
|
58
62
|
{
|
63
|
+
:'data_exclusion_query' => :'String',
|
59
64
|
:'description' => :'String',
|
60
65
|
:'enabled' => :'Boolean',
|
61
66
|
:'expiration_date' => :'Integer',
|
@@ -81,6 +86,10 @@ module DatadogAPIClient::V2
|
|
81
86
|
h[k.to_sym] = v
|
82
87
|
}
|
83
88
|
|
89
|
+
if attributes.key?(:'data_exclusion_query')
|
90
|
+
self.data_exclusion_query = attributes[:'data_exclusion_query']
|
91
|
+
end
|
92
|
+
|
84
93
|
if attributes.key?(:'description')
|
85
94
|
self.description = attributes[:'description']
|
86
95
|
end
|
@@ -113,7 +122,6 @@ module DatadogAPIClient::V2
|
|
113
122
|
return false if @enabled.nil?
|
114
123
|
return false if @name.nil?
|
115
124
|
return false if @rule_query.nil?
|
116
|
-
return false if @suppression_query.nil?
|
117
125
|
true
|
118
126
|
end
|
119
127
|
|
@@ -147,22 +155,13 @@ module DatadogAPIClient::V2
|
|
147
155
|
@rule_query = rule_query
|
148
156
|
end
|
149
157
|
|
150
|
-
# Custom attribute writer method with validation
|
151
|
-
# @param suppression_query [Object] Object to be assigned
|
152
|
-
# @!visibility private
|
153
|
-
def suppression_query=(suppression_query)
|
154
|
-
if suppression_query.nil?
|
155
|
-
fail ArgumentError, 'invalid value for "suppression_query", suppression_query cannot be nil.'
|
156
|
-
end
|
157
|
-
@suppression_query = suppression_query
|
158
|
-
end
|
159
|
-
|
160
158
|
# Checks equality by comparing each attribute.
|
161
159
|
# @param o [Object] Object to be compared
|
162
160
|
# @!visibility private
|
163
161
|
def ==(o)
|
164
162
|
return true if self.equal?(o)
|
165
163
|
self.class == o.class &&
|
164
|
+
data_exclusion_query == o.data_exclusion_query &&
|
166
165
|
description == o.description &&
|
167
166
|
enabled == o.enabled &&
|
168
167
|
expiration_date == o.expiration_date &&
|
@@ -175,7 +174,7 @@ module DatadogAPIClient::V2
|
|
175
174
|
# @return [Integer] Hash code
|
176
175
|
# @!visibility private
|
177
176
|
def hash
|
178
|
-
[description, enabled, expiration_date, name, rule_query, suppression_query].hash
|
177
|
+
[data_exclusion_query, description, enabled, expiration_date, name, rule_query, suppression_query].hash
|
179
178
|
end
|
180
179
|
end
|
181
180
|
end
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
21
21
|
class SecurityMonitoringSuppressionUpdateAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# An exclusion query on the input data of the security rules, which could be logs, Agent events, or other types of data based on the security rule. Events matching this query are ignored by any detection rules referenced in the suppression rule.
|
25
|
+
attr_accessor :data_exclusion_query
|
26
|
+
|
24
27
|
# A description for the suppression rule.
|
25
28
|
attr_accessor :description
|
26
29
|
|
@@ -46,6 +49,7 @@ module DatadogAPIClient::V2
|
|
46
49
|
# @!visibility private
|
47
50
|
def self.attribute_map
|
48
51
|
{
|
52
|
+
:'data_exclusion_query' => :'data_exclusion_query',
|
49
53
|
:'description' => :'description',
|
50
54
|
:'enabled' => :'enabled',
|
51
55
|
:'expiration_date' => :'expiration_date',
|
@@ -60,6 +64,7 @@ module DatadogAPIClient::V2
|
|
60
64
|
# @!visibility private
|
61
65
|
def self.openapi_types
|
62
66
|
{
|
67
|
+
:'data_exclusion_query' => :'String',
|
63
68
|
:'description' => :'String',
|
64
69
|
:'enabled' => :'Boolean',
|
65
70
|
:'expiration_date' => :'Integer',
|
@@ -94,6 +99,10 @@ module DatadogAPIClient::V2
|
|
94
99
|
h[k.to_sym] = v
|
95
100
|
}
|
96
101
|
|
102
|
+
if attributes.key?(:'data_exclusion_query')
|
103
|
+
self.data_exclusion_query = attributes[:'data_exclusion_query']
|
104
|
+
end
|
105
|
+
|
97
106
|
if attributes.key?(:'description')
|
98
107
|
self.description = attributes[:'description']
|
99
108
|
end
|
@@ -147,6 +156,7 @@ module DatadogAPIClient::V2
|
|
147
156
|
def ==(o)
|
148
157
|
return true if self.equal?(o)
|
149
158
|
self.class == o.class &&
|
159
|
+
data_exclusion_query == o.data_exclusion_query &&
|
150
160
|
description == o.description &&
|
151
161
|
enabled == o.enabled &&
|
152
162
|
expiration_date == o.expiration_date &&
|
@@ -160,7 +170,7 @@ module DatadogAPIClient::V2
|
|
160
170
|
# @return [Integer] Hash code
|
161
171
|
# @!visibility private
|
162
172
|
def hash
|
163
|
-
[description, enabled, expiration_date, name, rule_query, suppression_query, version].hash
|
173
|
+
[data_exclusion_query, description, enabled, expiration_date, name, rule_query, suppression_query, version].hash
|
164
174
|
end
|
165
175
|
end
|
166
176
|
end
|
@@ -30,7 +30,7 @@ module DatadogAPIClient::V2
|
|
30
30
|
# Name of the standard pattern.
|
31
31
|
attr_accessor :name
|
32
32
|
|
33
|
-
# Regex to match.
|
33
|
+
# (Deprecated) Regex to match, optionally documented for older standard rules. Refer to the `description` field to understand what the rule does.
|
34
34
|
attr_accessor :pattern
|
35
35
|
|
36
36
|
# Integer from 1 (high) to 5 (low) indicating standard pattern issue severity.
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Identifier for a group of related services serving a product feature, which the service is a part of.
|
25
25
|
attr_accessor :application
|
26
26
|
|
27
|
+
# A set of CI fingerprints.
|
28
|
+
attr_accessor :ci_pipeline_fingerprints
|
29
|
+
|
27
30
|
# A list of contacts related to the services.
|
28
31
|
attr_accessor :contacts
|
29
32
|
|
@@ -68,6 +71,7 @@ module DatadogAPIClient::V2
|
|
68
71
|
def self.attribute_map
|
69
72
|
{
|
70
73
|
:'application' => :'application',
|
74
|
+
:'ci_pipeline_fingerprints' => :'ci-pipeline-fingerprints',
|
71
75
|
:'contacts' => :'contacts',
|
72
76
|
:'dd_service' => :'dd-service',
|
73
77
|
:'description' => :'description',
|
@@ -89,6 +93,7 @@ module DatadogAPIClient::V2
|
|
89
93
|
def self.openapi_types
|
90
94
|
{
|
91
95
|
:'application' => :'String',
|
96
|
+
:'ci_pipeline_fingerprints' => :'Array<String>',
|
92
97
|
:'contacts' => :'Array<ServiceDefinitionV2Dot2Contact>',
|
93
98
|
:'dd_service' => :'String',
|
94
99
|
:'description' => :'String',
|
@@ -125,6 +130,12 @@ module DatadogAPIClient::V2
|
|
125
130
|
self.application = attributes[:'application']
|
126
131
|
end
|
127
132
|
|
133
|
+
if attributes.key?(:'ci_pipeline_fingerprints')
|
134
|
+
if (value = attributes[:'ci_pipeline_fingerprints']).is_a?(Array)
|
135
|
+
self.ci_pipeline_fingerprints = value
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
128
139
|
if attributes.key?(:'contacts')
|
129
140
|
if (value = attributes[:'contacts']).is_a?(Array)
|
130
141
|
self.contacts = value
|
@@ -222,6 +233,7 @@ module DatadogAPIClient::V2
|
|
222
233
|
return true if self.equal?(o)
|
223
234
|
self.class == o.class &&
|
224
235
|
application == o.application &&
|
236
|
+
ci_pipeline_fingerprints == o.ci_pipeline_fingerprints &&
|
225
237
|
contacts == o.contacts &&
|
226
238
|
dd_service == o.dd_service &&
|
227
239
|
description == o.description &&
|
@@ -241,7 +253,7 @@ module DatadogAPIClient::V2
|
|
241
253
|
# @return [Integer] Hash code
|
242
254
|
# @!visibility private
|
243
255
|
def hash
|
244
|
-
[application, contacts, dd_service, description, extensions, integrations, languages, lifecycle, links, schema_version, tags, team, tier, type].hash
|
256
|
+
[application, ci_pipeline_fingerprints, contacts, dd_service, description, extensions, integrations, languages, lifecycle, links, schema_version, tags, team, tier, type].hash
|
245
257
|
end
|
246
258
|
end
|
247
259
|
end
|
@@ -0,0 +1,90 @@
|
|
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
|
+
# ServiceNow ticket attached to case
|
21
|
+
class ServiceNowTicket
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# ServiceNow ticket information
|
25
|
+
attr_accessor :result
|
26
|
+
|
27
|
+
# Case status
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
# @!visibility private
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'result' => :'result',
|
35
|
+
:'status' => :'status'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'result' => :'ServiceNowTicketResult',
|
44
|
+
:'status' => :'Case3rdPartyTicketStatus'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
50
|
+
# @!visibility private
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceNowTicket` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceNowTicket`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'result')
|
65
|
+
self.result = attributes[:'result']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'status')
|
69
|
+
self.status = attributes[:'status']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param o [Object] Object to be compared
|
75
|
+
# @!visibility private
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
result == o.result &&
|
80
|
+
status == o.status
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Integer] Hash code
|
85
|
+
# @!visibility private
|
86
|
+
def hash
|
87
|
+
[result, status].hash
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|