datadog_api_client 2.17.0 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +145 -5
  4. data/.generator/schemas/v2/openapi.yaml +1306 -45
  5. data/.generator/src/generator/cli.py +5 -0
  6. data/.generator/src/generator/templates/datadog_api_client.j2 +19 -0
  7. data/.pre-commit-config.yaml +1 -1
  8. data/CHANGELOG.md +25 -0
  9. data/examples/v1/aws-integration/CreateAWSAccount.rb +2 -2
  10. data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
  11. data/examples/v1/aws-integration/UpdateAWSAccount.rb +6 -6
  12. data/examples/v1/azure-integration/CreateAzureIntegration.rb +1 -0
  13. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +1 -0
  14. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +1 -0
  15. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +1 -0
  16. data/examples/v1/dashboards/CreateDashboard_1284514532.rb +3 -0
  17. data/examples/v1/synthetics/PatchTest.rb +22 -0
  18. data/examples/v2/container-images/ListContainerImages.rb +0 -3
  19. data/examples/v2/container-images/ListContainerImages_3088586393.rb +0 -3
  20. data/examples/v2/container-images/ListContainerImages_3974828736.rb +0 -3
  21. data/examples/v2/containers/ListContainers.rb +0 -3
  22. data/examples/v2/containers/ListContainers_2175733917.rb +0 -3
  23. data/examples/v2/containers/ListContainers_931009654.rb +0 -3
  24. data/examples/v2/dora-metrics/CreateDORADeployment.rb +23 -0
  25. data/examples/v2/dora-metrics/CreateDORAIncident.rb +25 -0
  26. data/examples/v2/events/ListEvents.rb +0 -3
  27. data/examples/v2/events/ListEvents_1527584014.rb +0 -3
  28. data/examples/v2/events/ListEvents_2663715109.rb +0 -3
  29. data/examples/v2/events/SearchEvents.rb +0 -3
  30. data/examples/v2/events/SearchEvents_3856995058.rb +0 -3
  31. data/examples/v2/okta-integration/CreateOktaAccount.rb +19 -0
  32. data/examples/v2/okta-integration/DeleteOktaAccount.rb +5 -0
  33. data/examples/v2/okta-integration/GetOktaAccount.rb +8 -0
  34. data/examples/v2/okta-integration/ListOktaAccounts.rb +5 -0
  35. data/examples/v2/okta-integration/UpdateOktaAccount.rb +20 -0
  36. data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +8 -0
  37. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +8 -0
  38. data/examples/v2/usage-metering/GetProjectedCost.rb +8 -0
  39. data/lib/datadog_api_client/configuration.rb +4 -4
  40. data/lib/datadog_api_client/inflector.rb +61 -0
  41. data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
  42. data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -1
  43. data/lib/datadog_api_client/v1/models/azure_account.rb +13 -2
  44. data/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +82 -0
  45. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +100 -0
  46. data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation_name.rb +31 -0
  47. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  48. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  49. data/lib/datadog_api_client/v1/models/widget_live_span.rb +2 -0
  50. data/lib/datadog_api_client/v2/api/container_images_api.rb +0 -6
  51. data/lib/datadog_api_client/v2/api/containers_api.rb +0 -6
  52. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +181 -0
  53. data/lib/datadog_api_client/v2/api/events_api.rb +0 -12
  54. data/lib/datadog_api_client/v2/api/okta_integration_api.rb +355 -0
  55. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +241 -0
  56. data/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +92 -0
  57. data/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +100 -0
  58. data/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +80 -0
  59. data/lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb +26 -0
  60. data/lib/datadog_api_client/v2/models/api_keys_response.rb +14 -4
  61. data/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +90 -0
  62. data/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +80 -0
  63. data/lib/datadog_api_client/v2/models/application_key_response_meta.rb +90 -0
  64. data/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +80 -0
  65. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +13 -1
  66. data/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +100 -0
  67. data/lib/datadog_api_client/v2/models/cost_attribution_type.rb +26 -0
  68. data/lib/datadog_api_client/v2/models/dora_deployment_request.rb +98 -0
  69. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +170 -0
  70. data/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +98 -0
  71. data/lib/datadog_api_client/v2/models/dora_deployment_response.rb +98 -0
  72. data/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +108 -0
  73. data/lib/datadog_api_client/v2/models/dora_deployment_type.rb +26 -0
  74. data/lib/datadog_api_client/v2/models/dora_git_info.rb +125 -0
  75. data/lib/datadog_api_client/v2/models/dora_incident_request.rb +98 -0
  76. data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +179 -0
  77. data/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +98 -0
  78. data/lib/datadog_api_client/v2/models/dora_incident_response.rb +98 -0
  79. data/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +108 -0
  80. data/lib/datadog_api_client/v2/models/dora_incident_type.rb +26 -0
  81. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +24 -4
  82. data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +14 -4
  83. data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +9 -19
  84. data/lib/datadog_api_client/v2/models/incident_impacts_type.rb +26 -0
  85. data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +21 -1
  86. data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +11 -1
  87. data/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +90 -0
  88. data/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +90 -0
  89. data/lib/datadog_api_client/v2/models/incident_responders_type.rb +26 -0
  90. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +69 -4
  91. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +42 -4
  92. data/lib/datadog_api_client/v2/models/incident_severity.rb +31 -0
  93. data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +24 -4
  94. data/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +90 -0
  95. data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +11 -1
  96. data/lib/datadog_api_client/v2/models/incident_update_relationships.rb +8 -0
  97. data/lib/datadog_api_client/v2/models/incident_user_defined_field_type.rb +26 -0
  98. data/lib/datadog_api_client/v2/models/list_application_keys_response.rb +14 -4
  99. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +151 -0
  100. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +100 -0
  101. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +92 -0
  102. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +88 -0
  103. data/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +92 -0
  104. data/lib/datadog_api_client/v2/models/okta_account.rb +129 -0
  105. data/lib/datadog_api_client/v2/models/okta_account_attributes.rb +170 -0
  106. data/lib/datadog_api_client/v2/models/okta_account_request.rb +98 -0
  107. data/lib/datadog_api_client/v2/models/okta_account_response.rb +80 -0
  108. data/lib/datadog_api_client/v2/models/okta_account_response_data.rb +140 -0
  109. data/lib/datadog_api_client/v2/models/okta_account_type.rb +26 -0
  110. data/lib/datadog_api_client/v2/models/okta_account_update_request.rb +98 -0
  111. data/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +149 -0
  112. data/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +90 -0
  113. data/lib/datadog_api_client/v2/models/okta_accounts_response.rb +82 -0
  114. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +24 -4
  115. data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +2 -2
  116. data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +8 -0
  117. data/lib/datadog_api_client/v2/models/projected_cost.rb +100 -0
  118. data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +132 -0
  119. data/lib/datadog_api_client/v2/models/projected_cost_response.rb +82 -0
  120. data/lib/datadog_api_client/v2/models/projected_cost_type.rb +26 -0
  121. data/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +119 -0
  122. data/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +100 -0
  123. data/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +119 -0
  124. data/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +100 -0
  125. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +119 -0
  126. data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +100 -0
  127. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  128. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +13 -1
  129. data/lib/datadog_api_client/v2/models/sort_direction.rb +27 -0
  130. data/lib/datadog_api_client/version.rb +1 -1
  131. data/lib/datadog_api_client.rb +16 -1
  132. metadata +75 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6c3e617aed6bc00068f0f0e888673d9b55c5fb3d37cc977bc621a7b412fe2aa
