datadog_api_client 2.14.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +165 -20
  4. data/.generator/schemas/v2/openapi.yaml +45 -23
  5. data/.generator/src/generator/openapi.py +3 -1
  6. data/.generator/src/generator/templates/api.j2 +8 -2
  7. data/CHANGELOG.md +26 -0
  8. data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
  9. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
  10. data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
  11. data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
  12. data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
  13. data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
  14. data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
  15. data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
  17. data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
  18. data/examples/v2/downtimes/CancelDowntime.rb +0 -3
  19. data/examples/v2/downtimes/CreateDowntime.rb +0 -3
  20. data/examples/v2/downtimes/GetDowntime.rb +0 -3
  21. data/examples/v2/downtimes/ListDowntimes.rb +0 -3
  22. data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
  23. data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
  24. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
  25. data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
  26. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  27. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  28. data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
  29. data/examples/v2/users/ListUsers_4075885358.rb +8 -0
  30. data/lib/datadog_api_client/configuration.rb +0 -6
  31. data/lib/datadog_api_client/inflector.rb +1 -0
  32. data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
  33. data/lib/datadog_api_client/v1/api/monitors_api.rb +22 -0
  34. data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
  35. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +21 -0
  36. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +21 -0
  37. data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
  38. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  39. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
  40. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  41. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  42. data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
  43. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  44. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  45. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  46. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
  47. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
  48. data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
  49. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
  50. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  51. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  52. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  53. data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
  54. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +1 -1
  55. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +1 -1
  56. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
  57. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  58. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  59. data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
  60. data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
  61. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  62. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
  63. data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
  64. data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
  65. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  66. data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
  67. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
  68. data/lib/datadog_api_client/version.rb +1 -1
  69. metadata +14 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a1d063addbaca4e392e6fc62e3c1f99950085da2242d847509619175ba29a98
4
- data.tar.gz: f45864818991e4a24efb758994cc698412a221ee94f4e3694172cdfd91425adc
3
+ metadata.gz: 42ef9420b3142a907eecbace2d59379f9af5dbb8e337392477adbb8323bb0851
4
+ data.tar.gz: a80bff39c9a808d1ac08159b7ac1a722c8411ca375959dd9026868e4670d2137
5
5
  SHA512:
6
- metadata.gz: de3d684673d3721085cb9533ae211c25cc428524d9acf519d77deefbd3fd8598501dab5c1681115ee39485f1f9f9d27d32ac40164daa516dbbdd1fa784217687
7
- data.tar.gz: 1ff7af7cf491ed235b19e1afb0a36cc65416a9ad8624eb2d3d7b5f4a8a4ac47aafa9a31b8144ca0c586dda58fa9c6a0f689039589a7d8f4545f9dd48f4a5fd75
6
+ metadata.gz: 6e02e793371a734417ca9e0f92547bdfee40ce2e32bbe2e2548469e80ded872833ac41e39bd1300551cb0ebf89783f8168674ad7dfa8261b88a61e0afa6cbda9
7
+ data.tar.gz: a02a6b7138f5563023374f647429f4dac55f66020966ce953cfd4ca67919cc8c9216472f4fdddb3d65d9589a4b3928c62836b215f09367b69a51f590e2babc28
data/.apigentools-info CHANGED
@@ -4,13 +4,13 @@
4
4
  "spec_versions": {
5
5
  "v1": {
6
6
  "apigentools_version": "1.6.5",
7
- "regenerated": "2023-08-22 13:54:18.923508",
8
- "spec_repo_commit": "51fe480e"
7
+ "regenerated": "2023-09-14 14:35:21.790511",
8
+ "spec_repo_commit": "1d834ec1"
9
9
  },
10
10
  "v2": {
11
11
  "apigentools_version": "1.6.5",
12
- "regenerated": "2023-08-22 13:54:18.940437",
13
- "spec_repo_commit": "51fe480e"
12
+ "regenerated": "2023-09-14 14:35:21.804537",
13
+ "spec_repo_commit": "1d834ec1"
14
14
  }
15
15
  }
16
16
  }
@@ -3422,6 +3422,11 @@ components:
3422
3422
  $ref: '#/components/schemas/LogQueryDefinition'
3423
3423
  event_query:
3424
3424
  $ref: '#/components/schemas/EventQueryDefinition'
