datadog_api_client 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +229 -6
- data/.generator/schemas/v2/openapi.yaml +1295 -335
- data/.github/workflows/docs.yml +2 -0
- data/.github/workflows/test.yml +2 -0
- data/CHANGELOG.md +19 -0
- data/examples/v1/logs-indexes/UpdateLogsIndex.rb +3 -0
- data/examples/v1/monitors/CreateMonitor_2012680290.rb +23 -0
- data/examples/v1/service-level-objectives/GetSLOHistory.rb +0 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +9 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
- data/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb +33 -0
- data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb +11 -0
- data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb +10 -0
- data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb +23 -0
- data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb +22 -0
- data/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb +36 -0
- data/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb +11 -0
- data/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb +10 -0
- data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb +23 -0
- data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb +20 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb +4 -1
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +23 -33
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
- data/examples/v2/service-definition/DeleteServiceDefinition.rb +1 -1
- data/examples/v2/service-definition/GetServiceDefinition.rb +1 -1
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +0 -1
- data/lib/datadog_api_client/inflector.rb +49 -0
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +0 -6
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -5
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +4 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +11 -1
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +98 -0
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +148 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_operator.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +150 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +118 -0
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_sds_hour.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +283 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +283 -0
- data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/logs_api.rb +6 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +3 -2
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +108 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +128 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregation_function.rb +37 -0
- data/lib/datadog_api_client/v2/models/ci_app_compute.rb +140 -0
- data/lib/datadog_api_client/v2/models/ci_app_compute_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +154 -0
- data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +63 -0
- data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +64 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_type_name.rb +26 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +129 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +120 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +108 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +160 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_query_options.rb +109 -0
- data/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +119 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_links.rb +99 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +141 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_page.rb +98 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_sort_order.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_event.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_event_type_name.rb +26 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +129 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +120 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +108 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +160 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_warning.rb +118 -0
- data/lib/datadog_api_client/v2/models/logs_query_filter.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_query_filter.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +14 -14
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +62 -3
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +0 -9
@@ -37,6 +37,9 @@ module DatadogAPIClient::V1
|
|
37
37
|
# Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org.
|
38
38
|
attr_accessor :apm_host_top99p
|
39
39
|
|
40
|
+
# Shows the average of all Application Security Monitoring ECS Fargate tasks over all hours in the current months for the given org.
|
41
|
+
attr_accessor :appsec_fargate_count_avg
|
42
|
+
|
40
43
|
# Shows the sum of all audit logs lines indexed over all hours in the current date for the given org.
|
41
44
|
attr_accessor :audit_logs_lines_indexed_sum
|
42
45
|
|
@@ -208,9 +211,18 @@ module DatadogAPIClient::V1
|
|
208
211
|
# Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org.
|
209
212
|
attr_accessor :rum_units_sum
|
210
213
|
|
214
|
+
# Sum of all APM bytes scanned with sensitive data scanner over all hours in the current date for the given org.
|
215
|
+
attr_accessor :sds_apm_scanned_bytes_sum
|
216
|
+
|
217
|
+
# Sum of all event stream events bytes scanned with sensitive data scanner over all hours in the current date for the given org.
|
218
|
+
attr_accessor :sds_events_scanned_bytes_sum
|
219
|
+
|
211
220
|
# Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org.
|
212
221
|
attr_accessor :sds_logs_scanned_bytes_sum
|
213
222
|
|
223
|
+
# Sum of all RUM bytes scanned with sensitive data scanner over all hours in the current date for the given org.
|
224
|
+
attr_accessor :sds_rum_scanned_bytes_sum
|
225
|
+
|
214
226
|
# Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org.
|
215
227
|
attr_accessor :sds_total_scanned_bytes_sum
|
216
228
|
|
@@ -237,6 +249,7 @@ module DatadogAPIClient::V1
|
|
237
249
|
:'apm_azure_app_service_host_top99p' => :'apm_azure_app_service_host_top99p',
|
238
250
|
:'apm_fargate_count_avg' => :'apm_fargate_count_avg',
|
239
251
|
:'apm_host_top99p' => :'apm_host_top99p',
|
252
|
+
:'appsec_fargate_count_avg' => :'appsec_fargate_count_avg',
|
240
253
|
:'audit_logs_lines_indexed_sum' => :'audit_logs_lines_indexed_sum',
|
241
254
|
:'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks',
|
242
255
|
:'aws_host_top99p' => :'aws_host_top99p',
|
@@ -294,7 +307,10 @@ module DatadogAPIClient::V1
|
|
294
307
|
:'rum_session_count_sum' => :'rum_session_count_sum',
|
295
308
|
:'rum_total_session_count_sum' => :'rum_total_session_count_sum',
|
296
309
|
:'rum_units_sum' => :'rum_units_sum',
|
310
|
+
:'sds_apm_scanned_bytes_sum' => :'sds_apm_scanned_bytes_sum',
|
311
|
+
:'sds_events_scanned_bytes_sum' => :'sds_events_scanned_bytes_sum',
|
297
312
|
:'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum',
|
313
|
+
:'sds_rum_scanned_bytes_sum' => :'sds_rum_scanned_bytes_sum',
|
298
314
|
:'sds_total_scanned_bytes_sum' => :'sds_total_scanned_bytes_sum',
|
299
315
|
:'synthetics_browser_check_calls_count_sum' => :'synthetics_browser_check_calls_count_sum',
|
300
316
|
:'synthetics_check_calls_count_sum' => :'synthetics_check_calls_count_sum',
|
@@ -312,6 +328,7 @@ module DatadogAPIClient::V1
|
|
312
328
|
:'apm_azure_app_service_host_top99p' => :'Integer',
|
313
329
|
:'apm_fargate_count_avg' => :'Integer',
|
314
330
|
:'apm_host_top99p' => :'Integer',
|
331
|
+
:'appsec_fargate_count_avg' => :'Integer',
|
315
332
|
:'audit_logs_lines_indexed_sum' => :'Integer',
|
316
333
|
:'avg_profiled_fargate_tasks' => :'Integer',
|
317
334
|
:'aws_host_top99p' => :'Integer',
|
@@ -369,7 +386,10 @@ module DatadogAPIClient::V1
|
|
369
386
|
:'rum_session_count_sum' => :'Integer',
|
370
387
|
:'rum_total_session_count_sum' => :'Integer',
|
371
388
|
:'rum_units_sum' => :'Integer',
|
389
|
+
:'sds_apm_scanned_bytes_sum' => :'Integer',
|
390
|
+
:'sds_events_scanned_bytes_sum' => :'Integer',
|
372
391
|
:'sds_logs_scanned_bytes_sum' => :'Integer',
|
392
|
+
:'sds_rum_scanned_bytes_sum' => :'Integer',
|
373
393
|
:'sds_total_scanned_bytes_sum' => :'Integer',
|
374
394
|
:'synthetics_browser_check_calls_count_sum' => :'Integer',
|
375
395
|
:'synthetics_check_calls_count_sum' => :'Integer',
|
@@ -418,6 +438,10 @@ module DatadogAPIClient::V1
|
|
418
438
|
self.apm_host_top99p = attributes[:'apm_host_top99p']
|
419
439
|
end
|
420
440
|
|
441
|
+
if attributes.key?(:'appsec_fargate_count_avg')
|
442
|
+
self.appsec_fargate_count_avg = attributes[:'appsec_fargate_count_avg']
|
443
|
+
end
|
444
|
+
|
421
445
|
if attributes.key?(:'audit_logs_lines_indexed_sum')
|
422
446
|
self.audit_logs_lines_indexed_sum = attributes[:'audit_logs_lines_indexed_sum']
|
423
447
|
end
|
@@ -646,10 +670,22 @@ module DatadogAPIClient::V1
|
|
646
670
|
self.rum_units_sum = attributes[:'rum_units_sum']
|
647
671
|
end
|
648
672
|
|
673
|
+
if attributes.key?(:'sds_apm_scanned_bytes_sum')
|
674
|
+
self.sds_apm_scanned_bytes_sum = attributes[:'sds_apm_scanned_bytes_sum']
|
675
|
+
end
|
676
|
+
|
677
|
+
if attributes.key?(:'sds_events_scanned_bytes_sum')
|
678
|
+
self.sds_events_scanned_bytes_sum = attributes[:'sds_events_scanned_bytes_sum']
|
679
|
+
end
|
680
|
+
|
649
681
|
if attributes.key?(:'sds_logs_scanned_bytes_sum')
|
650
682
|
self.sds_logs_scanned_bytes_sum = attributes[:'sds_logs_scanned_bytes_sum']
|
651
683
|
end
|
652
684
|
|
685
|
+
if attributes.key?(:'sds_rum_scanned_bytes_sum')
|
686
|
+
self.sds_rum_scanned_bytes_sum = attributes[:'sds_rum_scanned_bytes_sum']
|
687
|
+
end
|
688
|
+
|
653
689
|
if attributes.key?(:'sds_total_scanned_bytes_sum')
|
654
690
|
self.sds_total_scanned_bytes_sum = attributes[:'sds_total_scanned_bytes_sum']
|
655
691
|
end
|
@@ -692,6 +728,7 @@ module DatadogAPIClient::V1
|
|
692
728
|
apm_azure_app_service_host_top99p == o.apm_azure_app_service_host_top99p &&
|
693
729
|
apm_fargate_count_avg == o.apm_fargate_count_avg &&
|
694
730
|
apm_host_top99p == o.apm_host_top99p &&
|
731
|
+
appsec_fargate_count_avg == o.appsec_fargate_count_avg &&
|
695
732
|
audit_logs_lines_indexed_sum == o.audit_logs_lines_indexed_sum &&
|
696
733
|
avg_profiled_fargate_tasks == o.avg_profiled_fargate_tasks &&
|
697
734
|
aws_host_top99p == o.aws_host_top99p &&
|
@@ -749,7 +786,10 @@ module DatadogAPIClient::V1
|
|
749
786
|
rum_session_count_sum == o.rum_session_count_sum &&
|
750
787
|
rum_total_session_count_sum == o.rum_total_session_count_sum &&
|
751
788
|
rum_units_sum == o.rum_units_sum &&
|
789
|
+
sds_apm_scanned_bytes_sum == o.sds_apm_scanned_bytes_sum &&
|
790
|
+
sds_events_scanned_bytes_sum == o.sds_events_scanned_bytes_sum &&
|
752
791
|
sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum &&
|
792
|
+
sds_rum_scanned_bytes_sum == o.sds_rum_scanned_bytes_sum &&
|
753
793
|
sds_total_scanned_bytes_sum == o.sds_total_scanned_bytes_sum &&
|
754
794
|
synthetics_browser_check_calls_count_sum == o.synthetics_browser_check_calls_count_sum &&
|
755
795
|
synthetics_check_calls_count_sum == o.synthetics_check_calls_count_sum &&
|
@@ -762,7 +802,7 @@ module DatadogAPIClient::V1
|
|
762
802
|
# @return [Integer] Hash code
|
763
803
|
# @!visibility private
|
764
804
|
def hash
|
765
|
-
[agent_host_top99p, apm_azure_app_service_host_top99p, apm_fargate_count_avg, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, profiling_host_top99p, public_id, region, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
|
805
|
+
[agent_host_top99p, apm_azure_app_service_host_top99p, apm_fargate_count_avg, apm_host_top99p, appsec_fargate_count_avg, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, container_avg, container_hwm, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, online_archive_events_count_sum, opentelemetry_host_top99p, profiling_host_top99p, public_id, region, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash
|
766
806
|
end
|
767
807
|
end
|
768
808
|
end
|
@@ -37,6 +37,9 @@ module DatadogAPIClient::V1
|
|
37
37
|
# Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations.
|
38
38
|
attr_accessor :apm_host_top99p_sum
|
39
39
|
|
40
|
+
# Shows the average of all Application Security Monitoring ECS Fargate tasks over all hours in the current months for all organizations.
|
41
|
+
attr_accessor :appsec_fargate_count_avg_sum
|
42
|
+
|
40
43
|
# Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations.
|
41
44
|
attr_accessor :audit_logs_lines_indexed_agg_sum
|
42
45
|
|
@@ -223,9 +226,18 @@ module DatadogAPIClient::V1
|
|
223
226
|
# Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations.
|
224
227
|
attr_accessor :rum_units_agg_sum
|
225
228
|
|
229
|
+
# Sum of all APM bytes scanned with sensitive data scanner in the current months for all organizations.
|
230
|
+
attr_accessor :sds_apm_scanned_bytes_sum
|
231
|
+
|
232
|
+
# Sum of all event stream events bytes scanned with sensitive data scanner in the current months for all organizations.
|
233
|
+
attr_accessor :sds_events_scanned_bytes_sum
|
234
|
+
|
226
235
|
# Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations.
|
227
236
|
attr_accessor :sds_logs_scanned_bytes_sum
|
228
237
|
|
238
|
+
# Sum of all RUM bytes scanned with sensitive data scanner in the current months for all organizations.
|
239
|
+
attr_accessor :sds_rum_scanned_bytes_sum
|
240
|
+
|
229
241
|
# Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations.
|
230
242
|
attr_accessor :sds_total_scanned_bytes_sum
|
231
243
|
|
@@ -258,6 +270,7 @@ module DatadogAPIClient::V1
|
|
258
270
|
:'apm_azure_app_service_host_top99p_sum' => :'apm_azure_app_service_host_top99p_sum',
|
259
271
|
:'apm_fargate_count_avg_sum' => :'apm_fargate_count_avg_sum',
|
260
272
|
:'apm_host_top99p_sum' => :'apm_host_top99p_sum',
|
273
|
+
:'appsec_fargate_count_avg_sum' => :'appsec_fargate_count_avg_sum',
|
261
274
|
:'audit_logs_lines_indexed_agg_sum' => :'audit_logs_lines_indexed_agg_sum',
|
262
275
|
:'avg_profiled_fargate_tasks_sum' => :'avg_profiled_fargate_tasks_sum',
|
263
276
|
:'aws_host_top99p_sum' => :'aws_host_top99p_sum',
|
@@ -320,7 +333,10 @@ module DatadogAPIClient::V1
|
|
320
333
|
:'rum_session_count_agg_sum' => :'rum_session_count_agg_sum',
|
321
334
|
:'rum_total_session_count_agg_sum' => :'rum_total_session_count_agg_sum',
|
322
335
|
:'rum_units_agg_sum' => :'rum_units_agg_sum',
|
336
|
+
:'sds_apm_scanned_bytes_sum' => :'sds_apm_scanned_bytes_sum',
|
337
|
+
:'sds_events_scanned_bytes_sum' => :'sds_events_scanned_bytes_sum',
|
323
338
|
:'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum',
|
339
|
+
:'sds_rum_scanned_bytes_sum' => :'sds_rum_scanned_bytes_sum',
|
324
340
|
:'sds_total_scanned_bytes_sum' => :'sds_total_scanned_bytes_sum',
|
325
341
|
:'start_date' => :'start_date',
|
326
342
|
:'synthetics_browser_check_calls_count_agg_sum' => :'synthetics_browser_check_calls_count_agg_sum',
|
@@ -340,6 +356,7 @@ module DatadogAPIClient::V1
|
|
340
356
|
:'apm_azure_app_service_host_top99p_sum' => :'Integer',
|
341
357
|
:'apm_fargate_count_avg_sum' => :'Integer',
|
342
358
|
:'apm_host_top99p_sum' => :'Integer',
|
359
|
+
:'appsec_fargate_count_avg_sum' => :'Integer',
|
343
360
|
:'audit_logs_lines_indexed_agg_sum' => :'Integer',
|
344
361
|
:'avg_profiled_fargate_tasks_sum' => :'Integer',
|
345
362
|
:'aws_host_top99p_sum' => :'Integer',
|
@@ -402,7 +419,10 @@ module DatadogAPIClient::V1
|
|
402
419
|
:'rum_session_count_agg_sum' => :'Integer',
|
403
420
|
:'rum_total_session_count_agg_sum' => :'Integer',
|
404
421
|
:'rum_units_agg_sum' => :'Integer',
|
422
|
+
:'sds_apm_scanned_bytes_sum' => :'Integer',
|
423
|
+
:'sds_events_scanned_bytes_sum' => :'Integer',
|
405
424
|
:'sds_logs_scanned_bytes_sum' => :'Integer',
|
425
|
+
:'sds_rum_scanned_bytes_sum' => :'Integer',
|
406
426
|
:'sds_total_scanned_bytes_sum' => :'Integer',
|
407
427
|
:'start_date' => :'Time',
|
408
428
|
:'synthetics_browser_check_calls_count_agg_sum' => :'Integer',
|
@@ -453,6 +473,10 @@ module DatadogAPIClient::V1
|
|
453
473
|
self.apm_host_top99p_sum = attributes[:'apm_host_top99p_sum']
|
454
474
|
end
|
455
475
|
|
476
|
+
if attributes.key?(:'appsec_fargate_count_avg_sum')
|
477
|
+
self.appsec_fargate_count_avg_sum = attributes[:'appsec_fargate_count_avg_sum']
|
478
|
+
end
|
479
|
+
|
456
480
|
if attributes.key?(:'audit_logs_lines_indexed_agg_sum')
|
457
481
|
self.audit_logs_lines_indexed_agg_sum = attributes[:'audit_logs_lines_indexed_agg_sum']
|
458
482
|
end
|
@@ -701,10 +725,22 @@ module DatadogAPIClient::V1
|
|
701
725
|
self.rum_units_agg_sum = attributes[:'rum_units_agg_sum']
|
702
726
|
end
|
703
727
|
|
728
|
+
if attributes.key?(:'sds_apm_scanned_bytes_sum')
|
729
|
+
self.sds_apm_scanned_bytes_sum = attributes[:'sds_apm_scanned_bytes_sum']
|
730
|
+
end
|
731
|
+
|
732
|
+
if attributes.key?(:'sds_events_scanned_bytes_sum')
|
733
|
+
self.sds_events_scanned_bytes_sum = attributes[:'sds_events_scanned_bytes_sum']
|
734
|
+
end
|
735
|
+
|
704
736
|
if attributes.key?(:'sds_logs_scanned_bytes_sum')
|
705
737
|
self.sds_logs_scanned_bytes_sum = attributes[:'sds_logs_scanned_bytes_sum']
|
706
738
|
end
|
707
739
|
|
740
|
+
if attributes.key?(:'sds_rum_scanned_bytes_sum')
|
741
|
+
self.sds_rum_scanned_bytes_sum = attributes[:'sds_rum_scanned_bytes_sum']
|
742
|
+
end
|
743
|
+
|
708
744
|
if attributes.key?(:'sds_total_scanned_bytes_sum')
|
709
745
|
self.sds_total_scanned_bytes_sum = attributes[:'sds_total_scanned_bytes_sum']
|
710
746
|
end
|
@@ -757,6 +793,7 @@ module DatadogAPIClient::V1
|
|
757
793
|
apm_azure_app_service_host_top99p_sum == o.apm_azure_app_service_host_top99p_sum &&
|
758
794
|
apm_fargate_count_avg_sum == o.apm_fargate_count_avg_sum &&
|
759
795
|
apm_host_top99p_sum == o.apm_host_top99p_sum &&
|
796
|
+
appsec_fargate_count_avg_sum == o.appsec_fargate_count_avg_sum &&
|
760
797
|
audit_logs_lines_indexed_agg_sum == o.audit_logs_lines_indexed_agg_sum &&
|
761
798
|
avg_profiled_fargate_tasks_sum == o.avg_profiled_fargate_tasks_sum &&
|
762
799
|
aws_host_top99p_sum == o.aws_host_top99p_sum &&
|
@@ -819,7 +856,10 @@ module DatadogAPIClient::V1
|
|
819
856
|
rum_session_count_agg_sum == o.rum_session_count_agg_sum &&
|
820
857
|
rum_total_session_count_agg_sum == o.rum_total_session_count_agg_sum &&
|
821
858
|
rum_units_agg_sum == o.rum_units_agg_sum &&
|
859
|
+
sds_apm_scanned_bytes_sum == o.sds_apm_scanned_bytes_sum &&
|
860
|
+
sds_events_scanned_bytes_sum == o.sds_events_scanned_bytes_sum &&
|
822
861
|
sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum &&
|
862
|
+
sds_rum_scanned_bytes_sum == o.sds_rum_scanned_bytes_sum &&
|
823
863
|
sds_total_scanned_bytes_sum == o.sds_total_scanned_bytes_sum &&
|
824
864
|
start_date == o.start_date &&
|
825
865
|
synthetics_browser_check_calls_count_agg_sum == o.synthetics_browser_check_calls_count_agg_sum &&
|
@@ -834,7 +874,7 @@ module DatadogAPIClient::V1
|
|
834
874
|
# @return [Integer] Hash code
|
835
875
|
# @!visibility private
|
836
876
|
def hash
|
837
|
-
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash
|
877
|
+
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash
|
838
878
|
end
|
839
879
|
end
|
840
880
|
end
|
@@ -0,0 +1,283 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'cgi'
|
17
|
+
|
18
|
+
module DatadogAPIClient::V2
|
19
|
+
class CIVisibilityPipelinesAPI
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
|
26
|
+
# Aggregate pipelines events.
|
27
|
+
#
|
28
|
+
# @see #aggregate_ci_app_pipeline_events_with_http_info
|
29
|
+
def aggregate_ci_app_pipeline_events(body, opts = {})
|
30
|
+
data, _status_code, _headers = aggregate_ci_app_pipeline_events_with_http_info(body, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Aggregate pipelines events.
|
35
|
+
#
|
36
|
+
# The API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries.
|
37
|
+
#
|
38
|
+
# @param body [CIAppPipelinesAggregateRequest]
|
39
|
+
# @param opts [Hash] the optional parameters
|
40
|
+
# @return [Array<(CIAppPipelinesAnalyticsAggregateResponse, Integer, Hash)>] CIAppPipelinesAnalyticsAggregateResponse data, response status code and response headers
|
41
|
+
def aggregate_ci_app_pipeline_events_with_http_info(body, opts = {})
|
42
|
+
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.aggregate_ci_app_pipeline_events ...'
|
45
|
+
end
|
46
|
+
# verify the required parameter 'body' is set
|
47
|
+
if @api_client.config.client_side_validation && body.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CIVisibilityPipelinesAPI.aggregate_ci_app_pipeline_events"
|
49
|
+
end
|
50
|
+
# resource path
|
51
|
+
local_var_path = '/api/v2/ci/pipelines/analytics/aggregate'
|
52
|
+
|
53
|
+
# query parameters
|
54
|
+
query_params = opts[:query_params] || {}
|
55
|
+
|
56
|
+
# header parameters
|
57
|
+
header_params = opts[:header_params] || {}
|
58
|
+
# HTTP header 'Accept' (if needed)
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
+
# HTTP header 'Content-Type'
|
61
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'CIAppPipelinesAnalyticsAggregateResponse'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :aggregate_ci_app_pipeline_events,
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type,
|
83
|
+
:api_version => "V2"
|
84
|
+
)
|
85
|
+
|
86
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: CIVisibilityPipelinesAPI#aggregate_ci_app_pipeline_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
|
93
|
+
# Get a list of pipelines events.
|
94
|
+
#
|
95
|
+
# @see #list_ci_app_pipeline_events_with_http_info
|
96
|
+
def list_ci_app_pipeline_events(opts = {})
|
97
|
+
data, _status_code, _headers = list_ci_app_pipeline_events_with_http_info(opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Get a list of pipelines events.
|
102
|
+
#
|
103
|
+
# List endpoint returns CI Visibility pipeline events that match a log search query.
|
104
|
+
# [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
|
105
|
+
#
|
106
|
+
# Use this endpoint to see your latest pipeline events.
|
107
|
+
#
|
108
|
+
# @param opts [Hash] the optional parameters
|
109
|
+
# @option opts [String] :filter_query Search query following log syntax.
|
110
|
+
# @option opts [Time] :filter_from Minimum timestamp for requested events.
|
111
|
+
# @option opts [Time] :filter_to Maximum timestamp for requested events.
|
112
|
+
# @option opts [CIAppSort] :sort Order of events in results.
|
113
|
+
# @option opts [String] :page_cursor List following results with a cursor provided in the previous query.
|
114
|
+
# @option opts [Integer] :page_limit Maximum number of events in the response.
|
115
|
+
# @return [Array<(CIAppPipelineEventsResponse, Integer, Hash)>] CIAppPipelineEventsResponse data, response status code and response headers
|
116
|
+
def list_ci_app_pipeline_events_with_http_info(opts = {})
|
117
|
+
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.list_ci_app_pipeline_events ...'
|
120
|
+
end
|
121
|
+
allowable_values = ['timestamp', '-timestamp']
|
122
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
123
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
124
|
+
end
|
125
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000
|
126
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling CIVisibilityPipelinesAPI.list_ci_app_pipeline_events, must be smaller than or equal to 1000.'
|
127
|
+
end
|
128
|
+
# resource path
|
129
|
+
local_var_path = '/api/v2/ci/pipelines/events'
|
130
|
+
|
131
|
+
# query parameters
|
132
|
+
query_params = opts[:query_params] || {}
|
133
|
+
query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
|
134
|
+
query_params[:'filter[from]'] = opts[:'filter_from'] if !opts[:'filter_from'].nil?
|
135
|
+
query_params[:'filter[to]'] = opts[:'filter_to'] if !opts[:'filter_to'].nil?
|
136
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
137
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
138
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
139
|
+
|
140
|
+
# header parameters
|
141
|
+
header_params = opts[:header_params] || {}
|
142
|
+
# HTTP header 'Accept' (if needed)
|
143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
144
|
+
|
145
|
+
# form parameters
|
146
|
+
form_params = opts[:form_params] || {}
|
147
|
+
|
148
|
+
# http body (model)
|
149
|
+
post_body = opts[:debug_body]
|
150
|
+
|
151
|
+
# return_type
|
152
|
+
return_type = opts[:debug_return_type] || 'CIAppPipelineEventsResponse'
|
153
|
+
|
154
|
+
# auth_names
|
155
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
156
|
+
|
157
|
+
new_options = opts.merge(
|
158
|
+
:operation => :list_ci_app_pipeline_events,
|
159
|
+
:header_params => header_params,
|
160
|
+
:query_params => query_params,
|
161
|
+
:form_params => form_params,
|
162
|
+
:body => post_body,
|
163
|
+
:auth_names => auth_names,
|
164
|
+
:return_type => return_type,
|
165
|
+
:api_version => "V2"
|
166
|
+
)
|
167
|
+
|
168
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug "API called: CIVisibilityPipelinesAPI#list_ci_app_pipeline_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
171
|
+
end
|
172
|
+
return data, status_code, headers
|
173
|
+
end
|
174
|
+
|
175
|
+
# Get a list of pipelines events.
|
176
|
+
#
|
177
|
+
# Provide a paginated version of {#list_ci_app_pipeline_events}, returning all items.
|
178
|
+
#
|
179
|
+
# To use it you need to use a block: list_ci_app_pipeline_events_with_pagination { |item| p item }
|
180
|
+
#
|
181
|
+
# @yield [CIAppPipelineEvent] Paginated items
|
182
|
+
def list_ci_app_pipeline_events_with_pagination(opts = {})
|
183
|
+
api_version = "V2"
|
184
|
+
page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
|
185
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
|
186
|
+
while true do
|
187
|
+
response = list_ci_app_pipeline_events(opts)
|
188
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
189
|
+
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
190
|
+
break
|
191
|
+
end
|
192
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Search pipelines events.
|
197
|
+
#
|
198
|
+
# @see #search_ci_app_pipeline_events_with_http_info
|
199
|
+
def search_ci_app_pipeline_events(opts = {})
|
200
|
+
data, _status_code, _headers = search_ci_app_pipeline_events_with_http_info(opts)
|
201
|
+
data
|
202
|
+
end
|
203
|
+
|
204
|
+
# Search pipelines events.
|
205
|
+
#
|
206
|
+
# List endpoint returns CI Visibility pipeline events that match a log search query.
|
207
|
+
# [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
|
208
|
+
#
|
209
|
+
# Use this endpoint to build complex events filtering and search.
|
210
|
+
#
|
211
|
+
# @param opts [Hash] the optional parameters
|
212
|
+
# @option opts [CIAppPipelineEventsRequest] :body
|
213
|
+
# @return [Array<(CIAppPipelineEventsResponse, Integer, Hash)>] CIAppPipelineEventsResponse data, response status code and response headers
|
214
|
+
def search_ci_app_pipeline_events_with_http_info(opts = {})
|
215
|
+
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.search_ci_app_pipeline_events ...'
|
218
|
+
end
|
219
|
+
# resource path
|
220
|
+
local_var_path = '/api/v2/ci/pipelines/events/search'
|
221
|
+
|
222
|
+
# query parameters
|
223
|
+
query_params = opts[:query_params] || {}
|
224
|
+
|
225
|
+
# header parameters
|
226
|
+
header_params = opts[:header_params] || {}
|
227
|
+
# HTTP header 'Accept' (if needed)
|
228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
229
|
+
# HTTP header 'Content-Type'
|
230
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
231
|
+
|
232
|
+
# form parameters
|
233
|
+
form_params = opts[:form_params] || {}
|
234
|
+
|
235
|
+
# http body (model)
|
236
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
237
|
+
|
238
|
+
# return_type
|
239
|
+
return_type = opts[:debug_return_type] || 'CIAppPipelineEventsResponse'
|
240
|
+
|
241
|
+
# auth_names
|
242
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
243
|
+
|
244
|
+
new_options = opts.merge(
|
245
|
+
:operation => :search_ci_app_pipeline_events,
|
246
|
+
:header_params => header_params,
|
247
|
+
:query_params => query_params,
|
248
|
+
:form_params => form_params,
|
249
|
+
:body => post_body,
|
250
|
+
:auth_names => auth_names,
|
251
|
+
:return_type => return_type,
|
252
|
+
:api_version => "V2"
|
253
|
+
)
|
254
|
+
|
255
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug "API called: CIVisibilityPipelinesAPI#search_ci_app_pipeline_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
258
|
+
end
|
259
|
+
return data, status_code, headers
|
260
|
+
end
|
261
|
+
|
262
|
+
# Search pipelines events.
|
263
|
+
#
|
264
|
+
# Provide a paginated version of {#search_ci_app_pipeline_events}, returning all items.
|
265
|
+
#
|
266
|
+
# To use it you need to use a block: search_ci_app_pipeline_events_with_pagination { |item| p item }
|
267
|
+
#
|
268
|
+
# @yield [CIAppPipelineEvent] Paginated items
|
269
|
+
def search_ci_app_pipeline_events_with_pagination(opts = {})
|
270
|
+
api_version = "V2"
|
271
|
+
page_size = @api_client.get_attribute_from_path(opts, "body.page.limit", 10)
|
272
|
+
@api_client.set_attribute_from_path(api_version, opts, "body.page.limit", CIAppPipelineEventsRequest, page_size)
|
273
|
+
while true do
|
274
|
+
response = search_ci_app_pipeline_events(opts)
|
275
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
276
|
+
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
277
|
+
break
|
278
|
+
end
|
279
|
+
@api_client.set_attribute_from_path(api_version, opts, "body.page.cursor", CIAppPipelineEventsRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|