4
- data.tar.gz: 887a62e1820b0f7b90421bf61029cff4c6286e59ac0ee9d8a50fd1affff46ff7
3
+ metadata.gz: 0d4438925584d09ccdb84d7ca39ed161debac07c8eb3a1e91dbbdd7647b2a759
4
+ data.tar.gz: f17005c76532511cd0395574ed55dffaf3eb3ebc8f3800791c74da75ff8bd980
5
5
  SHA512:
6
- metadata.gz: 5b357ffa9694e65753d27d3b98d9106e77aa4d45b6b70b87864bd39eee69ba45619ab1599b1c23698d45d23be1f9569a1a27de35b39ec0765e591c78a407161e
7
- data.tar.gz: 7c48032334f99bad4d4d35f0448455cc3548f3c5172e8f4a879793cf775ca12735588a8df1d2429bc47b888c7300db8abd203de184b4c3449600a5e343c8a490
6
+ metadata.gz: ec5357fb20252469e9065436530cc8e52a060c99c105493b5f29ff3aa06612a4b874543cda2a774f30aaccb9d54619bdebf78b267569a483602b410a7802c8f3
7
+ data.tar.gz: 639def99455b8ca4eb5da63190d7b42e715bc4a1828f59ca669872c39bedad8878bdaebb543f9e68653c6cdfb67d0936cb4f1ca31b23bedb146c3694f6117ea1
data/.apigentools-info CHANGED
@@ -4,13 +4,13 @@
4
4
  "spec_versions": {
5
5
  "v1": {
6
6
  "apigentools_version": "1.6.6",
7
- "regenerated": "2023-11-14 15:18:26.042895",
8
- "spec_repo_commit": "b95546fe"
7
+ "regenerated": "2023-12-11 19:49:04.458964",
8
+ "spec_repo_commit": "5584abd0"
9
9
  },
10
10
  "v2": {
11
11
  "apigentools_version": "1.6.6",
12
- "regenerated": "2023-11-14 15:18:26.064592",
13
- "spec_repo_commit": "b95546fe"
12
+ "regenerated": "2023-12-11 19:49:04.477340",
13
+ "spec_repo_commit": "5584abd0"
14
14
  }
15
15
  }