3425
+ formulas:
3426
+ description: List of formulas that operate on queries.
3427
+ items:
3428
+ $ref: '#/components/schemas/WidgetFormula'
3429
+ type: array
3425
3430
  log_query:
3426
3431
  $ref: '#/components/schemas/LogQueryDefinition'
3427
3432
  network_query:
@@ -3433,6 +3438,13 @@ components:
3433
3438
  q:
3434
3439
  description: Widget query.
3435
3440
  type: string
3441
+ queries:
3442
+ description: List of queries that can be returned directly or used in formulas.
3443
+ items:
3444
+ $ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
3445
+ type: array
3446
+ response_format:
3447
+ $ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
3436
3448
  rum_query:
3437
3449
  $ref: '#/components/schemas/LogQueryDefinition'
3438
3450
  security_query:
@@ -3908,6 +3920,7 @@ components:
3908
3920
  - functions_usage
3909
3921
  - infra_host_usage
3910
3922
  - invocations_usage
3923
+ - mobile_app_testing_usage
3911
3924
  - npm_host_usage
3912
3925
  - obs_pipeline_bytes_usage
3913
3926
  - profiled_container_usage
@@ -3946,6 +3959,7 @@ components:
3946
3959
  - FUNCTIONS_USAGE
3947
3960
  - INFRA_HOST_USAGE
3948
3961
  - INVOCATIONS_USAGE
3962
+ - MOBILE_APP_TESTING_USAGE
3949
3963
  - NPM_HOST_USAGE
3950
3964
  - OBS_PIPELINE_BYTES_USAGE
3951
3965
  - PROFILED_CONTAINER_USAGE
@@ -4414,6 +4428,7 @@ components:
4414
4428
  - ci_test_stream
4415
4429
  - rum_issue_stream
4416
4430
  - apm_issue_stream
4431
+ - trace_stream
4417
4432
  - logs_issue_stream
4418
4433
  - logs_pattern_stream
4419
4434
  - logs_transaction_stream
@@ -4427,6 +4442,7 @@ components:
4427
4442
  - CI_TEST_STREAM
4428
4443
  - RUM_ISSUE_STREAM
4429
4444
  - APM_ISSUE_STREAM
4445
+ - TRACE_STREAM
4430
4446
  - LOGS_ISSUE_STREAM
4431
4447
  - LOGS_PATTERN_STREAM
4432
4448
  - LOGS_TRANSACTION_STREAM
@@ -6247,7 +6263,7 @@ components:
6247
6263
  readOnly: true
6248
6264
  type: integer
6249
6265
  matching_downtimes:
6250
- description: A list of active downtimes that match this monitor.
6266
+ description: A list of active v1 downtimes that match this monitor.
6251
6267
  items:
6252
6268
  $ref: '#/components/schemas/MatchingDowntime'
6253
6269
  type: array
@@ -6775,7 +6791,8 @@ components:
6775
6791
  nullable: true
6776
6792
  type: integer
6777
6793
  deprecated: true
6778
- description: Information about the downtime applied to the monitor.
6794
+ description: Information about the downtime applied to the monitor. Only
6795
+ shows v1 downtimes.
6779
6796
  type: object
6780
6797
  synthetics_check_id:
6781
6798
  deprecated: true
@@ -6899,18 +6916,20 @@ components:
6899
6916
  MonitorSearchCount:
6900
6917
  description: Search facets.
6901
6918
  items:
6902
- description: A facet item.
6903
- properties:
6904
- count:
6905
- description: The number of found monitors with the listed value.
6906
- format: int64
6907
- readOnly: true
6908
- type: integer
6909
- name:
6910
- description: The facet value.
6911
- readOnly: true
6912
- type: object
6919
+ $ref: '#/components/schemas/MonitorSearchCountItem'
6913
6920
  type: array
6921
+ MonitorSearchCountItem:
6922
+ description: A facet item.
6923
+ properties:
6924
+ count:
6925
+ description: The number of found monitors with the listed value.
6926
+ format: int64
6927
+ readOnly: true
6928
+ type: integer
6929
+ name:
6930
+ description: The facet value.
6931
+ readOnly: true
6932
+ type: object
6914
6933
  MonitorSearchResponse:
6915
6934
  description: The response form a monitor search.
6916
6935
  example:
@@ -7472,6 +7491,8 @@ components:
7472
7491
  - infra_host_percentage
