datadog_api_client 2.40.0 → 2.41.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/.generated-info +2 -2
- data/.generator/schemas/v1/openapi.yaml +35 -0
- data/.generator/schemas/v2/openapi.yaml +3544 -93
- data/CHANGELOG.md +30 -0
- data/examples/v1/dashboards/CreateDashboard_3066042014.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_3451918078.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_4262729673.rb +1 -0
- data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +1 -1
- data/examples/v2/agentless-scanning/GetAwsScanOptions.rb +8 -0
- data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/datasets/CreateDataset.rb +1 -1
- data/examples/v2/datasets/UpdateDataset.rb +1 -1
- data/examples/v2/error-tracking/GetIssue.rb +8 -0
- data/examples/v2/error-tracking/SearchIssues.rb +17 -0
- data/examples/v2/error-tracking/UpdateIssueAssignee.rb +15 -0
- data/examples/v2/error-tracking/UpdateIssueState.rb +18 -0
- data/examples/v2/incidents/CreateIncidentNotificationTemplate.rb +31 -0
- data/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb +8 -0
- data/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb +11 -0
- data/examples/v2/incidents/GetIncidentNotificationTemplate.rb +11 -0
- data/examples/v2/incidents/ListIncidentNotificationTemplates.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb +24 -0
- data/examples/v2/org-connections/CreateOrgConnections.rb +24 -0
- data/examples/v2/org-connections/DeleteOrgConnections.rb +8 -0
- data/examples/v2/org-connections/ListOrgConnections.rb +5 -0
- data/examples/v2/org-connections/UpdateOrgConnections.rb +21 -0
- data/examples/v2/rum/CreateRUMApplication_1946294560.rb +17 -0
- data/examples/v2/rum/UpdateRUMApplication_394074053.rb +20 -0
- data/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +3 -3
- data/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +1 -1
- data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb +8 -0
- data/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb +36 -0
- data/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb +8 -0
- data/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb +24 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb +18 -0
- data/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb +37 -0
- data/examples/v2/service-scorecards/UpdateScorecardOutcomesAsync.rb +27 -0
- data/examples/v2/spa/GetSPARecommendations.rb +8 -0
- data/examples/v2/teams/SyncTeams.rb +18 -0
- data/examples/v2/teams/SyncTeams_3215592344.rb +18 -0
- data/lib/datadog_api_client/configuration.rb +12 -0
- data/lib/datadog_api_client/inflector.rb +166 -0
- data/lib/datadog_api_client/v1/models/logs_api_limit_reached_response.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +13 -3
- data/lib/datadog_api_client/v1/models/widget_legacy_live_span.rb +11 -1
- data/lib/datadog_api_client/v1/models/widget_new_fixed_span.rb +11 -1
- data/lib/datadog_api_client/v1/models/widget_new_live_span.rb +11 -1
- data/lib/datadog_api_client/v2/api/action_connection_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +67 -2
- data/lib/datadog_api_client/v2/api/app_builder_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +14 -6
- data/lib/datadog_api_client/v2/api/error_tracking_api.rb +306 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +369 -0
- data/lib/datadog_api_client/v2/api/monitors_api.rb +20 -0
- data/lib/datadog_api_client/v2/api/org_connections_api.rb +290 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +514 -0
- data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +73 -0
- data/lib/datadog_api_client/v2/api/spa_api.rb +102 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +8 -8
- data/lib/datadog_api_client/v2/models/aws_cur_config.rb +1 -1
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +4 -4
- data/lib/datadog_api_client/v2/models/azure_uc_config.rb +1 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +1 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_recommendation.rb +123 -0
- data/lib/datadog_api_client/v2/models/cpu.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_incident_notification_template_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dataset_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/dataset_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/dataset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/estimation.rb +145 -0
- data/lib/datadog_api_client/v2/models/get_issue_include_query_parameter_item.rb +28 -0
- data/lib/datadog_api_client/v2/models/google_meet_configuration_reference.rb +113 -0
- data/lib/datadog_api_client/v2/models/google_meet_configuration_reference_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_array_meta_page.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_attributes.rb +228 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_create_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_create_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_create_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_included_items.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_update_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_type_object.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_type_relationships.rb +155 -0
- data/lib/datadog_api_client/v2/models/issue.rb +175 -0
- data/lib/datadog_api_client/v2/models/issue_assignee_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_attributes.rb +227 -0
- data/lib/datadog_api_client/v2/models/issue_case.rb +175 -0
- data/lib/datadog_api_client/v2/models/issue_case_attributes.rb +237 -0
- data/lib/datadog_api_client/v2/models/issue_case_insight.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_case_jira_issue.rb +115 -0
- data/lib/datadog_api_client/v2/models/issue_case_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/issue_case_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_case_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_case_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/issue_case_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/issue_language.rb +52 -0
- data/lib/datadog_api_client/v2/models/issue_platform.rb +33 -0
- data/lib/datadog_api_client/v2/models/issue_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/issue_state.rb +30 -0
- data/lib/datadog_api_client/v2/models/issue_team.rb +165 -0
- data/lib/datadog_api_client/v2/models/issue_team_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_team_owners_relationship.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_team_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_update_assignee_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_update_assignee_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/issue_update_state_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issue_user.rb +165 -0
- data/lib/datadog_api_client/v2/models/issue_user_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/issue_user_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/issue_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issues_search_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +195 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_order_by.rb +29 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_persona.rb +29 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes_track.rb +28 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/issues_search_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/issues_search_result.rb +175 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_included.rb +65 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_issue_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/issues_search_result_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference.rb +113 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_configuration_reference_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +252 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +4 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +208 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_compression_algorithm.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +215 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +207 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +253 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +240 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_bytes_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited.rb +152 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_character_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_framing_newline_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +196 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing.rb +66 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_bytes_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited.rb +152 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_character_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_chunked_gelf_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_newline_delimited_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_framing_octet_counting_method.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_connection.rb +186 -0
- data/lib/datadog_api_client/v2/models/org_connection_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/org_connection_create.rb +165 -0
- data/lib/datadog_api_client/v2/models/org_connection_create_attributes.rb +129 -0
- data/lib/datadog_api_client/v2/models/org_connection_create_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_list_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/org_connection_list_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_connection_list_response_meta_page.rb +115 -0
- data/lib/datadog_api_client/v2/models/org_connection_org_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_connection_org_relationship_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_connection_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_connection_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_connection_type_enum.rb +27 -0
- data/lib/datadog_api_client/v2/models/org_connection_update.rb +165 -0
- data/lib/datadog_api_client/v2/models/org_connection_update_attributes.rb +129 -0
- data/lib/datadog_api_client/v2/models/org_connection_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_connection_user_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_connection_user_relationship_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_incident_notification_template_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/recommendation_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/recommendation_document.rb +123 -0
- data/lib/datadog_api_client/v2/models/recommendation_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_type.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_type_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rule_attributes.rb +33 -1
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/rum_event_processing_scale.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_event_processing_state.rb +28 -0
- data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_scale.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_product_analytics_retention_state.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_product_scales.rb +115 -0
- data/lib/datadog_api_client/v2/models/search_issues_include_query_parameter_item.rb +29 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +11 -1
- data/lib/datadog_api_client/v2/models/shift.rb +2 -2
- data/lib/datadog_api_client/v2/models/shift_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/shift_data_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/shift_included.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_source.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_bulk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_request_item.rb +175 -0
- data/lib/datadog_api_client/v2/models/update_outcomes_async_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/zoom_configuration_reference.rb +113 -0
- data/lib/datadog_api_client/v2/models/zoom_configuration_reference_data.rb +144 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +196 -1
@@ -0,0 +1,207 @@
|
|
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
|
+
# Defines a single VRL remap rule with its own filtering and transformation logic.
|
21
|
+
class ObservabilityPipelineCustomProcessorRemap
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether to drop events that caused errors during processing.
|
25
|
+
attr_reader :drop_on_error
|
26
|
+
|
27
|
+
# Whether this remap rule is enabled.
|
28
|
+
attr_reader :enabled
|
29
|
+
|
30
|
+
# A Datadog search query used to filter events for this specific remap rule.
|
31
|
+
attr_reader :include
|
32
|
+
|
33
|
+
# A descriptive name for this remap rule.
|
34
|
+
attr_reader :name
|
35
|
+
|
36
|
+
# The VRL script source code that defines the processing logic.
|
37
|
+
attr_reader :source
|
38
|
+
|
39
|
+
attr_accessor :additional_properties
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
# @!visibility private
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
:'drop_on_error' => :'drop_on_error',
|
46
|
+
:'enabled' => :'enabled',
|
47
|
+
:'include' => :'include',
|
48
|
+
:'name' => :'name',
|
49
|
+
:'source' => :'source'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'drop_on_error' => :'Boolean',
|
58
|
+
:'enabled' => :'Boolean',
|
59
|
+
:'include' => :'String',
|
60
|
+
:'name' => :'String',
|
61
|
+
:'source' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
67
|
+
# @!visibility private
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineCustomProcessorRemap` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
self.additional_properties = {}
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
self.additional_properties[k.to_sym] = v
|
78
|
+
else
|
79
|
+
h[k.to_sym] = v
|
80
|
+
end
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'drop_on_error')
|
84
|
+
self.drop_on_error = attributes[:'drop_on_error']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'enabled')
|
88
|
+
self.enabled = attributes[:'enabled']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'include')
|
92
|
+
self.include = attributes[:'include']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'name')
|
96
|
+
self.name = attributes[:'name']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'source')
|
100
|
+
self.source = attributes[:'source']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
# @!visibility private
|
107
|
+
def valid?
|
108
|
+
return false if @drop_on_error.nil?
|
109
|
+
return false if @enabled.nil?
|
110
|
+
return false if @include.nil?
|
111
|
+
return false if @name.nil?
|
112
|
+
return false if @source.nil?
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param drop_on_error [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def drop_on_error=(drop_on_error)
|
120
|
+
if drop_on_error.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "drop_on_error", drop_on_error cannot be nil.'
|
122
|
+
end
|
123
|
+
@drop_on_error = drop_on_error
|
124
|
+
end
|
125
|
+
|
126
|
+
# Custom attribute writer method with validation
|
127
|
+
# @param enabled [Object] Object to be assigned
|
128
|
+
# @!visibility private
|
129
|
+
def enabled=(enabled)
|
130
|
+
if enabled.nil?
|
131
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
132
|
+
end
|
133
|
+
@enabled = enabled
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method with validation
|
137
|
+
# @param include [Object] Object to be assigned
|
138
|
+
# @!visibility private
|
139
|
+
def include=(include)
|
140
|
+
if include.nil?
|
141
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
142
|
+
end
|
143
|
+
@include = include
|
144
|
+
end
|
145
|
+
|
146
|
+
# Custom attribute writer method with validation
|
147
|
+
# @param name [Object] Object to be assigned
|
148
|
+
# @!visibility private
|
149
|
+
def name=(name)
|
150
|
+
if name.nil?
|
151
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
152
|
+
end
|
153
|
+
@name = name
|
154
|
+
end
|
155
|
+
|
156
|
+
# Custom attribute writer method with validation
|
157
|
+
# @param source [Object] Object to be assigned
|
158
|
+
# @!visibility private
|
159
|
+
def source=(source)
|
160
|
+
if source.nil?
|
161
|
+
fail ArgumentError, 'invalid value for "source", source cannot be nil.'
|
162
|
+
end
|
163
|
+
@source = source
|
164
|
+
end
|
165
|
+
|
166
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
# @!visibility private
|
169
|
+
def to_hash
|
170
|
+
hash = {}
|
171
|
+
self.class.attribute_map.each_pair do |attr, param|
|
172
|
+
value = self.send(attr)
|
173
|
+
if value.nil?
|
174
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
175
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
176
|
+
end
|
177
|
+
|
178
|
+
hash[param] = _to_hash(value)
|
179
|
+
end
|
180
|
+
self.additional_properties.each_pair do |attr, value|
|
181
|
+
hash[attr] = value
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Checks equality by comparing each attribute.
|
187
|
+
# @param o [Object] Object to be compared
|
188
|
+
# @!visibility private
|
189
|
+
def ==(o)
|
190
|
+
return true if self.equal?(o)
|
191
|
+
self.class == o.class &&
|
192
|
+
drop_on_error == o.drop_on_error &&
|
193
|
+
enabled == o.enabled &&
|
194
|
+
include == o.include &&
|
195
|
+
name == o.name &&
|
196
|
+
source == o.source &&
|
197
|
+
additional_properties == o.additional_properties
|
198
|
+
end
|
199
|
+
|
200
|
+
# Calculates hash code according to all attributes.
|
201
|
+
# @return [Integer] Hash code
|
202
|
+
# @!visibility private
|
203
|
+
def hash
|
204
|
+
[drop_on_error, enabled, include, name, source, additional_properties].hash
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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 processor type. The value should always be `custom_processor`.
|
21
|
+
class ObservabilityPipelineCustomProcessorType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
CUSTOM_PROCESSOR = "custom_processor".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,253 @@
|
|
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 `datadog_tags` processor includes or excludes specific Datadog tags in your logs.
|
21
|
+
class ObservabilityPipelineDatadogTagsProcessor
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The action to take on tags with matching keys.
|
25
|
+
attr_reader :action
|
26
|
+
|
27
|
+
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the `input` to downstream components).
|
28
|
+
attr_reader :id
|
29
|
+
|
30
|
+
# A Datadog search query used to determine which logs this processor targets.
|
31
|
+
attr_reader :include
|
32
|
+
|
33
|
+
# A list of component IDs whose output is used as the `input` for this component.
|
34
|
+
attr_reader :inputs
|
35
|
+
|
36
|
+
# A list of tag keys.
|
37
|
+
attr_reader :keys
|
38
|
+
|
39
|
+
# The processing mode.
|
40
|
+
attr_reader :mode
|
41
|
+
|
42
|
+
# The processor type. The value should always be `datadog_tags`.
|
43
|
+
attr_reader :type
|
44
|
+
|
45
|
+
attr_accessor :additional_properties
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
# @!visibility private
|
49
|
+
def self.attribute_map
|
50
|
+
{
|
51
|
+
:'action' => :'action',
|
52
|
+
:'id' => :'id',
|
53
|
+
:'include' => :'include',
|
54
|
+
:'inputs' => :'inputs',
|
55
|
+
:'keys' => :'keys',
|
56
|
+
:'mode' => :'mode',
|
57
|
+
:'type' => :'type'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Attribute type mapping.
|
62
|
+
# @!visibility private
|
63
|
+
def self.openapi_types
|
64
|
+
{
|
65
|
+
:'action' => :'ObservabilityPipelineDatadogTagsProcessorAction',
|
66
|
+
:'id' => :'String',
|
67
|
+
:'include' => :'String',
|
68
|
+
:'inputs' => :'Array<String>',
|
69
|
+
:'keys' => :'Array<String>',
|
70
|
+
:'mode' => :'ObservabilityPipelineDatadogTagsProcessorMode',
|
71
|
+
:'type' => :'ObservabilityPipelineDatadogTagsProcessorType'
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# Initializes the object
|
76
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
77
|
+
# @!visibility private
|
78
|
+
def initialize(attributes = {})
|
79
|
+
if (!attributes.is_a?(Hash))
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineDatadogTagsProcessor` initialize method"
|
81
|
+
end
|
82
|
+
|
83
|
+
self.additional_properties = {}
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
+
self.additional_properties[k.to_sym] = v
|
88
|
+
else
|
89
|
+
h[k.to_sym] = v
|
90
|
+
end
|
91
|
+
}
|
92
|
+
|
93
|
+
if attributes.key?(:'action')
|
94
|
+
self.action = attributes[:'action']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'id')
|
98
|
+
self.id = attributes[:'id']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'include')
|
102
|
+
self.include = attributes[:'include']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'inputs')
|
106
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
107
|
+
self.inputs = value
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'keys')
|
112
|
+
if (value = attributes[:'keys']).is_a?(Array)
|
113
|
+
self.keys = value
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'mode')
|
118
|
+
self.mode = attributes[:'mode']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'type')
|
122
|
+
self.type = attributes[:'type']
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# Check to see if the all the properties in the model are valid
|
127
|
+
# @return true if the model is valid
|
128
|
+
# @!visibility private
|
129
|
+
def valid?
|
130
|
+
return false if @action.nil?
|
131
|
+
return false if @id.nil?
|
132
|
+
return false if @include.nil?
|
133
|
+
return false if @inputs.nil?
|
134
|
+
return false if @keys.nil?
|
135
|
+
return false if @mode.nil?
|
136
|
+
return false if @type.nil?
|
137
|
+
true
|
138
|
+
end
|
139
|
+
|
140
|
+
# Custom attribute writer method with validation
|
141
|
+
# @param action [Object] Object to be assigned
|
142
|
+
# @!visibility private
|
143
|
+
def action=(action)
|
144
|
+
if action.nil?
|
145
|
+
fail ArgumentError, 'invalid value for "action", action cannot be nil.'
|
146
|
+
end
|
147
|
+
@action = action
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method with validation
|
151
|
+
# @param id [Object] Object to be assigned
|
152
|
+
# @!visibility private
|
153
|
+
def id=(id)
|
154
|
+
if id.nil?
|
155
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
156
|
+
end
|
157
|
+
@id = id
|
158
|
+
end
|
159
|
+
|
160
|
+
# Custom attribute writer method with validation
|
161
|
+
# @param include [Object] Object to be assigned
|
162
|
+
# @!visibility private
|
163
|
+
def include=(include)
|
164
|
+
if include.nil?
|
165
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
166
|
+
end
|
167
|
+
@include = include
|
168
|
+
end
|
169
|
+
|
170
|
+
# Custom attribute writer method with validation
|
171
|
+
# @param inputs [Object] Object to be assigned
|
172
|
+
# @!visibility private
|
173
|
+
def inputs=(inputs)
|
174
|
+
if inputs.nil?
|
175
|
+
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
176
|
+
end
|
177
|
+
@inputs = inputs
|
178
|
+
end
|
179
|
+
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param keys [Object] Object to be assigned
|
182
|
+
# @!visibility private
|
183
|
+
def keys=(keys)
|
184
|
+
if keys.nil?
|
185
|
+
fail ArgumentError, 'invalid value for "keys", keys cannot be nil.'
|
186
|
+
end
|
187
|
+
@keys = keys
|
188
|
+
end
|
189
|
+
|
190
|
+
# Custom attribute writer method with validation
|
191
|
+
# @param mode [Object] Object to be assigned
|
192
|
+
# @!visibility private
|
193
|
+
def mode=(mode)
|
194
|
+
if mode.nil?
|
195
|
+
fail ArgumentError, 'invalid value for "mode", mode cannot be nil.'
|
196
|
+
end
|
197
|
+
@mode = mode
|
198
|
+
end
|
199
|
+
|
200
|
+
# Custom attribute writer method with validation
|
201
|
+
# @param type [Object] Object to be assigned
|
202
|
+
# @!visibility private
|
203
|
+
def type=(type)
|
204
|
+
if type.nil?
|
205
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
206
|
+
end
|
207
|
+
@type = type
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
# @!visibility private
|
213
|
+
def to_hash
|
214
|
+
hash = {}
|
215
|
+
self.class.attribute_map.each_pair do |attr, param|
|
216
|
+
value = self.send(attr)
|
217
|
+
if value.nil?
|
218
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
219
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
220
|
+
end
|
221
|
+
|
222
|
+
hash[param] = _to_hash(value)
|
223
|
+
end
|
224
|
+
self.additional_properties.each_pair do |attr, value|
|
225
|
+
hash[attr] = value
|
226
|
+
end
|
227
|
+
hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Checks equality by comparing each attribute.
|
231
|
+
# @param o [Object] Object to be compared
|
232
|
+
# @!visibility private
|
233
|
+
def ==(o)
|
234
|
+
return true if self.equal?(o)
|
235
|
+
self.class == o.class &&
|
236
|
+
action == o.action &&
|
237
|
+
id == o.id &&
|
238
|
+
include == o.include &&
|
239
|
+
inputs == o.inputs &&
|
240
|
+
keys == o.keys &&
|
241
|
+
mode == o.mode &&
|
242
|
+
type == o.type &&
|
243
|
+
additional_properties == o.additional_properties
|
244
|
+
end
|
245
|
+
|
246
|
+
# Calculates hash code according to all attributes.
|
247
|
+
# @return [Integer] Hash code
|
248
|
+
# @!visibility private
|
249
|
+
def hash
|
250
|
+
[action, id, include, inputs, keys, mode, type, additional_properties].hash
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The action to take on tags with matching keys.
|
21
|
+
class ObservabilityPipelineDatadogTagsProcessorAction
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
INCLUDE = "include".freeze
|
25
|
+
EXCLUDE = "exclude".freeze
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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 processing mode.
|
21
|
+
class ObservabilityPipelineDatadogTagsProcessorMode
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
FILTER = "filter".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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 processor type. The value should always be `datadog_tags`.
|
21
|
+
class ObservabilityPipelineDatadogTagsProcessorType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
DATADOG_TAGS = "datadog_tags".freeze
|
25
|
+
end
|
26
|
+
end
|