datadog_api_client 2.45.0 → 2.47.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/.generator/schemas/v1/openapi.yaml +186 -7
- data/.generator/schemas/v2/openapi.yaml +5147 -312
- data/.pre-commit-config.yaml +4 -0
- data/CHANGELOG.md +46 -0
- data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
- data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
- data/examples/v2/apm/GetServiceList.rb +5 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
- data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
- data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
- data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
- data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
- data/examples/v2/events/CreateEvent.rb +1 -0
- data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
- data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
- data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
- data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
- data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
- data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
- data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
- data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
- data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
- data/examples/v2/reference-tables/DeleteRows.rb +14 -0
- data/examples/v2/reference-tables/UpsertRows.rb +19 -0
- data/examples/v2/security-monitoring/AttachCase.rb +26 -0
- data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
- data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
- data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
- data/examples/v2/security-monitoring/CreateCases.rb +56 -0
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +41 -0
- data/examples/v2/security-monitoring/DetachCase.rb +21 -0
- data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
- data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
- data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
- data/examples/v2/{team-connections → teams}/CreateTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/DeleteTeamConnections.rb +1 -1
- data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +8 -0
- data/examples/v2/{team-connections → teams}/ListTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_1473516764.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_2418873869.rb +1 -1
- data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
- data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
- data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +29 -6
- data/lib/datadog_api_client/inflector.rb +180 -5
- data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
- data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
- data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +51 -1
- data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +703 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +166 -1
- data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
- data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +279 -2
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +144 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +448 -10
- data/lib/datadog_api_client/v2/api/teams_api.rb +634 -1
- data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
- data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_user_notification_channel_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → deployment_rule_options_faulty_deployment_detection.rb} +21 -19
- data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
- data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
- data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
- data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/findings.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
- data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
- data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/library.rb +13 -1
- data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
- data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
- data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
- data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
- data/lib/datadog_api_client/v2/models/service_list_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +101 -36
- data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
- data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_response_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +238 -11
- data/lib/datadog_api_client/v2/api/team_connections_api.rb +0 -272
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +0 -138
|
@@ -24,8 +24,7 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# A list of custom links.
|
|
25
25
|
attr_accessor :custom_links
|
|
26
26
|
|
|
27
|
-
# Array of
|
|
28
|
-
#
|
|
27
|
+
# Array of request objects to display in the widget. May include an optional request for the region layer and/or an optional request for the points layer. Region layer requests must contain a `group-by` tag whose value is a country ISO code.
|
|
29
28
|
# See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json)
|
|
30
29
|
# for information about building the `REQUEST_SCHEMA`.
|
|
31
30
|
attr_reader :requests
|
|
@@ -149,7 +148,7 @@ module DatadogAPIClient::V1
|
|
|
149
148
|
# @!visibility private
|
|
150
149
|
def valid?
|
|
151
150
|
return false if @requests.nil?
|
|
152
|
-
return false if @requests.length >
|
|
151
|
+
return false if @requests.length > 2
|
|
153
152
|
return false if @requests.length < 1
|
|
154
153
|
return false if @style.nil?
|
|
155
154
|
return false if @type.nil?
|
|
@@ -164,8 +163,8 @@ module DatadogAPIClient::V1
|
|
|
164
163
|
if requests.nil?
|
|
165
164
|
fail ArgumentError, 'invalid value for "requests", requests cannot be nil.'
|
|
166
165
|
end
|
|
167
|
-
if requests.length >
|
|
168
|
-
fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to
|
|
166
|
+
if requests.length > 2
|
|
167
|
+
fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 2.'
|
|
169
168
|
end
|
|
170
169
|
if requests.length < 1
|
|
171
170
|
fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.'
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class GeomapWidgetDefinitionView
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# The 2-letter ISO code of a country to focus the map on
|
|
24
|
+
# The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`).
|
|
25
25
|
attr_reader :focus
|
|
26
26
|
|
|
27
27
|
attr_accessor :additional_properties
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# Widget columns.
|
|
25
25
|
attr_accessor :columns
|
|
26
26
|
|
|
27
|
+
# Threshold (numeric) conditional formatting rules may be used by a regions layer.
|
|
28
|
+
attr_accessor :conditional_formats
|
|
29
|
+
|
|
27
30
|
# List of formulas that operate on queries.
|
|
28
31
|
attr_accessor :formulas
|
|
29
32
|
|
|
@@ -51,6 +54,12 @@ module DatadogAPIClient::V1
|
|
|
51
54
|
# The controls for sorting the widget.
|
|
52
55
|
attr_accessor :sort
|
|
53
56
|
|
|
57
|
+
# The style to apply to the request for points layer.
|
|
58
|
+
attr_accessor :style
|
|
59
|
+
|
|
60
|
+
# Text formatting rules may be used by a points layer.
|
|
61
|
+
attr_accessor :text_formats
|
|
62
|
+
|
|
54
63
|
attr_accessor :additional_properties
|
|
55
64
|
|
|
56
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -58,6 +67,7 @@ module DatadogAPIClient::V1
|
|
|
58
67
|
def self.attribute_map
|
|
59
68
|
{
|
|
60
69
|
:'columns' => :'columns',
|
|
70
|
+
:'conditional_formats' => :'conditional_formats',
|
|
61
71
|
:'formulas' => :'formulas',
|
|
62
72
|
:'log_query' => :'log_query',
|
|
63
73
|
:'q' => :'q',
|
|
@@ -66,7 +76,9 @@ module DatadogAPIClient::V1
|
|
|
66
76
|
:'response_format' => :'response_format',
|
|
67
77
|
:'rum_query' => :'rum_query',
|
|
68
78
|
:'security_query' => :'security_query',
|
|
69
|
-
:'sort' => :'sort'
|
|
79
|
+
:'sort' => :'sort',
|
|
80
|
+
:'style' => :'style',
|
|
81
|
+
:'text_formats' => :'text_formats'
|
|
70
82
|
}
|
|
71
83
|
end
|
|
72
84
|
|
|
@@ -75,6 +87,7 @@ module DatadogAPIClient::V1
|
|
|
75
87
|
def self.openapi_types
|
|
76
88
|
{
|
|
77
89
|
:'columns' => :'Array<ListStreamColumn>',
|
|
90
|
+
:'conditional_formats' => :'Array<WidgetConditionalFormat>',
|
|
78
91
|
:'formulas' => :'Array<WidgetFormula>',
|
|
79
92
|
:'log_query' => :'LogQueryDefinition',
|
|
80
93
|
:'q' => :'String',
|
|
@@ -83,7 +96,9 @@ module DatadogAPIClient::V1
|
|
|
83
96
|
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
84
97
|
:'rum_query' => :'LogQueryDefinition',
|
|
85
98
|
:'security_query' => :'LogQueryDefinition',
|
|
86
|
-
:'sort' => :'WidgetSortBy'
|
|
99
|
+
:'sort' => :'WidgetSortBy',
|
|
100
|
+
:'style' => :'GeomapWidgetRequestStyle',
|
|
101
|
+
:'text_formats' => :'Array<TableWidgetTextFormatRule>'
|
|
87
102
|
}
|
|
88
103
|
end
|
|
89
104
|
|
|
@@ -111,6 +126,12 @@ module DatadogAPIClient::V1
|
|
|
111
126
|
end
|
|
112
127
|
end
|
|
113
128
|
|
|
129
|
+
if attributes.key?(:'conditional_formats')
|
|
130
|
+
if (value = attributes[:'conditional_formats']).is_a?(Array)
|
|
131
|
+
self.conditional_formats = value
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
114
135
|
if attributes.key?(:'formulas')
|
|
115
136
|
if (value = attributes[:'formulas']).is_a?(Array)
|
|
116
137
|
self.formulas = value
|
|
@@ -150,6 +171,16 @@ module DatadogAPIClient::V1
|
|
|
150
171
|
if attributes.key?(:'sort')
|
|
151
172
|
self.sort = attributes[:'sort']
|
|
152
173
|
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'style')
|
|
176
|
+
self.style = attributes[:'style']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'text_formats')
|
|
180
|
+
if (value = attributes[:'text_formats']).is_a?(Array)
|
|
181
|
+
self.text_formats = value
|
|
182
|
+
end
|
|
183
|
+
end
|
|
153
184
|
end
|
|
154
185
|
|
|
155
186
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
@@ -179,6 +210,7 @@ module DatadogAPIClient::V1
|
|
|
179
210
|
return true if self.equal?(o)
|
|
180
211
|
self.class == o.class &&
|
|
181
212
|
columns == o.columns &&
|
|
213
|
+
conditional_formats == o.conditional_formats &&
|
|
182
214
|
formulas == o.formulas &&
|
|
183
215
|
log_query == o.log_query &&
|
|
184
216
|
q == o.q &&
|
|
@@ -188,6 +220,8 @@ module DatadogAPIClient::V1
|
|
|
188
220
|
rum_query == o.rum_query &&
|
|
189
221
|
security_query == o.security_query &&
|
|
190
222
|
sort == o.sort &&
|
|
223
|
+
style == o.style &&
|
|
224
|
+
text_formats == o.text_formats &&
|
|
191
225
|
additional_properties == o.additional_properties
|
|
192
226
|
end
|
|
193
227
|
|
|
@@ -195,7 +229,7 @@ module DatadogAPIClient::V1
|
|
|
195
229
|
# @return [Integer] Hash code
|
|
196
230
|
# @!visibility private
|
|
197
231
|
def hash
|
|
198
|
-
[columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort, additional_properties].hash
|
|
232
|
+
[columns, conditional_formats, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort, style, text_formats, additional_properties].hash
|
|
199
233
|
end
|
|
200
234
|
end
|
|
201
235
|
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# The style to apply to the request for points layer.
|
|
21
|
+
class GeomapWidgetRequestStyle
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The category to color the points by.
|
|
25
|
+
attr_accessor :color_by
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'color_by' => :'color_by'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'color_by' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetRequestStyle` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'color_by')
|
|
64
|
+
self.color_by = attributes[:'color_by']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
color_by == o.color_by &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[color_by, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class Monitor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).
|
|
25
|
+
attr_accessor :assets
|
|
26
|
+
|
|
24
27
|
# Timestamp of the monitor creation.
|
|
25
28
|
attr_accessor :created
|
|
26
29
|
|
|
@@ -86,6 +89,7 @@ module DatadogAPIClient::V1
|
|
|
86
89
|
# @!visibility private
|
|
87
90
|
def self.attribute_map
|
|
88
91
|
{
|
|
92
|
+
:'assets' => :'assets',
|
|
89
93
|
:'created' => :'created',
|
|
90
94
|
:'creator' => :'creator',
|
|
91
95
|
:'deleted' => :'deleted',
|
|
@@ -111,6 +115,7 @@ module DatadogAPIClient::V1
|
|
|
111
115
|
# @!visibility private
|
|
112
116
|
def self.openapi_types
|
|
113
117
|
{
|
|
118
|
+
:'assets' => :'Array<MonitorAsset>',
|
|
114
119
|
:'created' => :'Time',
|
|
115
120
|
:'creator' => :'Creator',
|
|
116
121
|
:'deleted' => :'Time',
|
|
@@ -160,6 +165,12 @@ module DatadogAPIClient::V1
|
|
|
160
165
|
end
|
|
161
166
|
}
|
|
162
167
|
|
|
168
|
+
if attributes.key?(:'assets')
|
|
169
|
+
if (value = attributes[:'assets']).is_a?(Array)
|
|
170
|
+
self.assets = value
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
163
174
|
if attributes.key?(:'created')
|
|
164
175
|
self.created = attributes[:'created']
|
|
165
176
|
end
|
|
@@ -294,6 +305,7 @@ module DatadogAPIClient::V1
|
|
|
294
305
|
def ==(o)
|
|
295
306
|
return true if self.equal?(o)
|
|
296
307
|
self.class == o.class &&
|
|
308
|
+
assets == o.assets &&
|
|
297
309
|
created == o.created &&
|
|
298
310
|
creator == o.creator &&
|
|
299
311
|
deleted == o.deleted &&
|
|
@@ -319,7 +331,7 @@ module DatadogAPIClient::V1
|
|
|
319
331
|
# @return [Integer] Hash code
|
|
320
332
|
# @!visibility private
|
|
321
333
|
def hash
|
|
322
|
-
[created, creator, deleted, draft_status, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
|
334
|
+
[assets, created, creator, deleted, draft_status, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
|
323
335
|
end
|
|
324
336
|
end
|
|
325
337
|
end
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Represents key links tied to a monitor to help users take action on alerts.
|
|
21
|
+
# This feature is in Preview and only available to users with the feature enabled.
|
|
22
|
+
class MonitorAsset
|
|
23
|
+
include BaseGenericModel
|
|
24
|
+
|
|
25
|
+
# Indicates the type of asset this entity represents on a monitor.
|
|
26
|
+
attr_reader :category
|
|
27
|
+
|
|
28
|
+
# Name for the monitor asset
|
|
29
|
+
attr_reader :name
|
|
30
|
+
|
|
31
|
+
# Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.
|
|
32
|
+
attr_accessor :resource_key
|
|
33
|
+
|
|
34
|
+
# Type of internal Datadog resource associated with a monitor asset.
|
|
35
|
+
attr_accessor :resource_type
|
|
36
|
+
|
|
37
|
+
# URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.
|
|
38
|
+
attr_reader :url
|
|
39
|
+
|
|
40
|
+
attr_accessor :additional_properties
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
# @!visibility private
|
|
44
|
+
def self.attribute_map
|
|
45
|
+
{
|
|
46
|
+
:'category' => :'category',
|
|
47
|
+
:'name' => :'name',
|
|
48
|
+
:'resource_key' => :'resource_key',
|
|
49
|
+
:'resource_type' => :'resource_type',
|
|
50
|
+
:'url' => :'url'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def self.openapi_types
|
|
57
|
+
{
|
|
58
|
+
:'category' => :'MonitorAssetCategory',
|
|
59
|
+
:'name' => :'String',
|
|
60
|
+
:'resource_key' => :'String',
|
|
61
|
+
:'resource_type' => :'MonitorAssetResourceType',
|
|
62
|
+
:'url' => :'String'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
68
|
+
# @!visibility private
|
|
69
|
+
def initialize(attributes = {})
|
|
70
|
+
if (!attributes.is_a?(Hash))
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorAsset` initialize method"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
self.additional_properties = {}
|
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
78
|
+
self.additional_properties[k.to_sym] = v
|
|
79
|
+
else
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
end
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'category')
|
|
85
|
+
self.category = attributes[:'category']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'name')
|
|
89
|
+
self.name = attributes[:'name']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'resource_key')
|
|
93
|
+
self.resource_key = attributes[:'resource_key']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'resource_type')
|
|
97
|
+
self.resource_type = attributes[:'resource_type']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'url')
|
|
101
|
+
self.url = attributes[:'url']
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Check to see if the all the properties in the model are valid
|
|
106
|
+
# @return true if the model is valid
|
|
107
|
+
# @!visibility private
|
|
108
|
+
def valid?
|
|
109
|
+
return false if @category.nil?
|
|
110
|
+
return false if @name.nil?
|
|
111
|
+
return false if @url.nil?
|
|
112
|
+
true
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param category [Object] Object to be assigned
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def category=(category)
|
|
119
|
+
if category.nil?
|
|
120
|
+
fail ArgumentError, 'invalid value for "category", category cannot be nil.'
|
|
121
|
+
end
|
|
122
|
+
@category = category
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param name [Object] Object to be assigned
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def name=(name)
|
|
129
|
+
if name.nil?
|
|
130
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
131
|
+
end
|
|
132
|
+
@name = name
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Custom attribute writer method with validation
|
|
136
|
+
# @param url [Object] Object to be assigned
|
|
137
|
+
# @!visibility private
|
|
138
|
+
def url=(url)
|
|
139
|
+
if url.nil?
|
|
140
|
+
fail ArgumentError, 'invalid value for "url", url cannot be nil.'
|
|
141
|
+
end
|
|
142
|
+
@url = url
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
146
|
+
# @return [Hash] Returns the object in the form of hash
|
|
147
|
+
# @!visibility private
|
|
148
|
+
def to_hash
|
|
149
|
+
hash = {}
|
|
150
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
151
|
+
value = self.send(attr)
|
|
152
|
+
if value.nil?
|
|
153
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
154
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
hash[param] = _to_hash(value)
|
|
158
|
+
end
|
|
159
|
+
self.additional_properties.each_pair do |attr, value|
|
|
160
|
+
hash[attr] = value
|
|
161
|
+
end
|
|
162
|
+
hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Checks equality by comparing each attribute.
|
|
166
|
+
# @param o [Object] Object to be compared
|
|
167
|
+
# @!visibility private
|
|
168
|
+
def ==(o)
|
|
169
|
+
return true if self.equal?(o)
|
|
170
|
+
self.class == o.class &&
|
|
171
|
+
category == o.category &&
|
|
172
|
+
name == o.name &&
|
|
173
|
+
resource_key == o.resource_key &&
|
|
174
|
+
resource_type == o.resource_type &&
|
|
175
|
+
url == o.url &&
|
|
176
|
+
additional_properties == o.additional_properties
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Calculates hash code according to all attributes.
|
|
180
|
+
# @return [Integer] Hash code
|
|
181
|
+
# @!visibility private
|
|
182
|
+
def hash
|
|
183
|
+
[category, name, resource_key, resource_type, url, additional_properties].hash
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Indicates the type of asset this entity represents on a monitor.
|
|
21
|
+
class MonitorAssetCategory
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
RUNBOOK = "runbook".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Type of internal Datadog resource associated with a monitor asset.
|
|
21
|
+
class MonitorAssetResourceType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
NOTEBOOK = "notebook".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class MonitorUpdateRequest
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).
|
|
25
|
+
attr_accessor :assets
|
|
26
|
+
|
|
24
27
|
# Timestamp of the monitor creation.
|
|
25
28
|
attr_accessor :created
|
|
26
29
|
|
|
@@ -83,6 +86,7 @@ module DatadogAPIClient::V1
|
|
|
83
86
|
# @!visibility private
|
|
84
87
|
def self.attribute_map
|
|
85
88
|
{
|
|
89
|
+
:'assets' => :'assets',
|
|
86
90
|
:'created' => :'created',
|
|
87
91
|
:'creator' => :'creator',
|
|
88
92
|
:'deleted' => :'deleted',
|
|
@@ -107,6 +111,7 @@ module DatadogAPIClient::V1
|
|
|
107
111
|
# @!visibility private
|
|
108
112
|
def self.openapi_types
|
|
109
113
|
{
|
|
114
|
+
:'assets' => :'Array<MonitorAsset>',
|
|
110
115
|
:'created' => :'Time',
|
|
111
116
|
:'creator' => :'Creator',
|
|
112
117
|
:'deleted' => :'Time',
|
|
@@ -131,6 +136,7 @@ module DatadogAPIClient::V1
|
|
|
131
136
|
# @!visibility private
|
|
132
137
|
def self.openapi_nullable
|
|
133
138
|
Set.new([
|
|
139
|
+
:'assets',
|
|
134
140
|
:'deleted',
|
|
135
141
|
:'priority',
|
|
136
142
|
:'restricted_roles',
|
|
@@ -155,6 +161,12 @@ module DatadogAPIClient::V1
|
|
|
155
161
|
end
|
|
156
162
|
}
|
|
157
163
|
|
|
164
|
+
if attributes.key?(:'assets')
|
|
165
|
+
if (value = attributes[:'assets']).is_a?(Array)
|
|
166
|
+
self.assets = value
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
158
170
|
if attributes.key?(:'created')
|
|
159
171
|
self.created = attributes[:'created']
|
|
160
172
|
end
|
|
@@ -254,6 +266,7 @@ module DatadogAPIClient::V1
|
|
|
254
266
|
def ==(o)
|
|
255
267
|
return true if self.equal?(o)
|
|
256
268
|
self.class == o.class &&
|
|
269
|
+
assets == o.assets &&
|
|
257
270
|
created == o.created &&
|
|
258
271
|
creator == o.creator &&
|
|
259
272
|
deleted == o.deleted &&
|
|
@@ -278,7 +291,7 @@ module DatadogAPIClient::V1
|
|
|
278
291
|
# @return [Integer] Hash code
|
|
279
292
|
# @!visibility private
|
|
280
293
|
def hash
|
|
281
|
-
[created, creator, deleted, draft_status, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
|
294
|
+
[assets, created, creator, deleted, draft_status, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
|
282
295
|
end
|
|
283
296
|
end
|
|
284
297
|
end
|