7473
7492
  - invocations_usage
7474
7493
  - invocations_percentage
7494
+ - mobile_app_testing_percentage
7495
+ - mobile_app_testing_usage
7475
7496
  - npm_host_usage
7476
7497
  - npm_host_percentage
7477
7498
  - obs_pipeline_bytes_usage
@@ -7547,6 +7568,8 @@ components:
7547
7568
  - INFRA_HOST_PERCENTAGE
7548
7569
  - INVOCATIONS_USAGE
7549
7570
  - INVOCATIONS_PERCENTAGE
7571
+ - MOBILE_APP_TESTING_USAGE
7572
+ - MOBILE_APP_TESTING_PERCENTAGE
7550
7573
  - NPM_HOST_USAGE
7551
7574
  - NPM_HOST_PERCENTAGE
7552
7575
  - OBS_PIPELINE_BYTES_USAGE
@@ -7794,6 +7817,15 @@ components:
7794
7817
  description: The Lambda invocation usage by tag(s).
7795
7818
  format: double
7796
7819
  type: number
7820
+ mobile_app_testing_percentage:
7821
+ description: The percentage of Synthetic mobile application test usage by
7822
+ tag(s).
7823
+ format: double
7824
+ type: number
7825
+ mobile_app_testing_usage:
7826
+ description: The Synthetic mobile application test usage by tag(s).
7827
+ format: double
7828
+ type: number
7797
7829
  npm_host_percentage:
7798
7830
  description: The percentage of network host usage by tag(s).
7799
7831
  format: double
@@ -12163,6 +12195,8 @@ components:
12163
12195
  $ref: '#/components/schemas/LogQueryDefinition'
12164
12196
  security_query:
12165
12197
  $ref: '#/components/schemas/LogQueryDefinition'
12198
+ style:
12199
+ $ref: '#/components/schemas/WidgetStyle'
12166
12200
  type: object
12167
12201
  SyntheticsAPIStep:
12168
12202
  description: The steps used in a Synthetic multistep API test.
@@ -12568,6 +12602,8 @@ components:
12568
12602
  target:
12569
12603
  description: Value used by the operator.
12570
12604
  example: 123456
12605
+ timingsScope:
12606
+ $ref: '#/components/schemas/SyntheticsAssertionTimingsScope'
12571
12607
  type:
12572
12608
  $ref: '#/components/schemas/SyntheticsAssertionType'
12573
12609
  required:
@@ -12575,6 +12611,15 @@ components:
12575
12611
  - operator
12576
12612
  - target
12577
12613
  type: object
12614
+ SyntheticsAssertionTimingsScope:
12615
+ description: Timings scope for response time assertions.
12616
+ enum:
12617
+ - all
12618
+ - withoutDNS
12619
+ type: string
12620
+ x-enum-varnames:
12621
+ - ALL
12622
+ - WITHOUT_DNS
12578
12623
  SyntheticsAssertionType:
12579
12624
  description: Type of the assertion.
12580
12625
  enum:
@@ -17218,6 +17263,12 @@ components:
17218
17263
  UsageProfilingHour:
17219
17264
  description: The number of profiled hosts for each hour for a given organization.
17220
17265
  properties:
17266
+ aas_count:
17267
+ description: Contains the total number of profiled Azure app services reporting
17268
+ during a given hour.
17269
+ format: int64
17270
+ nullable: true
17271
+ type: integer
17221
17272
  avg_container_agent_count:
17222
17273
  description: Get average number of container agents for that hour.
17223
17274
  format: int64
@@ -17861,6 +17912,11 @@ components:
17861
17912
  items:
17862
17913
  $ref: '#/components/schemas/UsageSummaryDateOrg'
17863
17914
  type: array
17915
+ profiling_aas_count_top99p:
17916
+ description: Shows the 99th percentile of all profiled Azure app services
17917
+ over all hours in the current date for all organizations.
17918
+ format: int64
17919
+ type: integer
17864
17920
  profiling_host_top99p:
17865
17921
  description: Shows the 99th percentile of all profiled hosts over all hours
17866
17922
  in the current date for all organizations.
@@ -17922,6 +17978,11 @@ components:
17922
17978
  the current date for all organizations.
17923
17979
  format: int64
17924
17980
  type: integer