16
16
  }
@@ -808,8 +808,9 @@ components:
808
808
  example: key:value,filter:example
809
809
  type: string
810
810
  cspm_enabled:
811
- description: Enable Cloud Security Management Misconfigurations for your
812
- organization.
811
+ description: "When enabled, Datadog\u2019s Cloud Security Management product
812
+ scans resource configurations monitored by this app registration.\nNote:
813
+ This requires resource_collection_enabled to be set to true."
813
814
  example: true
814
815
  type: boolean
815
816
  custom_metrics_enabled:
@@ -840,6 +841,12 @@ components:
840
841
  description: Your New Azure Active Directory ID.
841
842
  example: new1c44-1234-5678-9101-cc00736ftest
842
843
  type: string
844
+ resource_collection_enabled:
845
+ description: When enabled, Datadog collects metadata and configuration info
846
+ from cloud resources (compute instances, databases, load balancers, etc.)
847
+ monitored by this app registration.
848
+ example: true
849
+ type: boolean
843
850
  tenant_name:
844
851
  description: Your Azure Active Directory ID.
845
852
  example: testc44-1234-5678-9101-cc00736ftest
@@ -14705,6 +14712,55 @@ components:
14705
14712
  type:
14706
14713
  $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
14707
14714
  type: object
14715
+ SyntheticsPatchTestBody:
14716
+ description: Wrapper around an array of [JSON Patch](https://jsonpatch.com)
14717
+ operations to perform on the test
14718
+ properties:
14719
+ data:
14720
+ description: Array of [JSON Patch](https://jsonpatch.com) operations to
14721
+ perform on the test
14722
+ example:
14723
+ - op: replace
14724
+ path: /name
14725
+ value: New test name
14726
+ - op: remove
14727
+ path: /config/assertions/0
14728
+ items:
14729
+ $ref: '#/components/schemas/SyntheticsPatchTestOperation'
14730
+ type: array
14731
+ type: object
14732
+ SyntheticsPatchTestOperation:
14733
+ description: A single [JSON Patch](https://jsonpatch.com) operation to perform
14734
+ on the test
14735
+ properties:
14736
+ op:
14737
+ $ref: '#/components/schemas/SyntheticsPatchTestOperationName'
14738
+ path:
14739
+ description: The path to the value to modify
14740
+ example: /name
14741
+ type: string
14742
+ value:
14743
+ description: A value to use in a [JSON Patch](https://jsonpatch.com) operation
14744
+ example: New Test Name
14745
+ type: object
14746
+ SyntheticsPatchTestOperationName:
14747
+ description: The operation to perform
14748
+ enum:
14749
+ - add
14750
+ - remove
14751
+ - replace
14752
+ - move
14753
+ - copy
14754
+ - test
14755
+ example: replace
14756
+ type: string
14757
+ x-enum-varnames:
14758
+ - ADD
14759
+ - REMOVE
14760
+ - REPLACE
14761
+ - MOVE
14762
+ - COPY
14763
+ - TEST
14708
14764
  SyntheticsPlayingTab:
14709
14765
  description: Navigate between different tabs for your browser test.
14710
14766
  enum:
@@ -19177,6 +19233,16 @@ components:
19177
19233
  Pro hosts over all hours in the current date for the given org.
19178
19234
  format: int64
19179
19235
  type: integer
19236
+ custom_historical_ts_avg:
19237
+ description: Shows the average number of distinct historical custom metrics
19238
+ over all hours in the current date for the given org.
19239
+ format: int64
19240
+ type: integer
19241
+ custom_live_ts_avg:
19242
+ description: Shows the average number of distinct live custom metrics over
19243
+ all hours in the current date for the given org.
19244
+ format: int64
19245
+ type: integer
19180
19246
  custom_ts_avg:
19181
19247
  description: Shows the average number of distinct custom metrics over all
19182
19248
  hours in the current date for the given org.
@@ -19708,6 +19774,16 @@ components:
19708
19774
  Pro hosts over all hours in the current months for all organizations.
19709
19775
  format: int64
19710
19776
  type: integer
19777
+ custom_historical_ts_sum:
19778
+ description: Shows the average number of distinct historical custom metrics
19779
+ over all hours in the current months for all organizations.
19780
+ format: int64
19781
+ type: integer
19782
+ custom_live_ts_sum:
19783
+ description: Shows the average number of distinct live custom metrics over
19784
+ all hours in the current months for all organizations.
19785
+ format: int64
19786
+ type: integer
19711
19787
  custom_ts_sum:
19712
19788
  description: Shows the average number of distinct custom metrics over all
19713
19789
  hours in the current months for all organizations.
@@ -20886,6 +20962,8 @@ components:
20886
20962
  - 1mo
20887
20963
  - 3mo
20888
20964
  - 6mo
20965
+ - week_to_date
20966
+ - month_to_date
20889
20967
  - 1y
20890
20968
  - alert
20891
20969
  example: 5m
@@ -20904,6 +20982,8 @@ components:
20904
20982
  - PAST_ONE_MONTH
20905
20983
  - PAST_THREE_MONTHS
20906
20984
  - PAST_SIX_MONTHS
20985
+ - WEEK_TO_DATE
20986
+ - MONTH_TO_DATE
20907
20987
  - PAST_ONE_YEAR
20908
20988
  - ALERT
20909
20989
  WidgetMargin:
@@ -21249,7 +21329,7 @@ components:
21249
21329
  an organization. Mute and unmute hosts. The ability to write monitors
21250
21330
  is not required to set downtimes.
21251
21331
  monitors_read: View monitors.
21252
- monitors_write: Edit, mute, and delete individual monitors.
21332
+ monitors_write: Edit and delete individual monitors.
21253
21333
  security_monitoring_filters_read: Read Security Filters.
21254
21334
  security_monitoring_filters_write: Create, edit, and delete Security Filters.
21255
21335
  security_monitoring_findings_read: View CSPM Findings.
@@ -23435,7 +23515,8 @@ paths:
23435
23515
  - Snapshots
23436
23516
  /api/v1/host/{host_name}/mute:
23437
23517
  post:
23438
- description: Mute a host.
23518
+ description: Mute a host. **Note:** This creates a [Downtime V2](https://docs.datadoghq.com/api/latest/downtimes/#schedule-a-downtime)
23519
+ for the host.
23439
23520
  operationId: MuteHost
23440
23521
  parameters:
23441
23522
  - description: Name of the host to mute.
@@ -29650,7 +29731,7 @@ paths:
29650
29731
  description: Edit the configuration of a Synthetic browser test.
29651
29732
  operationId: UpdateBrowserTest
29652
29733
  parameters:
29653
- - description: The public ID of the test to get details from.
29734
+ - description: The public ID of the test to edit.
29654
29735
  in: path
29655
29736
  name: public_id
29656
29737
  required: true
@@ -29989,6 +30070,65 @@ paths:
29989
30070
  summary: Get a test configuration
29990
30071
  tags:
29991
30072
  - Synthetics
30073
+ patch:
30074
+ description: Patch the configuration of a Synthetic test with partial data.
30075
+ operationId: PatchTest
30076
+ parameters:
30077
+ - description: The public ID of the test to patch.
30078
+ in: path
30079
+ name: public_id
30080
+ required: true
30081
+ schema:
30082
+ type: string
30083
+ requestBody:
30084
+ content:
30085
+ application/json:
30086
+ schema:
30087
+ $ref: '#/components/schemas/SyntheticsPatchTestBody'
30088
+ description: '[JSON Patch](https://jsonpatch.com/) compliant list of operations'
30089
+ required: true
30090
+ responses:
30091
+ '200':
30092
+ content:
30093
+ application/json:
30094
+ schema:
30095
+ $ref: '#/components/schemas/SyntheticsTestDetails'
30096
+ description: OK
30097
+ '400':
30098
+ content:
30099
+ application/json:
30100
+ schema:
30101
+ $ref: '#/components/schemas/APIErrorResponse'
30102
+ description: '- JSON format is wrong
30103
+
30104
+ - Updating sub-type is forbidden'
30105
+ '403':
30106
+ content:
30107
+ application/json:
30108
+ schema:
30109
+ $ref: '#/components/schemas/APIErrorResponse'
30110
+ description: Forbidden
30111
+ '404':
30112
+ content:
30113
+ application/json:
30114
+ schema:
30115
+ $ref: '#/components/schemas/APIErrorResponse'
30116
+ description: '- Synthetic Monitoring is not activated for the user
30117
+
30118
+ - Test is not owned by the user
30119
+
30120
+ - Test can''t be found'
30121
+ '429':
30122
+ $ref: '#/components/responses/TooManyRequestsResponse'
30123
+ security:
30124
+ - apiKeyAuth: []
30125
+ appKeyAuth: []
30126
+ - AuthZ:
30127
+ - synthetics_write
30128
+ summary: Patch a Synthetic test
30129
+ tags:
30130
+ - Synthetics
30131
+ x-codegen-request-body-name: body
29992
30132
  /api/v1/synthetics/tests/{public_id}/results:
29993
30133
  get:
29994
30134
  description: Get the last 150 test results summaries for a given Synthetic API