datadog_api_client 2.21.0 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +308 -695
- data/.generator/schemas/v2/openapi.yaml +664 -185
- data/.github/workflows/prepare_release.yml +2 -2
- data/.github/workflows/publish.yml +2 -2
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +41 -0
- data/Gemfile +1 -1
- data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +9 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +8 -0
- data/examples/v1/synthetics/UpdateAPITest.rb +8 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
- data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
- data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/CreateCSMThreatsAgentRule.rb +2 -2
- data/examples/v2/{cloud-workload-security → csm-threats}/CreateCloudWorkloadSecurityAgentRule.rb +2 -2
- data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCSMThreatsPolicy.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCloudWorkloadPolicyFile.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/GetCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/GetCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/ListCSMThreatsAgentRules.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/ListCloudWorkloadSecurityAgentRules.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
- data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
- data/examples/v2/roles/CreateRole.rb +14 -2
- data/examples/v2/roles/CreateRole_3862893229.rb +27 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
- data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
- data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
- data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +26 -8
- data/lib/datadog_api_client/v1/api/authentication_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +112 -135
- data/lib/datadog_api_client/v1/api/users_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/series.rb +1 -1
- data/lib/datadog_api_client/v1/models/service_level_objective.rb +2 -1
- data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +7 -1
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +8 -1
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_response_data.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
- data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_timeframe.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +14 -4
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_meta_schema.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_operator.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +129 -0
- data/lib/datadog_api_client/v1/models/{usage_attribution_metadata.rb → synthetics_assertion_json_schema_target_target.rb} +19 -21
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +11 -1
- data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +8 -2
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/case_management_api.rb +17 -16
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +10 -10
- data/lib/datadog_api_client/v2/api/{cloud_workload_security_api.rb → csm_threats_api.rb} +35 -35
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/logs_archives_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +69 -1
- data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
- data/lib/datadog_api_client/v2/api/spans_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +22 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +2 -1
- data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
- data/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/retention_filter_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +14 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
- data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
- data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
- data/lib/datadog_api_client/v2/models/user_team_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +70 -46
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -18,16 +18,16 @@ body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({
|
|
18
18
|
}),
|
19
19
|
}),
|
20
20
|
],
|
21
|
-
from:
|
21
|
+
from: 1636625471000,
|
22
22
|
interval: 5000,
|
23
23
|
queries: [
|
24
24
|
DatadogAPIClient::V2::MetricsTimeseriesQuery.new({
|
25
25
|
data_source: DatadogAPIClient::V2::MetricsDataSource::METRICS,
|
26
|
-
query: "avg:
|
26
|
+
query: "avg:datadog.estimated_usage.metrics.custom{*}",
|
27
27
|
name: "a",
|
28
28
|
}),
|
29
29
|
],
|
30
|
-
to:
|
30
|
+
to: 1636629071000,
|
31
31
|
}),
|
32
32
|
type: DatadogAPIClient::V2::TimeseriesFormulaRequestType::TIMESERIES_REQUEST,
|
33
33
|
}),
|
@@ -5,10 +5,22 @@ api_instance = DatadogAPIClient::V2::RolesAPI.new
|
|
5
5
|
|
6
6
|
body = DatadogAPIClient::V2::RoleCreateRequest.new({
|
7
7
|
data: DatadogAPIClient::V2::RoleCreateData.new({
|
8
|
-
type: DatadogAPIClient::V2::RolesType::ROLES,
|
9
8
|
attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({
|
10
|
-
name: "
|
9
|
+
name: "developers",
|
10
|
+
}),
|
11
|
+
relationships: DatadogAPIClient::V2::RoleRelationships.new({
|
12
|
+
permissions: DatadogAPIClient::V2::RelationshipToPermissions.new({
|
13
|
+
data: [
|
14
|
+
DatadogAPIClient::V2::RelationshipToPermissionData.new({
|
15
|
+
type: DatadogAPIClient::V2::PermissionsType::PERMISSIONS,
|
16
|
+
}),
|
17
|
+
],
|
18
|
+
}),
|
19
|
+
users: DatadogAPIClient::V2::RelationshipToUsers.new({
|
20
|
+
data: [],
|
21
|
+
}),
|
11
22
|
}),
|
23
|
+
type: DatadogAPIClient::V2::RolesType::ROLES,
|
12
24
|
}),
|
13
25
|
})
|
14
26
|
p api_instance.create_role(body)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Create role with a permission returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::RolesAPI.new
|
5
|
+
|
6
|
+
# there is a valid "permission" in the system
|
7
|
+
PERMISSION_ID = ENV["PERMISSION_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::RoleCreateRequest.new({
|
10
|
+
data: DatadogAPIClient::V2::RoleCreateData.new({
|
11
|
+
type: DatadogAPIClient::V2::RolesType::ROLES,
|
12
|
+
attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({
|
13
|
+
name: "Example-Role",
|
14
|
+
}),
|
15
|
+
relationships: DatadogAPIClient::V2::RoleRelationships.new({
|
16
|
+
permissions: DatadogAPIClient::V2::RelationshipToPermissions.new({
|
17
|
+
data: [
|
18
|
+
DatadogAPIClient::V2::RelationshipToPermissionData.new({
|
19
|
+
id: PERMISSION_ID,
|
20
|
+
type: DatadogAPIClient::V2::PermissionsType::PERMISSIONS,
|
21
|
+
}),
|
22
|
+
],
|
23
|
+
}),
|
24
|
+
}),
|
25
|
+
}),
|
26
|
+
})
|
27
|
+
p api_instance.create_role(body)
|
@@ -8,7 +8,7 @@ body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({
|
|
8
8
|
attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateAttributes.new({
|
9
9
|
description: "This rule suppresses low-severity signals in staging environments.",
|
10
10
|
enabled: true,
|
11
|
-
expiration_date:
|
11
|
+
expiration_date: 1638443471000,
|
12
12
|
name: "Example-Security-Monitoring",
|
13
13
|
rule_query: "type:log_detection source:cloudtrail",
|
14
14
|
suppression_query: "env:staging status:low",
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Create a suppression rule with an exclusion query returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({
|
7
|
+
data: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateData.new({
|
8
|
+
attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateAttributes.new({
|
9
|
+
description: "This rule suppresses low-severity signals in staging environments.",
|
10
|
+
enabled: true,
|
11
|
+
expiration_date: 1638443471000,
|
12
|
+
name: "Example-Security-Monitoring",
|
13
|
+
rule_query: "type:log_detection source:cloudtrail",
|
14
|
+
data_exclusion_query: "account_id:12345",
|
15
|
+
}),
|
16
|
+
type: DatadogAPIClient::V2::SecurityMonitoringSuppressionType::SUPPRESSIONS,
|
17
|
+
}),
|
18
|
+
})
|
19
|
+
p api_instance.create_security_monitoring_suppression(body)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Validate a detection rule returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({
|
7
|
+
cases: [
|
8
|
+
DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate.new({
|
9
|
+
name: "",
|
10
|
+
status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
|
11
|
+
notifications: [],
|
12
|
+
condition: "a > 0",
|
13
|
+
}),
|
14
|
+
],
|
15
|
+
has_extended_title: true,
|
16
|
+
is_enabled: true,
|
17
|
+
message: "My security monitoring rule",
|
18
|
+
name: "My security monitoring rule",
|
19
|
+
options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
|
20
|
+
evaluation_window: DatadogAPIClient::V2::SecurityMonitoringRuleEvaluationWindow::THIRTY_MINUTES,
|
21
|
+
keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::THIRTY_MINUTES,
|
22
|
+
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::THIRTY_MINUTES,
|
23
|
+
detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::THRESHOLD,
|
24
|
+
}),
|
25
|
+
queries: [
|
26
|
+
DatadogAPIClient::V2::SecurityMonitoringStandardRuleQuery.new({
|
27
|
+
query: "source:source_here",
|
28
|
+
group_by_fields: [
|
29
|
+
"@userIdentity.assumed_role",
|
30
|
+
],
|
31
|
+
distinct_fields: [],
|
32
|
+
aggregation: DatadogAPIClient::V2::SecurityMonitoringRuleQueryAggregation::COUNT,
|
33
|
+
name: "",
|
34
|
+
}),
|
35
|
+
],
|
36
|
+
tags: [
|
37
|
+
"env:prod",
|
38
|
+
"team:security",
|
39
|
+
],
|
40
|
+
type: DatadogAPIClient::V2::SecurityMonitoringRuleTypeCreate::LOG_DETECTION,
|
41
|
+
})
|
42
|
+
api_instance.validate_security_monitoring_rule(body)
|
@@ -5,6 +5,10 @@ api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new
|
|
5
5
|
|
6
6
|
body = DatadogAPIClient::V2::ServiceDefinitionV2Dot2.new({
|
7
7
|
application: "my-app",
|
8
|
+
ci_pipeline_fingerprints: [
|
9
|
+
"j88xdEy0J5lc",
|
10
|
+
"eZ7LMljCk8vo",
|
11
|
+
],
|
8
12
|
contacts: [
|
9
13
|
DatadogAPIClient::V2::ServiceDefinitionV2Dot2Contact.new({
|
10
14
|
contact: "https://teams.microsoft.com/myteam",
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Create a new SLO report returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.create_slo_report_job".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::SloReportCreateRequest.new({
|
10
|
+
data: DatadogAPIClient::V2::SloReportCreateRequestData.new({
|
11
|
+
attributes: DatadogAPIClient::V2::SloReportCreateRequestAttributes.new({
|
12
|
+
from_ts: 1690901870,
|
13
|
+
to_ts: 1706803070,
|
14
|
+
query: 'slo_type:metric "SLO Reporting Test"',
|
15
|
+
interval: DatadogAPIClient::V2::SLOReportInterval::MONTHLY,
|
16
|
+
timezone: "America/New_York",
|
17
|
+
}),
|
18
|
+
}),
|
19
|
+
})
|
20
|
+
p api_instance.create_slo_report_job(body)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Get SLO report returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.get_slo_report".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new
|
8
|
+
p api_instance.get_slo_report("9fb2dc2a-ead0-11ee-a174-9fe3a9d7627f")
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Get SLO report status returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.get_slo_report_job_status".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new
|
8
|
+
|
9
|
+
# there is a valid "report" in the system
|
10
|
+
REPORT_DATA_ID = ENV["REPORT_DATA_ID"]
|
11
|
+
p api_instance.get_slo_report_job_status(REPORT_DATA_ID)
|
@@ -230,6 +230,9 @@ module DatadogAPIClient
|
|
230
230
|
"v2.get_incident_service": false,
|
231
231
|
"v2.list_incident_services": false,
|
232
232
|
"v2.update_incident_service": false,
|
233
|
+
"v2.create_slo_report_job": false,
|
234
|
+
"v2.get_slo_report": false,
|
235
|
+
"v2.get_slo_report_job_status": false,
|
233
236
|
"v2.create_incident_team": false,
|
234
237
|
"v2.delete_incident_team": false,
|
235
238
|
"v2.get_incident_team": false,
|
@@ -508,6 +508,7 @@ module DatadogAPIClient
|
|
508
508
|
"v1.slo_timeframe" => "SLOTimeframe",
|
509
509
|
"v1.slo_time_slice_comparator" => "SLOTimeSliceComparator",
|
510
510
|
"v1.slo_time_slice_condition" => "SLOTimeSliceCondition",
|
511
|
+
"v1.slo_time_slice_interval" => "SLOTimeSliceInterval",
|
511
512
|
"v1.slo_time_slice_query" => "SLOTimeSliceQuery",
|
512
513
|
"v1.slo_time_slice_spec" => "SLOTimeSliceSpec",
|
513
514
|
"v1.slo_type" => "SLOType",
|
@@ -548,6 +549,10 @@ module DatadogAPIClient
|
|
548
549
|
"v1.synthetics_assertion_json_path_operator" => "SyntheticsAssertionJSONPathOperator",
|
549
550
|
"v1.synthetics_assertion_json_path_target" => "SyntheticsAssertionJSONPathTarget",
|
550
551
|
"v1.synthetics_assertion_json_path_target_target" => "SyntheticsAssertionJSONPathTargetTarget",
|
552
|
+
"v1.synthetics_assertion_json_schema_meta_schema" => "SyntheticsAssertionJSONSchemaMetaSchema",
|
553
|
+
"v1.synthetics_assertion_json_schema_operator" => "SyntheticsAssertionJSONSchemaOperator",
|
554
|
+
"v1.synthetics_assertion_json_schema_target" => "SyntheticsAssertionJSONSchemaTarget",
|
555
|
+
"v1.synthetics_assertion_json_schema_target_target" => "SyntheticsAssertionJSONSchemaTargetTarget",
|
551
556
|
"v1.synthetics_assertion_operator" => "SyntheticsAssertionOperator",
|
552
557
|
"v1.synthetics_assertion_target" => "SyntheticsAssertionTarget",
|
553
558
|
"v1.synthetics_assertion_timings_scope" => "SyntheticsAssertionTimingsScope",
|
@@ -654,6 +659,7 @@ module DatadogAPIClient
|
|
654
659
|
"v1.synthetics_test_pause_status" => "SyntheticsTestPauseStatus",
|
655
660
|
"v1.synthetics_test_process_status" => "SyntheticsTestProcessStatus",
|
656
661
|
"v1.synthetics_test_request" => "SyntheticsTestRequest",
|
662
|
+
"v1.synthetics_test_request_body_file" => "SyntheticsTestRequestBodyFile",
|
657
663
|
"v1.synthetics_test_request_body_type" => "SyntheticsTestRequestBodyType",
|
658
664
|
"v1.synthetics_test_request_certificate" => "SyntheticsTestRequestCertificate",
|
659
665
|
"v1.synthetics_test_request_certificate_item" => "SyntheticsTestRequestCertificateItem",
|
@@ -708,13 +714,6 @@ module DatadogAPIClient
|
|
708
714
|
"v1.usage_analyzed_logs_hour" => "UsageAnalyzedLogsHour",
|
709
715
|
"v1.usage_analyzed_logs_response" => "UsageAnalyzedLogsResponse",
|
710
716
|
"v1.usage_attribution_aggregates_body" => "UsageAttributionAggregatesBody",
|
711
|
-
"v1.usage_attribution_body" => "UsageAttributionBody",
|
712
|
-
"v1.usage_attribution_metadata" => "UsageAttributionMetadata",
|
713
|
-
"v1.usage_attribution_pagination" => "UsageAttributionPagination",
|
714
|
-
"v1.usage_attribution_response" => "UsageAttributionResponse",
|
715
|
-
"v1.usage_attribution_sort" => "UsageAttributionSort",
|
716
|
-
"v1.usage_attribution_supported_metrics" => "UsageAttributionSupportedMetrics",
|
717
|
-
"v1.usage_attribution_values" => "UsageAttributionValues",
|
718
717
|
"v1.usage_audit_logs_hour" => "UsageAuditLogsHour",
|
719
718
|
"v1.usage_audit_logs_response" => "UsageAuditLogsResponse",
|
720
719
|
"v1.usage_billable_summary_body" => "UsageBillableSummaryBody",
|
@@ -905,10 +904,14 @@ module DatadogAPIClient
|
|
905
904
|
"v2.authn_mapping_create_request" => "AuthNMappingCreateRequest",
|
906
905
|
"v2.authn_mapping_included" => "AuthNMappingIncluded",
|
907
906
|
"v2.authn_mapping_relationships" => "AuthNMappingRelationships",
|
907
|
+
"v2.authn_mapping_relationship_to_role" => "AuthNMappingRelationshipToRole",
|
908
|
+
"v2.authn_mapping_relationship_to_team" => "AuthNMappingRelationshipToTeam",
|
908
909
|
"v2.authn_mapping_response" => "AuthNMappingResponse",
|
909
910
|
"v2.authn_mappings_response" => "AuthNMappingsResponse",
|
910
911
|
"v2.authn_mappings_sort" => "AuthNMappingsSort",
|
911
912
|
"v2.authn_mappings_type" => "AuthNMappingsType",
|
913
|
+
"v2.authn_mapping_team" => "AuthNMappingTeam",
|
914
|
+
"v2.authn_mapping_team_attributes" => "AuthNMappingTeamAttributes",
|
912
915
|
"v2.authn_mapping_update_attributes" => "AuthNMappingUpdateAttributes",
|
913
916
|
"v2.authn_mapping_update_data" => "AuthNMappingUpdateData",
|
914
917
|
"v2.authn_mapping_update_relationships" => "AuthNMappingUpdateRelationships",
|
@@ -1794,6 +1797,8 @@ module DatadogAPIClient
|
|
1794
1797
|
"v2.relationship_to_rule_data_object" => "RelationshipToRuleDataObject",
|
1795
1798
|
"v2.relationship_to_saml_assertion_attribute" => "RelationshipToSAMLAssertionAttribute",
|
1796
1799
|
"v2.relationship_to_saml_assertion_attribute_data" => "RelationshipToSAMLAssertionAttributeData",
|
1800
|
+
"v2.relationship_to_team" => "RelationshipToTeam",
|
1801
|
+
"v2.relationship_to_team_data" => "RelationshipToTeamData",
|
1797
1802
|
"v2.relationship_to_team_link_data" => "RelationshipToTeamLinkData",
|
1798
1803
|
"v2.relationship_to_team_links" => "RelationshipToTeamLinks",
|
1799
1804
|
"v2.relationship_to_user" => "RelationshipToUser",
|
@@ -1821,9 +1826,11 @@ module DatadogAPIClient
|
|
1821
1826
|
"v2.retention_filter_create_attributes" => "RetentionFilterCreateAttributes",
|
1822
1827
|
"v2.retention_filter_create_data" => "RetentionFilterCreateData",
|
1823
1828
|
"v2.retention_filter_create_request" => "RetentionFilterCreateRequest",
|
1829
|
+
"v2.retention_filter_create_response" => "RetentionFilterCreateResponse",
|
1824
1830
|
"v2.retention_filter_response" => "RetentionFilterResponse",
|
1825
1831
|
"v2.retention_filters_response" => "RetentionFiltersResponse",
|
1826
1832
|
"v2.retention_filter_type" => "RetentionFilterType",
|
1833
|
+
"v2.retention_filter_update_attributes" => "RetentionFilterUpdateAttributes",
|
1827
1834
|
"v2.retention_filter_update_data" => "RetentionFilterUpdateData",
|
1828
1835
|
"v2.retention_filter_update_request" => "RetentionFilterUpdateRequest",
|
1829
1836
|
"v2.retention_filter_without_attributes" => "RetentionFilterWithoutAttributes",
|
@@ -2126,6 +2133,16 @@ module DatadogAPIClient
|
|
2126
2133
|
"v2.service_now_ticket_result" => "ServiceNowTicketResult",
|
2127
2134
|
"v2.slack_integration_metadata" => "SlackIntegrationMetadata",
|
2128
2135
|
"v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
|
2136
|
+
"v2.slo_report_create_request" => "SloReportCreateRequest",
|
2137
|
+
"v2.slo_report_create_request_attributes" => "SloReportCreateRequestAttributes",
|
2138
|
+
"v2.slo_report_create_request_data" => "SloReportCreateRequestData",
|
2139
|
+
"v2.slo_report_interval" => "SLOReportInterval",
|
2140
|
+
"v2.slo_report_post_response" => "SLOReportPostResponse",
|
2141
|
+
"v2.slo_report_post_response_data" => "SLOReportPostResponseData",
|
2142
|
+
"v2.slo_report_status" => "SLOReportStatus",
|
2143
|
+
"v2.slo_report_status_get_response" => "SLOReportStatusGetResponse",
|
2144
|
+
"v2.slo_report_status_get_response_attributes" => "SLOReportStatusGetResponseAttributes",
|
2145
|
+
"v2.slo_report_status_get_response_data" => "SLOReportStatusGetResponseData",
|
2129
2146
|
"v2.sort_direction" => "SortDirection",
|
2130
2147
|
"v2.span" => "Span",
|
2131
2148
|
"v2.spans_aggregate_bucket" => "SpansAggregateBucket",
|
@@ -2328,11 +2345,11 @@ module DatadogAPIClient
|
|
2328
2345
|
"v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
|
2329
2346
|
"v2.ci_visibility_tests_api" => "CIVisibilityTestsAPI",
|
2330
2347
|
"v2.cloud_cost_management_api" => "CloudCostManagementAPI",
|
2331
|
-
"v2.cloud_workload_security_api" => "CloudWorkloadSecurityAPI",
|
2332
2348
|
"v2.cloudflare_integration_api" => "CloudflareIntegrationAPI",
|
2333
2349
|
"v2.confluent_cloud_api" => "ConfluentCloudAPI",
|
2334
2350
|
"v2.container_images_api" => "ContainerImagesAPI",
|
2335
2351
|
"v2.containers_api" => "ContainersAPI",
|
2352
|
+
"v2.csm_threats_api" => "CSMThreatsAPI",
|
2336
2353
|
"v2.dashboard_lists_api" => "DashboardListsAPI",
|
2337
2354
|
"v2.dora_metrics_api" => "DORAMetricsAPI",
|
2338
2355
|
"v2.downtimes_api" => "DowntimesAPI",
|
@@ -2362,6 +2379,7 @@ module DatadogAPIClient
|
|
2362
2379
|
"v2.sensitive_data_scanner_api" => "SensitiveDataScannerAPI",
|
2363
2380
|
"v2.service_accounts_api" => "ServiceAccountsAPI",
|
2364
2381
|
"v2.service_definition_api" => "ServiceDefinitionAPI",
|
2382
|
+
"v2.service_level_objectives_api" => "ServiceLevelObjectivesAPI",
|
2365
2383
|
"v2.service_scorecards_api" => "ServiceScorecardsAPI",
|
2366
2384
|
"v2.spans_api" => "SpansAPI",
|
2367
2385
|
"v2.spans_metrics_api" => "SpansMetricsAPI",
|
@@ -63,7 +63,7 @@ module DatadogAPIClient::V1
|
|
63
63
|
return_type = opts[:debug_return_type] || 'AuthenticationValidationResponse'
|
64
64
|
|
65
65
|
# auth_names
|
66
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth
|
66
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
|
67
67
|
|
68
68
|
new_options = opts.merge(
|
69
69
|
:operation => :validate,
|
@@ -661,7 +661,7 @@ module DatadogAPIClient::V1
|
|
661
661
|
return_type = opts[:debug_return_type] || 'AWSEventBridgeListResponse'
|
662
662
|
|
663
663
|
# auth_names
|
664
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
664
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
665
665
|
|
666
666
|
new_options = opts.merge(
|
667
667
|
:operation => :list_aws_event_bridge_sources,
|
@@ -195,7 +195,7 @@ module DatadogAPIClient::V1
|
|
195
195
|
return_type = opts[:debug_return_type] || 'LogsIndexesOrder'
|
196
196
|
|
197
197
|
# auth_names
|
198
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
198
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
199
199
|
|
200
200
|
new_options = opts.merge(
|
201
201
|
:operation => :get_logs_index_order,
|
@@ -202,7 +202,7 @@ module DatadogAPIClient::V1
|
|
202
202
|
return_type = opts[:debug_return_type] || 'LogsPipeline'
|
203
203
|
|
204
204
|
# auth_names
|
205
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
205
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
206
206
|
|
207
207
|
new_options = opts.merge(
|
208
208
|
:operation => :get_logs_pipeline,
|
@@ -263,7 +263,7 @@ module DatadogAPIClient::V1
|
|
263
263
|
return_type = opts[:debug_return_type] || 'LogsPipelinesOrder'
|
264
264
|
|
265
265
|
# auth_names
|
266
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
266
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
267
267
|
|
268
268
|
new_options = opts.merge(
|
269
269
|
:operation => :get_logs_pipeline_order,
|
@@ -324,7 +324,7 @@ module DatadogAPIClient::V1
|
|
324
324
|
return_type = opts[:debug_return_type] || 'Array<LogsPipeline>'
|
325
325
|
|
326
326
|
# auth_names
|
327
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
327
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
328
328
|
|
329
329
|
new_options = opts.merge(
|
330
330
|
:operation => :list_logs_pipelines,
|