17981
+ synthetics_mobile_test_runs_sum:
17982
+ description: Shows the sum of all Synthetic mobile application tests over
17983
+ all hours in the current date for all organizations.
17984
+ format: int64
17985
+ type: integer
17925
17986
  synthetics_parallel_testing_max_slots_hwm:
17926
17987
  description: Shows the high-water mark of used synthetics parallel testing
17927
17988
  slots over all hours in the current date for all organizations.
@@ -18291,6 +18352,11 @@ components:
18291
18352
  date for the given org.
18292
18353
  format: int64
18293
18354
  type: integer
18355
+ profiling_aas_count_top99p:
18356
+ description: Shows the 99th percentile of all profiled Azure app services
18357
+ over all hours in the current date for all organizations.
18358
+ format: int64
18359
+ type: integer
18294
18360
  profiling_host_top99p:
18295
18361
  description: Shows the 99th percentile of all profiled hosts over all hours
18296
18362
  in the current date for the given org.
@@ -18358,6 +18424,11 @@ components:
18358
18424
  the current date for the given org.
18359
18425
  format: int64
18360
18426
  type: integer
18427
+ synthetics_mobile_test_runs_sum:
18428
+ description: Shows the sum of all Synthetic mobile application tests over
18429
+ all hours in the current date for the given org.
18430
+ format: int64
18431
+ type: integer
18361
18432
  synthetics_parallel_testing_max_slots_hwm:
18362
18433
  description: Shows the high-water mark of used synthetics parallel testing
18363
18434
  slots over all hours in the current date for the given org.
@@ -18753,6 +18824,11 @@ components:
18753
18824
  months for all organizations.
18754
18825
  format: int64
18755
18826
  type: integer
18827
+ profiling_aas_count_top99p_sum:
18828
+ description: Shows the 99th percentile of all profiled Azure app services
18829
+ over all hours in the current months for all organizations.
18830
+ format: int64
18831
+ type: integer
18756
18832
  profiling_container_agent_count_avg:
18757
18833
  description: Shows the average number of profiled containers over all hours
18758
18834
  in the current months for all organizations.
@@ -18836,6 +18912,11 @@ components:
18836
18912
  the current months for all organizations.
18837
18913
  format: int64
18838
18914
  type: integer
18915
+ synthetics_mobile_test_runs_agg_sum:
18916
+ description: Shows the sum of Synthetic mobile application tests over all
18917
+ hours in the current months for all organizations.
18918
+ format: int64
18919
+ type: integer
18839
18920
  synthetics_parallel_testing_max_slots_hwm_sum:
18840
18921
  description: Shows the sum of the high-water marks of used synthetics parallel
18841
18922
  testing slots over all hours in the current month for all organizations.
@@ -20063,17 +20144,34 @@ components:
20063
20144
  authorizationCode:
20064
20145
  authorizationUrl: /oauth2/v1/authorize
20065
20146
  scopes:
20147
+ apm_service_catalog_read: View service catalog and service definitions.
20148
+ apm_service_catalog_write: Add, modify, and delete service catalog definitions
20149
+ when those definitions are maintained by Datadog.
20150
+ create_webhooks: Create webhooks integrations.
20066
20151
  dashboards_public_share: Generate public and authenticated links to share
20067
20152
  dashboards or embeddable graphs externally.
20068
20153
  dashboards_read: View dashboards.
20069
20154
  dashboards_write: Create and change dashboards.
20070
20155
  events_read: Read Events data.
20156
+ incident_notification_settings_write: Configure Incidents Notification
20157
+ settings.
20158
+ incident_read: View incidents in Datadog.
20159
+ incident_settings_write: Configure Incident Settings.
20160
+ incident_write: Create, view, and manage incidents in Datadog.
20071
20161
  metrics_read: View custom metrics.
20072
20162
  monitors_downtime: Set downtimes to suppress alerts from any monitor in
20073
20163
  an organization. Mute and unmute hosts. The ability to write monitors
20074
20164
  is not required to set downtimes.
20075
20165
  monitors_read: View monitors.
20076
20166
  monitors_write: Edit, mute, and delete individual monitors.
