datadog_api_client 2.42.0 → 2.43.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 +3 -7
- data/.generator/schemas/v2/openapi.yaml +2981 -63
- data/.github/CODEOWNERS +4 -4
- data/.github/workflows/reusable-ci.yml +71 -0
- data/.github/workflows/reusable-examples.yml +40 -0
- data/.github/workflows/{test_integration.yml → reusable-integration-test.yml} +66 -17
- data/.github/workflows/reusable-pre-commit.yml +84 -0
- data/.github/workflows/reusable-ruby-test.yml +65 -0
- data/.github/workflows/test.yml +31 -89
- data/CHANGELOG.md +19 -0
- data/examples/v1/dashboards/CreateDashboard_607525069.rb +61 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb +5 -0
- data/examples/v2/cloud-cost-management/CreateArbitraryCostRule.rb +63 -0
- data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +0 -1
- data/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/CreateRuleset.rb +32 -0
- data/examples/v2/cloud-cost-management/DeleteArbitraryCostRule.rb +5 -0
- data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteRuleset.rb +5 -0
- data/examples/v2/cloud-cost-management/GetArbitraryCostRule.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetRuleset.rb +5 -0
- data/examples/v2/cloud-cost-management/ListArbitraryCostRules.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb +1 -1
- data/examples/v2/cloud-cost-management/ListRulesets.rb +5 -0
- data/examples/v2/cloud-cost-management/ReorderArbitraryCostRules.rb +22 -0
- data/examples/v2/cloud-cost-management/ReorderRulesets.rb +13 -0
- data/examples/v2/cloud-cost-management/UpdateArbitraryCostRule.rb +63 -0
- data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateRuleset.rb +31 -0
- data/examples/v2/cloud-cost-management/ValidateQuery.rb +14 -0
- data/examples/v2/dora-metrics/DeleteDORADeployment.rb +5 -0
- data/examples/v2/dora-metrics/DeleteDORAFailure.rb +5 -0
- data/examples/v2/incidents/CreateIncidentImpact.rb +22 -0
- data/examples/v2/incidents/DeleteIncidentImpact.rb +12 -0
- data/examples/v2/incidents/ListIncidentImpacts.rb +11 -0
- data/examples/v2/key-management/GetCurrentUserApplicationKey.rb +4 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb +68 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb +70 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +104 -1
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +1 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +120 -0
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +1211 -126
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +130 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +229 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +2 -0
- data/lib/datadog_api_client/v2/models/account_filtering_config.rb +8 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes.rb +241 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_costs_to_allocate_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy.rb +215 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_based_on_costs_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +351 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_costs_to_allocate_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy.rb +215 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_based_on_costs_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +5 -5
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes_account_filters.rb +137 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +19 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config.rb +9 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +3 -13
- data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +19 -1
- data/lib/datadog_api_client/v2/models/create_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +19 -1
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config.rb +4 -4
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_attributes.rb +13 -13
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_data.rb +4 -15
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_configs_response.rb +21 -3
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_impact_attributes.rb +203 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_impact_related_object.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_impact_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_impact_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_impact_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_impact_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_impacts_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +33 -1
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +251 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +19 -1
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/relationship_to_incident.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp.rb +105 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +276 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_created.rb +133 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_modified.rb +133 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +22 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_options.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step.rb +126 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step_transition.rb +126 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair.rb +105 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes_configs_items.rb +255 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes.rb +156 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +137 -3
- data/examples/v1/synthetics/SearchTests_195957771.rb +0 -14
data/.github/CODEOWNERS
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
* @DataDog/web-frameworks-approvers @DataDog/web-frameworks
|
7
7
|
|
8
8
|
# Documentation
|
9
|
-
*.md @DataDog/
|
10
|
-
LICENSE @DataDog/
|
11
|
-
NOTICE @DataDog/
|
12
|
-
LICENSE-3rdparty.csv @DataDog/
|
9
|
+
*.md @DataDog/web-frameworks-approvers @DataDog/web-frameworks
|
10
|
+
LICENSE @DataDog/web-frameworks-approvers @DataDog/web-frameworks
|
11
|
+
NOTICE @DataDog/web-frameworks-approvers @DataDog/web-frameworks
|
12
|
+
LICENSE-3rdparty.csv @DataDog/web-frameworks-approvers @DataDog/web-frameworks
|
@@ -0,0 +1,71 @@
|
|
1
|
+
name: Reusable Complete CI Workflow
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_call:
|
5
|
+
inputs:
|
6
|
+
target-branch:
|
7
|
+
description: 'Branch to checkout and test (defaults to the calling branch)'
|
8
|
+
required: false
|
9
|
+
type: string
|
10
|
+
default: ''
|
11
|
+
cache-version:
|
12
|
+
description: 'Cache version for gem dependencies'
|
13
|
+
required: false
|
14
|
+
type: string
|
15
|
+
default: ''
|
16
|
+
|
17
|
+
secrets:
|
18
|
+
PIPELINE_GITHUB_APP_ID:
|
19
|
+
required: false
|
20
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY:
|
21
|
+
required: false
|
22
|
+
# Integration test secrets
|
23
|
+
DD_API_KEY:
|
24
|
+
required: false
|
25
|
+
DD_CLIENT_API_KEY:
|
26
|
+
required: false
|
27
|
+
DD_CLIENT_APP_KEY:
|
28
|
+
required: false
|
29
|
+
SLEEP_AFTER_REQUEST:
|
30
|
+
required: false
|
31
|
+
|
32
|
+
jobs:
|
33
|
+
pre-commit:
|
34
|
+
uses: ./.github/workflows/reusable-pre-commit.yml
|
35
|
+
with:
|
36
|
+
target-branch: ${{ inputs.target-branch }}
|
37
|
+
enable-commit-changes: false # Don't auto-commit in external CI
|
38
|
+
secrets:
|
39
|
+
PIPELINE_GITHUB_APP_ID: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
40
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
41
|
+
|
42
|
+
test:
|
43
|
+
uses: ./.github/workflows/reusable-ruby-test.yml
|
44
|
+
with:
|
45
|
+
target-branch: ${{ inputs.target-branch }}
|
46
|
+
cache-version: ${{ inputs.cache-version }}
|
47
|
+
secrets:
|
48
|
+
PIPELINE_GITHUB_APP_ID: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
49
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
50
|
+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
51
|
+
|
52
|
+
examples:
|
53
|
+
uses: ./.github/workflows/reusable-examples.yml
|
54
|
+
with:
|
55
|
+
target-branch: ${{ inputs.target-branch }}
|
56
|
+
cache-version: ${{ inputs.cache-version }}
|
57
|
+
|
58
|
+
integration:
|
59
|
+
uses: ./.github/workflows/reusable-integration-test.yml
|
60
|
+
with:
|
61
|
+
target-branch: ${{ inputs.target-branch }}
|
62
|
+
cache-version: ${{ inputs.cache-version }}
|
63
|
+
has-integration-label: ${{ contains(github.event.pull_request.labels.*.name, 'ci/integrations') }}
|
64
|
+
secrets:
|
65
|
+
PIPELINE_GITHUB_APP_ID: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
66
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
67
|
+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
68
|
+
DD_CLIENT_API_KEY: ${{ secrets.DD_CLIENT_API_KEY }}
|
69
|
+
DD_CLIENT_APP_KEY: ${{ secrets.DD_CLIENT_APP_KEY }}
|
70
|
+
SLEEP_AFTER_REQUEST: ${{ secrets.SLEEP_AFTER_REQUEST }}
|
71
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
name: Reusable Examples Workflow
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_call:
|
5
|
+
inputs:
|
6
|
+
target-branch:
|
7
|
+
description: 'Branch to checkout and test (defaults to the calling branch)'
|
8
|
+
required: false
|
9
|
+
type: string
|
10
|
+
default: ''
|
11
|
+
examples-script:
|
12
|
+
description: 'Examples script to execute'
|
13
|
+
required: false
|
14
|
+
type: string
|
15
|
+
default: './check-examples.sh'
|
16
|
+
cache-version:
|
17
|
+
description: 'Cache version for gem dependencies'
|
18
|
+
required: false
|
19
|
+
type: string
|
20
|
+
default: ''
|
21
|
+
|
22
|
+
jobs:
|
23
|
+
examples:
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
env:
|
26
|
+
DD_PROFILING_NO_EXTENSION: true
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
with:
|
30
|
+
repository: DataDog/datadog-api-client-ruby
|
31
|
+
ref: ${{ inputs.target-branch || github.ref }}
|
32
|
+
- name: Set up Ruby
|
33
|
+
uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: "2.7"
|
36
|
+
bundler-cache: true
|
37
|
+
cache-version: ${{ inputs.cache-version }}
|
38
|
+
- name: Check examples
|
39
|
+
run: ${{ inputs.examples-script }}
|
40
|
+
shell: bash
|
@@ -1,10 +1,12 @@
|
|
1
|
-
name:
|
1
|
+
name: Reusable Integration Test Workflow
|
2
2
|
|
3
3
|
permissions:
|
4
4
|
contents: read
|
5
5
|
|
6
6
|
on:
|
7
7
|
pull_request:
|
8
|
+
branches:
|
9
|
+
- master
|
8
10
|
types:
|
9
11
|
- opened
|
10
12
|
- reopened
|
@@ -12,13 +14,56 @@ on:
|
|
12
14
|
- synchronize
|
13
15
|
- labeled
|
14
16
|
- unlabeled
|
15
|
-
branches:
|
16
|
-
- master
|
17
17
|
schedule:
|
18
18
|
- cron: "0 2 * * *"
|
19
|
+
workflow_call:
|
20
|
+
inputs:
|
21
|
+
target-branch:
|
22
|
+
description: 'Branch to checkout and test (defaults to the calling branch)'
|
23
|
+
required: false
|
24
|
+
type: string
|
25
|
+
default: ''
|
26
|
+
enable-status-reporting:
|
27
|
+
description: 'Whether to post status checks to datadog-api-spec repo'
|
28
|
+
required: false
|
29
|
+
type: boolean
|
30
|
+
default: false
|
31
|
+
status-context:
|
32
|
+
description: 'Context for status checks'
|
33
|
+
required: false
|
34
|
+
type: string
|
35
|
+
default: 'integration'
|
36
|
+
target-repo:
|
37
|
+
description: 'Repository to post status to'
|
38
|
+
required: false
|
39
|
+
type: string
|
40
|
+
default: 'datadog-api-spec'
|
41
|
+
cache-version:
|
42
|
+
description: 'Cache version for gem dependencies'
|
43
|
+
required: false
|
44
|
+
type: string
|
45
|
+
default: ''
|
46
|
+
has-integration-label:
|
47
|
+
description: 'Whether the calling PR has ci/integrations label'
|
48
|
+
required: false
|
49
|
+
type: boolean
|
50
|
+
default: false
|
51
|
+
secrets:
|
52
|
+
PIPELINE_GITHUB_APP_ID:
|
53
|
+
required: false
|
54
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY:
|
55
|
+
required: false
|
56
|
+
DD_API_KEY:
|
57
|
+
required: true
|
58
|
+
DD_CLIENT_API_KEY:
|
59
|
+
required: true
|
60
|
+
DD_CLIENT_APP_KEY:
|
61
|
+
required: true
|
62
|
+
SLEEP_AFTER_REQUEST:
|
63
|
+
required: false
|
19
64
|
|
20
65
|
concurrency:
|
21
|
-
group: integration-${{ github.head_ref }}
|
66
|
+
group: integration-ruby-${{ inputs.target-branch || github.head_ref }}
|
22
67
|
cancel-in-progress: true
|
23
68
|
|
24
69
|
jobs:
|
@@ -30,7 +75,8 @@ jobs:
|
|
30
75
|
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
|
31
76
|
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') &&
|
32
77
|
contains(github.event.pull_request.labels.*.name, 'ci/integrations')) ||
|
33
|
-
github.event_name == 'schedule'
|
78
|
+
github.event_name == 'schedule' ||
|
79
|
+
(github.event_name == 'workflow_call' && inputs.has-integration-label)
|
34
80
|
services:
|
35
81
|
datadog-agent:
|
36
82
|
image: gcr.io/datadoghq/agent:latest
|
@@ -48,17 +94,20 @@ jobs:
|
|
48
94
|
with:
|
49
95
|
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
50
96
|
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
51
|
-
repositories: datadog-api-spec
|
97
|
+
repositories: ${{ inputs.target-repo || 'datadog-api-spec' }}
|
52
98
|
- name: Checkout code
|
53
99
|
uses: actions/checkout@v3
|
100
|
+
with:
|
101
|
+
repository: DataDog/datadog-api-client-ruby
|
102
|
+
ref: ${{ inputs.target-branch || github.ref }}
|
54
103
|
- name: Post pending status check
|
55
|
-
if: github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
|
104
|
+
if: github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/') && (inputs.enable-status-reporting || github.event_name != 'workflow_call')
|
56
105
|
uses: DataDog/github-actions/post-status-check@v2
|
57
106
|
with:
|
58
107
|
github-token: ${{ steps.get_token.outputs.token }}
|
59
|
-
repo: datadog-api-spec
|
108
|
+
repo: ${{ inputs.target-repo || 'datadog-api-spec' }}
|
60
109
|
status: pending
|
61
|
-
context: integration
|
110
|
+
context: ${{ inputs.status-context || 'integration' }}
|
62
111
|
- name: Install system zstd
|
63
112
|
run: |
|
64
113
|
sudo apt-get -y install zstd
|
@@ -68,7 +117,7 @@ jobs:
|
|
68
117
|
with:
|
69
118
|
ruby-version: "3.2"
|
70
119
|
bundler-cache: true
|
71
|
-
cache-version: ${{
|
120
|
+
cache-version: ${{ inputs.cache-version }}
|
72
121
|
- name: Install deps
|
73
122
|
run: bundle install
|
74
123
|
- name: Run integration tests
|
@@ -84,20 +133,20 @@ jobs:
|
|
84
133
|
DD_TEST_CLIENT_APP_KEY: ${{ secrets.DD_CLIENT_APP_KEY }}
|
85
134
|
DD_TRACE_ANALYTICS_ENABLED: "true"
|
86
135
|
RECORD: "none"
|
87
|
-
SLEEP_AFTER_REQUEST:
|
136
|
+
SLEEP_AFTER_REQUEST: ${{ secrets.SLEEP_AFTER_REQUEST || vars.SLEEP_AFTER_REQUEST }}
|
88
137
|
- name: Post failure status check
|
89
|
-
if: failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
|
138
|
+
if: failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/') && (inputs.enable-status-reporting || github.event_name != 'workflow_call')
|
90
139
|
uses: DataDog/github-actions/post-status-check@v2
|
91
140
|
with:
|
92
141
|
github-token: ${{ steps.get_token.outputs.token }}
|
93
|
-
repo: datadog-api-spec
|
142
|
+
repo: ${{ inputs.target-repo || 'datadog-api-spec' }}
|
94
143
|
status: failure
|
95
|
-
context: integration
|
144
|
+
context: ${{ inputs.status-context || 'integration' }}
|
96
145
|
- name: Post success status check
|
97
|
-
if: "!failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')"
|
146
|
+
if: "!failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/') && (inputs.enable-status-reporting || github.event_name != 'workflow_call')"
|
98
147
|
uses: DataDog/github-actions/post-status-check@v2
|
99
148
|
with:
|
100
149
|
github-token: ${{ steps.get_token.outputs.token }}
|
101
|
-
repo: datadog-api-spec
|
150
|
+
repo: ${{ inputs.target-repo || 'datadog-api-spec' }}
|
102
151
|
status: success
|
103
|
-
context: integration
|
152
|
+
context: ${{ inputs.status-context || 'integration' }}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
name: Reusable Pre-commit Workflow
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_call:
|
5
|
+
inputs:
|
6
|
+
target-branch:
|
7
|
+
description: 'Branch to checkout and test (defaults to the calling branch)'
|
8
|
+
required: false
|
9
|
+
type: string
|
10
|
+
default: ''
|
11
|
+
enable-commit-changes:
|
12
|
+
description: 'Whether to commit and push pre-commit fixes'
|
13
|
+
required: false
|
14
|
+
type: boolean
|
15
|
+
default: true
|
16
|
+
secrets:
|
17
|
+
PIPELINE_GITHUB_APP_ID:
|
18
|
+
required: false
|
19
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY:
|
20
|
+
required: false
|
21
|
+
|
22
|
+
env:
|
23
|
+
GIT_AUTHOR_EMAIL: "packages@datadoghq.com"
|
24
|
+
GIT_AUTHOR_NAME: "ci.datadog-api-spec"
|
25
|
+
|
26
|
+
jobs:
|
27
|
+
pre-commit:
|
28
|
+
runs-on: ubuntu-latest
|
29
|
+
steps:
|
30
|
+
- name: Get GitHub App token
|
31
|
+
id: get_token
|
32
|
+
if: inputs.enable-commit-changes
|
33
|
+
uses: actions/create-github-app-token@v1
|
34
|
+
with:
|
35
|
+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
36
|
+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
37
|
+
- uses: actions/checkout@v3
|
38
|
+
with:
|
39
|
+
fetch-depth: 0
|
40
|
+
repository: DataDog/datadog-api-client-ruby
|
41
|
+
ref: ${{ inputs.target-branch || github.event.pull_request.head.sha || github.ref }}
|
42
|
+
token: ${{ inputs.enable-commit-changes && steps.get_token.outputs.token || github.token }}
|
43
|
+
- uses: actions/setup-python@v4
|
44
|
+
with:
|
45
|
+
python-version: '3.11'
|
46
|
+
- name: Install pre-commit
|
47
|
+
run: python -m pip install pre-commit
|
48
|
+
- name: set PY
|
49
|
+
run: echo "PY=$(python -c 'import platform;print(platform.python_version())')" >> $GITHUB_ENV
|
50
|
+
- uses: actions/cache@v3
|
51
|
+
with:
|
52
|
+
path: ~/.cache/pre-commit
|
53
|
+
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
54
|
+
- name: Determine pre-commit range
|
55
|
+
id: commit_range
|
56
|
+
run: |
|
57
|
+
FROM_REF=$(git merge-base HEAD origin/master)
|
58
|
+
echo "from_ref=$FROM_REF" >> $GITHUB_OUTPUT
|
59
|
+
echo "to_ref=HEAD" >> $GITHUB_OUTPUT
|
60
|
+
echo "Pre-commit will check from $FROM_REF to HEAD"
|
61
|
+
- id: pre_commit
|
62
|
+
name: Run pre-commit
|
63
|
+
if: github.event.action != 'closed' && github.event.pull_request.merged != true
|
64
|
+
run: |
|
65
|
+
pre-commit run --from-ref "${FROM_REF}" --to-ref "${TO_REF}" --show-diff-on-failure --color=always
|
66
|
+
env:
|
67
|
+
FROM_REF: ${{ steps.commit_range.outputs.from_ref }}
|
68
|
+
TO_REF: ${{ steps.commit_range.outputs.to_ref }}
|
69
|
+
- name: Commit changes
|
70
|
+
if: ${{ failure() && inputs.enable-commit-changes }}
|
71
|
+
run: |-
|
72
|
+
git add -A
|
73
|
+
git config user.name "${GIT_AUTHOR_NAME}"
|
74
|
+
git config user.email "${GIT_AUTHOR_EMAIL}"
|
75
|
+
git commit -m "pre-commit fixes"
|
76
|
+
git push origin "HEAD:${HEAD_REF}"
|
77
|
+
exit 1
|
78
|
+
env:
|
79
|
+
HEAD_REF: ${{ github.event.pull_request.head.ref }}
|
80
|
+
- id: pre_commit_schedule
|
81
|
+
name: Run pre-commit in schedule
|
82
|
+
if: github.event_name == 'schedule'
|
83
|
+
run: |
|
84
|
+
pre-commit run --all-files --show-diff-on-failure --color=always
|
@@ -0,0 +1,65 @@
|
|
1
|
+
name: Reusable Ruby Testing Workflow
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_call:
|
5
|
+
inputs:
|
6
|
+
target-branch:
|
7
|
+
description: 'Branch to checkout and test (defaults to the calling branch)'
|
8
|
+
required: false
|
9
|
+
type: string
|
10
|
+
default: ''
|
11
|
+
ruby-versions:
|
12
|
+
description: 'JSON array of Ruby versions to test against'
|
13
|
+
required: false
|
14
|
+
type: string
|
15
|
+
default: '["2.7", "3.2", "jruby-9.4.12.0"]'
|
16
|
+
platforms:
|
17
|
+
description: 'JSON array of platforms to run tests on'
|
18
|
+
required: false
|
19
|
+
type: string
|
20
|
+
default: '["ubuntu-latest"]'
|
21
|
+
test-script:
|
22
|
+
description: 'Test script to execute'
|
23
|
+
required: false
|
24
|
+
type: string
|
25
|
+
default: './run-tests.sh'
|
26
|
+
cache-version:
|
27
|
+
description: 'Cache version for gem dependencies'
|
28
|
+
required: false
|
29
|
+
type: string
|
30
|
+
default: ''
|
31
|
+
secrets:
|
32
|
+
PIPELINE_GITHUB_APP_ID:
|
33
|
+
required: false
|
34
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY:
|
35
|
+
required: false
|
36
|
+
DD_API_KEY:
|
37
|
+
required: false
|
38
|
+
|
39
|
+
jobs:
|
40
|
+
test:
|
41
|
+
strategy:
|
42
|
+
matrix:
|
43
|
+
ruby-version: ${{ fromJSON(inputs.ruby-versions) }}
|
44
|
+
platform: ${{ fromJSON(inputs.platforms) }}
|
45
|
+
runs-on: ${{ matrix.platform }}
|
46
|
+
env:
|
47
|
+
BUNDLE_WITHOUT: docs
|
48
|
+
DD_PROFILING_NO_EXTENSION: true
|
49
|
+
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
|
50
|
+
DD_ENV: prod
|
51
|
+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
52
|
+
steps:
|
53
|
+
- uses: actions/checkout@v3
|
54
|
+
with:
|
55
|
+
repository: DataDog/datadog-api-client-ruby
|
56
|
+
ref: ${{ inputs.target-branch || github.ref }}
|
57
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
58
|
+
uses: ruby/setup-ruby@v1
|
59
|
+
with:
|
60
|
+
ruby-version: ${{ matrix.ruby-version }}
|
61
|
+
bundler-cache: true
|
62
|
+
cache-version: ${{ inputs.cache-version }}
|
63
|
+
- name: Test
|
64
|
+
run: ${{ inputs.test-script }}
|
65
|
+
shell: bash
|
data/.github/workflows/test.yml
CHANGED
@@ -20,103 +20,45 @@ concurrency:
|
|
20
20
|
|
21
21
|
jobs:
|
22
22
|
pre-commit:
|
23
|
-
runs-on: ubuntu-latest
|
24
23
|
if: >
|
25
24
|
(github.event.pull_request.draft == false &&
|
26
25
|
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
|
27
26
|
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
|
28
27
|
github.event_name == 'schedule'
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
36
|
-
- uses: actions/checkout@v3
|
37
|
-
with:
|
38
|
-
fetch-depth: 0
|
39
|
-
ref: ${{ github.event.pull_request.head.sha }}
|
40
|
-
token: ${{ steps.get_token.outputs.token }}
|
41
|
-
- uses: actions/setup-python@v4
|
42
|
-
with:
|
43
|
-
python-version: '3.11'
|
44
|
-
- name: Install pre-commit
|
45
|
-
run: python -m pip install pre-commit
|
46
|
-
- name: set PY
|
47
|
-
run: echo "PY=$(python -c 'import platform;print(platform.python_version())')" >> $GITHUB_ENV
|
48
|
-
- uses: actions/cache@v3
|
49
|
-
with:
|
50
|
-
path: ~/.cache/pre-commit
|
51
|
-
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
52
|
-
- id: pre_commit
|
53
|
-
name: Run pre-commit
|
54
|
-
if: github.event.action != 'closed' && github.event.pull_request.merged != true
|
55
|
-
run: |
|
56
|
-
pre-commit run --from-ref "${FROM_REF}" --to-ref "${TO_REF}" --show-diff-on-failure --color=always
|
57
|
-
env:
|
58
|
-
FROM_REF: ${{ github.event.pull_request.base.sha }}
|
59
|
-
TO_REF: ${{ github.event.pull_request.head.sha }}
|
60
|
-
- name: Commit changes
|
61
|
-
if: ${{ failure() }}
|
62
|
-
run: |-
|
63
|
-
git add -A
|
64
|
-
git config user.name "${GIT_AUTHOR_NAME}"
|
65
|
-
git config user.email "${GIT_AUTHOR_EMAIL}"
|
66
|
-
git commit -m "pre-commit fixes"
|
67
|
-
git push origin "HEAD:${HEAD_REF}"
|
68
|
-
exit 1
|
69
|
-
env:
|
70
|
-
HEAD_REF: ${{ github.event.pull_request.head.ref }}
|
71
|
-
- id: pre_commit_schedule
|
72
|
-
name: Run pre-commit in schedule
|
73
|
-
if: github.event_name == 'schedule'
|
74
|
-
run: |
|
75
|
-
pre-commit run --all-files --show-diff-on-failure --color=always
|
28
|
+
uses: ./.github/workflows/reusable-pre-commit.yml
|
29
|
+
with:
|
30
|
+
enable-commit-changes: true
|
31
|
+
secrets:
|
32
|
+
PIPELINE_GITHUB_APP_ID: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
33
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
76
34
|
|
77
35
|
test:
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
36
|
+
if: >
|
37
|
+
(github.event.pull_request.draft == false &&
|
38
|
+
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
|
39
|
+
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
|
40
|
+
github.event_name == 'schedule'
|
41
|
+
uses: ./.github/workflows/reusable-ruby-test.yml
|
42
|
+
with:
|
43
|
+
ruby-versions: '["2.7", "3.2", "jruby-9.4.12.0"]'
|
44
|
+
platforms: '["ubuntu-latest"]'
|
45
|
+
test-script: './run-tests.sh'
|
46
|
+
cache-version: ${{ vars.CACHE_VERSION }}
|
47
|
+
secrets:
|
48
|
+
PIPELINE_GITHUB_APP_ID: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
49
|
+
PIPELINE_GITHUB_APP_PRIVATE_KEY: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
89
50
|
DD_API_KEY: ${{ secrets.DD_API_KEY }}
|
90
|
-
steps:
|
91
|
-
- uses: actions/checkout@v3
|
92
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
93
|
-
uses: ruby/setup-ruby@v1
|
94
|
-
with:
|
95
|
-
ruby-version: ${{ matrix.ruby-version }}
|
96
|
-
bundler-cache: true
|
97
|
-
# modify repository variable when there are problems with installing gems
|
98
|
-
cache-version: ${{ vars.CACHE_VERSION }}
|
99
|
-
- name: Test
|
100
|
-
run: ./run-tests.sh
|
101
|
-
shell: bash
|
102
51
|
|
103
52
|
examples:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
ruby-version: "2.7"
|
114
|
-
bundler-cache: true
|
115
|
-
# modify repository variable when there are problems with installing gems
|
116
|
-
cache-version: ${{ vars.CACHE_VERSION }}
|
117
|
-
- name: Check examples
|
118
|
-
run: ./check-examples.sh
|
119
|
-
shell: bash
|
53
|
+
if: >
|
54
|
+
(github.event.pull_request.draft == false &&
|
55
|
+
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
|
56
|
+
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) ||
|
57
|
+
github.event_name == 'schedule'
|
58
|
+
uses: ./.github/workflows/reusable-examples.yml
|
59
|
+
with:
|
60
|
+
examples-script: './check-examples.sh'
|
61
|
+
cache-version: ${{ vars.CACHE_VERSION }}
|
120
62
|
|
121
63
|
report:
|
122
64
|
runs-on: ubuntu-latest
|
@@ -133,10 +75,10 @@ jobs:
|
|
133
75
|
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
|
134
76
|
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
|
135
77
|
repositories: datadog-api-spec
|
136
|
-
- name: Post status
|
78
|
+
- name: Post status check
|
137
79
|
uses: DataDog/github-actions/post-status-check@v2
|
138
80
|
with:
|
139
81
|
github-token: ${{ steps.get_token.outputs.token }}
|
140
82
|
repo: datadog-api-spec
|
141
|
-
status: ${{ (needs.test.result == 'cancelled' || needs.examples.result == 'cancelled') && 'pending' || needs.test.result == 'success' && needs.examples.result == 'success' && 'success' || 'failure' }}
|
83
|
+
status: ${{ (needs.test.result == 'cancelled' || needs.examples.result == 'cancelled') && 'pending' || (needs.test.result == 'success' && needs.examples.result == 'success') && 'success' || 'failure' }}
|
142
84
|
context: master/unit
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.43.0/2025-09-30
|
4
|
+
|
5
|
+
### Added
|
6
|
+
* Add API Key ID to rum application response [#2690](https://github.com/DataDog/datadog-api-client-ruby/pull/2690)
|
7
|
+
* Add suppression list query string parameter [#2689](https://github.com/DataDog/datadog-api-client-ruby/pull/2689)
|
8
|
+
* Add datastore trigger to workflows public API [#2686](https://github.com/DataDog/datadog-api-client-ruby/pull/2686)
|
9
|
+
* Add Google PubSub destination to the Observability Pipelines API [#2677](https://github.com/DataDog/datadog-api-client-ruby/pull/2677)
|
10
|
+
* Add API spec for AWS Integrations standard and resource collection IAM permissions [#2674](https://github.com/DataDog/datadog-api-client-ruby/pull/2674)
|
11
|
+
* Publish new incident impact APIs [#2670](https://github.com/DataDog/datadog-api-client-ruby/pull/2670)
|
12
|
+
* Add product analytics to FormulaAndFunctionEventsDataSource [#2669](https://github.com/DataDog/datadog-api-client-ruby/pull/2669)
|
13
|
+
* Add sequence detection to security monitoring rules [#2666](https://github.com/DataDog/datadog-api-client-ruby/pull/2666)
|
14
|
+
* Add Public Delete Dora Events Endpoints [#2649](https://github.com/DataDog/datadog-api-client-ruby/pull/2649)
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
* Remove any references to synthetics test suites [#2681](https://github.com/DataDog/datadog-api-client-ruby/pull/2681)
|
18
|
+
|
19
|
+
### Changed
|
20
|
+
* Add tag pipeline, custom allocation rule and get cloud account by id for AWS/Azure/GCP configs APIs [#2664](https://github.com/DataDog/datadog-api-client-ruby/pull/2664)
|
21
|
+
|
3
22
|
## 2.42.0/2025-09-15
|
4
23
|
|
5
24
|
### Added
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Create a new timeseries widget with product_analytics data source
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
7
|
+
title: "Example-Dashboard with product_analytics datasource",
|
8
|
+
widgets: [
|
9
|
+
DatadogAPIClient::V1::Widget.new({
|
10
|
+
definition: DatadogAPIClient::V1::TimeseriesWidgetDefinition.new({
|
11
|
+
title: "",
|
12
|
+
show_legend: true,
|
13
|
+
legend_layout: DatadogAPIClient::V1::TimeseriesWidgetLegendLayout::AUTO,
|
14
|
+
legend_columns: [
|
15
|
+
DatadogAPIClient::V1::TimeseriesWidgetLegendColumn::AVG,
|
16
|
+
DatadogAPIClient::V1::TimeseriesWidgetLegendColumn::MIN,
|
17
|
+
DatadogAPIClient::V1::TimeseriesWidgetLegendColumn::MAX,
|
18
|
+
DatadogAPIClient::V1::TimeseriesWidgetLegendColumn::VALUE,
|
19
|
+
DatadogAPIClient::V1::TimeseriesWidgetLegendColumn::SUM,
|
20
|
+
],
|
21
|
+
time: DatadogAPIClient::V1::WidgetLegacyLiveSpan.new({}),
|
22
|
+
type: DatadogAPIClient::V1::TimeseriesWidgetDefinitionType::TIMESERIES,
|
23
|
+
requests: [
|
24
|
+
DatadogAPIClient::V1::TimeseriesWidgetRequest.new({
|
25
|
+
formulas: [
|
26
|
+
DatadogAPIClient::V1::WidgetFormula.new({
|
27
|
+
formula: "query1",
|
28
|
+
}),
|
29
|
+
],
|
30
|
+
queries: [
|
31
|
+
DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition.new({
|
32
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionEventsDataSource::PRODUCT_ANALYTICS,
|
33
|
+
name: "query1",
|
34
|
+
search: DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch.new({
|
35
|
+
query: "test_level:test",
|
36
|
+
}),
|
37
|
+
indexes: [
|
38
|
+
"*",
|
39
|
+
],
|
40
|
+
compute: DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute.new({
|
41
|
+
aggregation: DatadogAPIClient::V1::FormulaAndFunctionEventAggregation::COUNT,
|
42
|
+
}),
|
43
|
+
group_by: [],
|
44
|
+
}),
|
45
|
+
],
|
46
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
|
47
|
+
style: DatadogAPIClient::V1::WidgetRequestStyle.new({
|
48
|
+
palette: "dog_classic",
|
49
|
+
line_type: DatadogAPIClient::V1::WidgetLineType::SOLID,
|
50
|
+
line_width: DatadogAPIClient::V1::WidgetLineWidth::NORMAL,
|
51
|
+
}),
|
52
|
+
display_type: DatadogAPIClient::V1::WidgetDisplayType::LINE,
|
53
|
+
}),
|
54
|
+
],
|
55
|
+
}),
|
56
|
+
}),
|
57
|
+
],
|
58
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
|
59
|
+
reflow_type: DatadogAPIClient::V1::DashboardReflowType::AUTO,
|
60
|
+
})
|
61
|
+
p api_instance.create_dashboard(body)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# Get resource collection IAM permissions returns "AWS integration resource collection IAM permissions." response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new
|
5
|
+
p api_instance.get_aws_integration_iam_permissions_resource_collection()
|