20167
+ security_monitoring_filters_read: Read Security Filters.
20168
+ security_monitoring_filters_write: Create, edit, and delete Security Filters.
20169
+ security_monitoring_findings_read: View CSPM Findings.
20170
+ security_monitoring_rules_read: Read Detection Rules.
20171
+ security_monitoring_rules_write: Create and edit Detection Rules.
20172
+ security_monitoring_signals_read: View Security Signals.
20173
+ security_monitoring_suppressions_read: Read Rule Suppressions.
20174
+ security_monitoring_suppressions_write: Write Rule Suppressions.
20077
20175
  slos_corrections: Apply, edit, and delete SLO status corrections. A user
20078
20176
  with this permission can make status corrections, even if they do not
20079
20177
  have permission to edit those SLOs.
@@ -20089,6 +20187,11 @@ components:
20089
20187
  in addition to having access to the associated installation guidelines.
20090
20188
  synthetics_read: List and view configured Synthetic tests and test results.
20091
20189
  synthetics_write: Create, edit, and delete Synthetic tests.
20190
+ teams_manage: Manage Teams. Create, delete, rename, and edit metadata
20191
+ of all Teams. To control Team membership across all Teams, use the User
20192
+ Access Manage permission.
20193
+ teams_read: Read Teams data. A User with this permission can view Team
20194
+ names, metadata, and which Users are on each Team.
20092
20195
  timeseries_query: Query Timeseries data.
20093
20196
  usage_read: View your organization's usage and usage attribution.
20094
20197
  user_access_invite: Invite other users to your organization.
@@ -20790,6 +20893,21 @@ paths:
20790
20893
  required: false
20791
20894
  schema:
20792
20895
  type: boolean
20896
+ - description: The maximum number of dashboards returned in the list.
20897
+ in: query
20898
+ name: count
20899
+ required: false
20900
+ schema:
20901
+ default: 100
20902
+ format: int64
20903
+ type: integer
20904
+ - description: The specific offset to use as the beginning of the returned response.
20905
+ in: query
20906
+ name: start
20907
+ required: false
20908
+ schema:
20909
+ format: int64
20910
+ type: integer
20793
20911
  responses:
20794
20912
  '200':
20795
20913
  content:
@@ -20813,6 +20931,10 @@ paths:
20813
20931
  summary: Get all dashboards
20814
20932
  tags:
20815
20933
  - Dashboards
20934
+ x-pagination:
20935
+ limitParam: count
20936
+ pageOffsetParam: start
20937
+ resultsPath: dashboards
20816
20938
  patch:
20817
20939
  description: Restore dashboards using the specified IDs. If there are any failures,
20818
20940
  no dashboards will be restored (partial success is not allowed).
@@ -24852,6 +24974,7 @@ paths:
24852
24974
  name: page_size
24853
24975
  required: false
24854
24976
  schema:
24977
+ default: 100
24855
24978
  example: 20
24856
24979
  format: int32
24857
24980
  maximum: 1000
@@ -24887,6 +25010,9 @@ paths:
24887
25010
  summary: Get all monitor details
24888
25011
  tags:
24889
25012
  - Monitors
25013
+ x-pagination:
25014
+ limitParam: page_size
25015
+ pageParam: page
24890
25016
  post:
24891
25017
  description: 'Create a monitor using the specified options.
24892
25018
 
@@ -26045,6 +26171,7 @@ paths:
26045
26171
  name: count
26046
26172
  required: false
26047
26173
  schema:
26174
+ default: 100
26048
26175
  example: 5
26049
26176
  format: int64
26050
26177
  type: integer
@@ -26129,6 +26256,10 @@ paths:
26129
26256
  summary: Get all notebooks
26130
26257
  tags:
26131
26258
  - Notebooks
26259
+ x-pagination:
26260
+ limitParam: count
26261
+ pageOffsetParam: start
26262
+ resultsPath: data
26132
26263
  post:
26133
26264
  description: Create a notebook using the specified options.
26134
26265
  operationId: CreateNotebook
@@ -26960,6 +27091,7 @@ paths:
26960
27091
  name: limit
26961
27092
  required: false
26962
27093
  schema:
27094
+ default: 1000
26963
27095
  format: int64
26964
27096
  type: integer
26965
27097
  - description: The specific offset to use as the beginning of the returned response.
@@ -27004,6 +27136,10 @@ paths:
27004
27136
  summary: Get all SLOs
27005
27137
  tags:
27006
27138
  - Service Level Objectives
27139
+ x-pagination:
27140
+ limitParam: limit
27141
+ pageOffsetParam: offset
27142
+ resultsPath: data
27007
27143
  post:
27008
27144
  description: Create a service level objective object.
27009
27145
  operationId: CreateSLO
@@ -27162,6 +27298,7 @@ paths:
27162
27298
  name: limit
27163
27299
  required: false
27164
27300
  schema:
27301
+ default: 25
27165
27302
  format: int64
27166
27303
  type: integer
27167
27304
  responses:
@@ -27187,6 +27324,10 @@ paths:
27187
27324
  summary: Get all SLO corrections
27188
27325
  tags:
27189
27326
  - Service Level Objective Corrections
27327
+ x-pagination:
27328
+ limitParam: limit
27329
+ pageOffsetParam: offset
27330
+ resultsPath: data
27190
27331
  post:
27191
27332
  description: Create an SLO Correction.
27192
27333
  operationId: CreateSLOCorrection
@@ -27921,11 +28062,6 @@ paths:
27921
28062
  description: OK
27922
28063
  '429':
27923
28064
  $ref: '#/components/responses/TooManyRequestsResponse'
27924
- security:
27925
- - apiKeyAuth: []
27926
- appKeyAuth: []
27927
- - AuthZ:
27928
- - synthetics_default_settings_read
27929
28065
  summary: Get the default locations
27930
28066
  tags:
27931
28067
  - Synthetics
@@ -27937,14 +28073,19 @@ paths:
27937
28073
  - description: Used for pagination. The number of tests returned in the page.
27938
28074
  in: query
27939
28075
  name: page_size
28076
+ required: false
27940
28077
  schema:
27941
- type: string
28078
+ default: 100
28079
+ format: int64
28080
+ type: integer
27942
28081
  - description: Used for pagination. Which page you want to retrieve. Starts
27943
28082
  at zero.
27944
28083
  in: query
27945
28084
  name: page_number
28085
+ required: false
27946
28086
  schema:
27947
- type: string
28087
+ format: int64
28088
+ type: integer
27948
28089
  responses:
27949
28090
  '200':
27950
28091
  content:
@@ -27974,6 +28115,10 @@ paths:
27974
28115
  summary: Get the list of all Synthetic tests
27975
28116
  tags:
27976
28117
  - Synthetics
28118
+ x-pagination:
28119
+ limitParam: page_size
28120
+ pageParam: page_number
28121
+ resultsPath: tests
27977
28122
  /api/v1/synthetics/tests/api:
27978
28123
  post:
27979
28124
  description: Create a Synthetic API test.
@@ -4017,9 +4017,8 @@ components:
4017
4017
  properties:
4018
4018
  id:
4019
4019
  description: Monitor ID of the downtime.
4020
- example: 12345
4021
- format: int64
4022
- type: integer
4020
+ example: '12345'
4021
+ type: string
4023
4022
  type:
4024
4023
  $ref: '#/components/schemas/DowntimeIncludedMonitorType'
4025
4024
  type: object
@@ -17219,6 +17218,9 @@ components:
17219
17218
  apm_service_catalog_read: View service catalog and service definitions.
17220
17219
  apm_service_catalog_write: Add, modify, and delete service catalog definitions
17221
17220
  when those definitions are maintained by Datadog.
17221
+ create_webhooks: Create webhooks integrations.
17222
+ dashboards_public_share: Generate public and authenticated links to share
17223
+ dashboards or embeddable graphs externally.
17222
17224
  dashboards_read: View dashboards.
17223
17225
  dashboards_write: Create and change dashboards.
17224
17226
  events_read: Read Events data.
@@ -17232,12 +17234,28 @@ components:
17232
17234
  an organization. Mute and unmute hosts. The ability to write monitors
17233
17235
  is not required to set downtimes.
17234
17236
  monitors_read: View monitors.
17237
+ monitors_write: Edit, mute, and delete individual monitors.
17235
17238
  security_monitoring_filters_read: Read Security Filters.
17236
17239
  security_monitoring_filters_write: Create, edit, and delete Security Filters.
17237
17240
  security_monitoring_findings_read: View CSPM Findings.
17238
17241
  security_monitoring_rules_read: Read Detection Rules.
17239
17242
  security_monitoring_rules_write: Create and edit Detection Rules.
17240
17243
  security_monitoring_signals_read: View Security Signals.
17244
+ security_monitoring_suppressions_read: Read Rule Suppressions.
17245
+ security_monitoring_suppressions_write: Write Rule Suppressions.
17246
+ slos_corrections: Apply, edit, and delete SLO status corrections. A user
17247
+ with this permission can make status corrections, even if they do not
17248
+ have permission to edit those SLOs.
17249
+ slos_read: View SLOs and status corrections.
17250
+ slos_write: Create, edit, and delete SLOs.
17251
+ synthetics_global_variable_read: View, search, and use Synthetics global
17252
+ variables.
17253
+ synthetics_global_variable_write: Create, edit, and delete global variables
17254
+ for Synthetics.
17255
+ synthetics_private_location_read: View, search, and use Synthetics private
17256
+ locations.
17257
+ synthetics_private_location_write: Create and delete private locations
17258
+ in addition to having access to the associated installation guidelines.
17241
17259
  synthetics_read: List and view configured Synthetic tests and test results.
17242
17260
  synthetics_write: Create, edit, and delete Synthetic tests.
17243
17261
  teams_manage: Manage Teams. Create, delete, rename, and edit metadata
@@ -18798,6 +18816,16 @@ paths:
18798
18816
  schema:
18799
18817
  example: created_by,monitor
18800
18818
  type: string
18819
+ - $ref: '#/components/parameters/PageOffset'
18820
+ - description: Maximum number of downtimes in the response.
18821
+ example: 100
18822
+ in: query
18823
+ name: page[limit]
18824
+ required: false
18825
+ schema:
18826
+ default: 30
18827
+ format: int64
18828
+ type: integer
18801
18829
  responses:
18802
18830
  '200':
18803
18831
  content:
@@ -18821,9 +18849,10 @@ paths:
18821
18849
  summary: Get all downtimes
18822
18850
  tags:
18823
18851
  - Downtimes
18824
- x-unstable: '**Note**: This endpoint is in private beta.
18825
-
18826
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
18852
+ x-pagination:
18853
+ limitParam: page[limit]
18854
+ pageOffsetParam: page[offset]
18855
+ resultsPath: data
18827
18856
  post:
18828
18857
  description: Schedule a downtime.
18829
18858
  operationId: CreateDowntime
@@ -18864,9 +18893,6 @@ paths:
18864
18893
  tags:
18865
18894
  - Downtimes
18866
18895
  x-codegen-request-body-name: body
18867
- x-unstable: '**Note**: This endpoint is in private beta.
18868
-
18869
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
18870
18896
  /api/v2/downtime/{downtime_id}:
18871
18897
  delete:
18872
18898
  description: Cancel a downtime.
@@ -18904,9 +18930,6 @@ paths:
18904
18930
  summary: Cancel a downtime
18905
18931
  tags:
18906
18932
  - Downtimes
18907
- x-unstable: '**Note**: This endpoint is in private beta.
18908
-
18909
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
18910
18933
  get:
18911
18934
  description: Get downtime detail by `downtime_id`.
18912
18935
  operationId: GetDowntime
@@ -18963,9 +18986,6 @@ paths:
18963
18986
  summary: Get a downtime
18964
18987
  tags:
18965
18988
  - Downtimes
18966
- x-unstable: '**Note**: This endpoint is in private beta.
18967
-
18968
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
18969
18989
  patch:
18970
18990
  description: Update a downtime by `downtime_id`.
18971
18991
  operationId: UpdateDowntime
@@ -19020,9 +19040,6 @@ paths:
19020
19040
  tags:
19021
19041
  - Downtimes
19022
19042
  x-codegen-request-body-name: body
19023
- x-unstable: '**Note**: This endpoint is in private beta.
19024
-
19025
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
19026
19043
  /api/v2/events:
19027
19044
  get:
19028
19045
  description: 'List endpoint returns events that match an events search query.
@@ -22587,9 +22604,6 @@ paths:
22587
22604
  tags:
22588
22605
  - Downtimes
22589
22606
  x-codegen-request-body-name: body
22590
- x-unstable: '**Note**: This endpoint is in private beta.
22591
-
22592
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
22593
22607
  /api/v2/permissions:
22594
22608
  get:
22595
22609
  description: Returns a list of all permissions, including name, description,
@@ -25958,6 +25972,10 @@ paths:
25958
25972
  summary: Get all teams
25959
25973
  tags:
25960
25974
  - Teams
25975
+ x-pagination:
25976
+ limitParam: page[size]
25977
+ pageParam: page[number]
25978
+ resultsPath: data
25961
25979
  post:
25962
25980
  description: 'Create a new team.
25963
25981
 
@@ -27064,8 +27082,8 @@ paths:
27064
27082
  `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`,
27065
27083
  `sds`, `snmp`,
27066
27084
 
27067
- `synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and
27068
- `timeseries`.
27085
+ `synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`,
27086
+ and `timeseries`.
27069
27087
 
27070
27088
  The following product family has been **deprecated**: `audit_logs`.'
27071
27089
  in: query
@@ -27428,6 +27446,10 @@ paths:
27428
27446
  tags:
27429
27447
  - Users
27430
27448
  x-codegen-request-body-name: body
27449
+ x-pagination:
27450
+ limitParam: page[size]
27451
+ pageParam: page[number]
27452
+ resultsPath: data
27431
27453
  post:
27432
27454
  description: Create a user for your organization.
27433
27455
  operationId: CreateUser
@@ -477,7 +477,7 @@ def get_container(operation, attribute_path, with_type=False):
477
477
  ".".join(formatter.attribute_name(a) for a in attribute_path.split(".")[1:]),
478
478
  get_type(parameter, attribute_path.split(".")[1]),
479
479
  )
480
- return f'opts, "{formatter.attribute_path(attribute_path)}"{get_type(parameter)}'
480
+ return f'opts, "{formatter.attribute_path(attribute_path)}"{get_type(parameter)}'
481
481
 
482
482
 
483
483
  def get_type_at_path(operation, attribute_path):
@@ -491,6 +491,8 @@ def get_type_at_path(operation, attribute_path):
491
491
  if content is None:
492
492
  raise RuntimeError("Default response not found")
493
493
  content = content["schema"]
494
+ if not attribute_path:
495
+ return get_name(content.get("items"))
494
496
  for attr in attribute_path.split("."):
495
497
  content = content["properties"][attr]
496
498
  return get_name(content.get("items"))
@@ -228,10 +228,13 @@ module {{ module_name }}::{{ version|upper }}
228
228
  api_version = "{{ version|upper }}"
229
229
  page_size = @api_client.get_attribute_from_path({{ get_container(operation, pagination.limitParam) }}, {{ get_default(operation, pagination.limitParam) }})
230
230
  @api_client.set_attribute_from_path(api_version, {{ get_container(operation, pagination.limitParam, True) }}, page_size)
231
+ {%- if pagination.pageParam %}
232
+ @api_client.set_attribute_from_path(api_version, {{ get_container(operation, pagination.pageParam, True) }}, 0)
233
+ {%- endif %}
231
234
  while true do
232
235
  response = {{ operation.operationId|snake_case }}({% for name, parameter in operation|parameters if parameter.required %}{{ name|attribute_name }}, {% endfor %}opts)
233
- @api_client.get_attribute_from_path(response, "{{ pagination.resultsPath|attribute_path }}").each { |item| yield(item) }
234
- if @api_client.get_attribute_from_path(response, "{{ pagination.resultsPath|attribute_path }}").length < page_size
236
+ @api_client.get_attribute_from_path(response, "{{ pagination.resultsPath|default('')|attribute_path }}").each { |item| yield(item) }
237
+ if @api_client.get_attribute_from_path(response, "{{ pagination.resultsPath|default('')|attribute_path }}").length < page_size
235
238
  break
236
239
  end
237
240
  {%- if pagination.pageOffsetParam %}
@@ -240,6 +243,9 @@ module {{ module_name }}::{{ version|upper }}
240
243
  {%- if pagination.cursorParam %}
241
244
  @api_client.set_attribute_from_path(api_version, {{ get_container(operation, pagination.cursorParam, True) }}, @api_client.get_attribute_from_path(response, "{{ pagination.cursorPath }}"))
242
245
  {%- endif %}
246
+ {%- if pagination.pageParam %}
247
+ @api_client.set_attribute_from_path(api_version, {{ get_container(operation, pagination.pageParam, True) }}, @api_client.get_attribute_from_path({{ get_container(operation, pagination.pageParam) }}, 0) + 1)
248
+ {%- endif %}
243
249
  end
244
250
  end
245
251
  {%- endif %}