datadog_api_client 2.12.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +6 -6
- data/.generator/conftest.py +7 -0
- data/.generator/poetry.lock +45 -75
- data/.generator/pyproject.toml +7 -7
- data/.generator/schemas/v1/openapi.yaml +257 -19
- data/.generator/schemas/v2/openapi.yaml +3020 -911
- data/.generator/src/generator/formatter.py +43 -32
- data/.generator/src/generator/openapi.py +4 -2
- data/.generator/src/generator/templates/api_client.j2 +81 -53
- data/.generator/src/generator/templates/configuration.j2 +21 -0
- data/.github/workflows/test_integration.yml +7 -1
- data/.pre-commit-config.yaml +4 -4
- data/CHANGELOG.md +62 -0
- data/README.md +23 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_1284514532.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2261785072.rb +47 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
- data/examples/v1/dashboards/CreateDashboard_3513586382.rb +74 -0
- data/examples/v1/dashboards/CreateDashboard_3562282606.rb +1 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/organizations/UpdateOrg.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
- data/examples/v1/users/CreateUser.rb +1 -1
- data/examples/v1/users/CreateUser_266604071.rb +13 -0
- data/examples/v1/users/UpdateUser.rb +1 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/confluent-cloud/CreateConfluentAccount.rb +1 -0
- data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -0
- data/examples/v2/confluent-cloud/UpdateConfluentResource.rb +1 -0
- data/examples/v2/downtimes/CancelDowntime.rb +11 -0
- data/examples/v2/downtimes/CreateDowntime.rb +26 -0
- data/examples/v2/downtimes/GetDowntime.rb +11 -0
- data/examples/v2/downtimes/ListDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +8 -0
- data/examples/v2/downtimes/UpdateDowntime.rb +21 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
- data/examples/v2/logs/ListLogsGet_2034110533.rb +3 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +10 -0
- data/examples/v2/spans/AggregateSpans.rb +25 -0
- data/examples/v2/spans/ListSpans.rb +25 -0
- data/examples/v2/spans/ListSpansGet.rb +5 -0
- data/examples/v2/spans/ListSpansGet_1130763422.rb +8 -0
- data/examples/v2/spans/ListSpans_3495563906.rb +25 -0
- data/examples/v2/teams/CreateTeam.rb +2 -2
- data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
- data/examples/v2/teams/GetUserMemberships.rb +8 -0
- data/examples/v2/teams/UpdateTeam.rb +9 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +28 -0
- data/lib/datadog_api_client/inflector.rb +97 -1
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +10 -10
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
- data/lib/datadog_api_client/v1/models/change_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +150 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +11 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +24 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +94 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/organization_settings.rb +8 -0
- data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +24 -4
- data/lib/datadog_api_client/v1/models/user.rb +8 -0
- data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v1/models/widget_display_type.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -5
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +462 -0
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/rum_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/spans_api.rb +294 -0
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/teams_api.rb +65 -0
- data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_attributes.rb +102 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +36 -1
- data/lib/datadog_api_client/v2/models/downtime_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +194 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/downtime_included_monitor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +107 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_actions.rb +27 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_types.rb +28 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_response.rb +95 -0
- data/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +208 -0
- data/lib/datadog_api_client/v2/models/downtime_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_response_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_create_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +101 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +116 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +106 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +131 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +92 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_response.rb +65 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_update_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{team_data.rb → downtime_update_request_data.rb} +9 -9
- data/lib/datadog_api_client/v2/models/event_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/events_group_by_sort.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_response_metadata.rb +11 -1
- data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_downtimes_response.rb +104 -0
- data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
- data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
- data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +2 -1
- data/lib/datadog_api_client/v2/models/rum_application_list.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_meta.rb +36 -4
- data/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +100 -0
- data/lib/datadog_api_client/v2/models/span.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +110 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregation_function.rb +37 -0
- data/lib/datadog_api_client/v2/models/spans_attributes.rb +244 -0
- data/lib/datadog_api_client/v2/models/spans_compute.rb +129 -0
- data/lib/datadog_api_client/v2/models/spans_compute_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_group_by.rb +149 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +143 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_missing.rb +63 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_total.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_list_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +111 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_page.rb +108 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_list_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_links.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_query_filter.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_query_options.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_sort_order.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_warning.rb +100 -0
- data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
- data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
- data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
- data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/configuration_spec.rb +17 -0
- data/spec/retry_spec.rb +44 -0
- metadata +119 -3
|
@@ -208,7 +208,7 @@ module DatadogAPIClient::V2
|
|
|
208
208
|
#
|
|
209
209
|
# @param opts [Hash] the optional parameters
|
|
210
210
|
# @option opts [String] :filter_query Search query following logs syntax.
|
|
211
|
-
# @option opts [String] :
|
|
211
|
+
# @option opts [Array<String>] :filter_indexes For customers with multiple indexes, the indexes to search. Defaults to '*' which means all indexes
|
|
212
212
|
# @option opts [Time] :filter_from Minimum timestamp for requested logs.
|
|
213
213
|
# @option opts [Time] :filter_to Maximum timestamp for requested logs.
|
|
214
214
|
# @option opts [LogsStorageTier] :filter_storage_tier Specifies the storage type to be used
|
|
@@ -238,7 +238,7 @@ module DatadogAPIClient::V2
|
|
|
238
238
|
# query parameters
|
|
239
239
|
query_params = opts[:query_params] || {}
|
|
240
240
|
query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
|
|
241
|
-
query_params[:'filter[
|
|
241
|
+
query_params[:'filter[indexes]'] = @api_client.build_collection_param(opts[:'filter_indexes'], :csv) if !opts[:'filter_indexes'].nil?
|
|
242
242
|
query_params[:'filter[from]'] = opts[:'filter_from'] if !opts[:'filter_from'].nil?
|
|
243
243
|
query_params[:'filter[to]'] = opts[:'filter_to'] if !opts[:'filter_to'].nil?
|
|
244
244
|
query_params[:'filter[storage_tier]'] = opts[:'filter_storage_tier'] if !opts[:'filter_storage_tier'].nil?
|
|
@@ -541,7 +541,7 @@ module DatadogAPIClient::V2
|
|
|
541
541
|
# @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled.
|
|
542
542
|
# @option opts [Boolean] :filter_queried Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
|
|
543
543
|
# @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter.
|
|
544
|
-
# @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
|
|
544
|
+
# @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
|
|
545
545
|
# @return [Array<(MetricsAndMetricTagConfigurationsResponse, Integer, Hash)>] MetricsAndMetricTagConfigurationsResponse data, response status code and response headers
|
|
546
546
|
def list_tag_configurations_with_http_info(opts = {})
|
|
547
547
|
|
|
@@ -742,7 +742,7 @@ module DatadogAPIClient::V2
|
|
|
742
742
|
|
|
743
743
|
# Query scalar data across multiple products.
|
|
744
744
|
#
|
|
745
|
-
# Query scalar values (as seen on Query Value, Table and Toplist widgets).
|
|
745
|
+
# Query scalar values (as seen on Query Value, Table, and Toplist widgets).
|
|
746
746
|
# Multiple data sources are supported with the ability to
|
|
747
747
|
# process the data using formulas and functions.
|
|
748
748
|
#
|
|
@@ -534,14 +534,14 @@ module DatadogAPIClient::V2
|
|
|
534
534
|
def search_rum_events_with_pagination(body, opts = {})
|
|
535
535
|
api_version = "V2"
|
|
536
536
|
page_size = @api_client.get_attribute_from_path(body, "page.limit", 10)
|
|
537
|
-
@api_client.set_attribute_from_path(api_version, body, "page.limit",
|
|
537
|
+
@api_client.set_attribute_from_path(api_version, body, "page.limit", RUMQueryPageOptions, page_size)
|
|
538
538
|
while true do
|
|
539
539
|
response = search_rum_events(body, opts)
|
|
540
540
|
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
541
541
|
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
542
542
|
break
|
|
543
543
|
end
|
|
544
|
-
@api_client.set_attribute_from_path(api_version, body, "page.cursor",
|
|
544
|
+
@api_client.set_attribute_from_path(api_version, body, "page.cursor", RUMQueryPageOptions, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
545
545
|
end
|
|
546
546
|
end
|
|
547
547
|
|
|
@@ -729,7 +729,7 @@ module DatadogAPIClient::V2
|
|
|
729
729
|
#
|
|
730
730
|
# @param signal_id [String] The ID of the signal.
|
|
731
731
|
# @param opts [Hash] the optional parameters
|
|
732
|
-
# @return [Array<(
|
|
732
|
+
# @return [Array<(SecurityMonitoringSignalResponse, Integer, Hash)>] SecurityMonitoringSignalResponse data, response status code and response headers
|
|
733
733
|
def get_security_monitoring_signal_with_http_info(signal_id, opts = {})
|
|
734
734
|
|
|
735
735
|
if @api_client.config.debugging
|
|
@@ -757,7 +757,7 @@ module DatadogAPIClient::V2
|
|
|
757
757
|
post_body = opts[:debug_body]
|
|
758
758
|
|
|
759
759
|
# return_type
|
|
760
|
-
return_type = opts[:debug_return_type] || '
|
|
760
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalResponse'
|
|
761
761
|
|
|
762
762
|
# auth_names
|
|
763
763
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
@@ -1309,7 +1309,7 @@ module DatadogAPIClient::V2
|
|
|
1309
1309
|
return_type = opts[:debug_return_type] || 'MuteFindingResponse'
|
|
1310
1310
|
|
|
1311
1311
|
# auth_names
|
|
1312
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
1312
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1313
1313
|
|
|
1314
1314
|
new_options = opts.merge(
|
|
1315
1315
|
:operation => :update_finding,
|
|
@@ -0,0 +1,294 @@
|
|
|
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 SpansAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Aggregate spans.
|
|
27
|
+
#
|
|
28
|
+
# @see #aggregate_spans_with_http_info
|
|
29
|
+
def aggregate_spans(body, opts = {})
|
|
30
|
+
data, _status_code, _headers = aggregate_spans_with_http_info(body, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Aggregate spans.
|
|
35
|
+
#
|
|
36
|
+
# The API endpoint to aggregate spans into buckets and compute metrics and timeseries.
|
|
37
|
+
# This endpoint is rate limited to `300` requests per hour.
|
|
38
|
+
#
|
|
39
|
+
# @param body [SpansAggregateRequest]
|
|
40
|
+
# @param opts [Hash] the optional parameters
|
|
41
|
+
# @return [Array<(SpansAggregateResponse, Integer, Hash)>] SpansAggregateResponse data, response status code and response headers
|
|
42
|
+
def aggregate_spans_with_http_info(body, opts = {})
|
|
43
|
+
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: SpansAPI.aggregate_spans ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'body' is set
|
|
48
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SpansAPI.aggregate_spans"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/api/v2/spans/analytics/aggregate'
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
63
|
+
|
|
64
|
+
# form parameters
|
|
65
|
+
form_params = opts[:form_params] || {}
|
|
66
|
+
|
|
67
|
+
# http body (model)
|
|
68
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
69
|
+
|
|
70
|
+
# return_type
|
|
71
|
+
return_type = opts[:debug_return_type] || 'SpansAggregateResponse'
|
|
72
|
+
|
|
73
|
+
# auth_names
|
|
74
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
75
|
+
|
|
76
|
+
new_options = opts.merge(
|
|
77
|
+
:operation => :aggregate_spans,
|
|
78
|
+
:header_params => header_params,
|
|
79
|
+
:query_params => query_params,
|
|
80
|
+
:form_params => form_params,
|
|
81
|
+
:body => post_body,
|
|
82
|
+
:auth_names => auth_names,
|
|
83
|
+
:return_type => return_type,
|
|
84
|
+
:api_version => "V2"
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
88
|
+
if @api_client.config.debugging
|
|
89
|
+
@api_client.config.logger.debug "API called: SpansAPI#aggregate_spans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
90
|
+
end
|
|
91
|
+
return data, status_code, headers
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Search spans.
|
|
95
|
+
#
|
|
96
|
+
# @see #list_spans_with_http_info
|
|
97
|
+
def list_spans(body, opts = {})
|
|
98
|
+
data, _status_code, _headers = list_spans_with_http_info(body, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Search spans.
|
|
103
|
+
#
|
|
104
|
+
# List endpoint returns spans that match a span search query.
|
|
105
|
+
# [Results are paginated][1].
|
|
106
|
+
#
|
|
107
|
+
# Use this endpoint to build complex spans filtering and search.
|
|
108
|
+
# This endpoint is rate limited to `300` requests per hour.
|
|
109
|
+
#
|
|
110
|
+
# [1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api
|
|
111
|
+
#
|
|
112
|
+
# @param body [SpansListRequest]
|
|
113
|
+
# @param opts [Hash] the optional parameters
|
|
114
|
+
# @return [Array<(SpansListResponse, Integer, Hash)>] SpansListResponse data, response status code and response headers
|
|
115
|
+
def list_spans_with_http_info(body, opts = {})
|
|
116
|
+
|
|
117
|
+
if @api_client.config.debugging
|
|
118
|
+
@api_client.config.logger.debug 'Calling API: SpansAPI.list_spans ...'
|
|
119
|
+
end
|
|
120
|
+
# verify the required parameter 'body' is set
|
|
121
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SpansAPI.list_spans"
|
|
123
|
+
end
|
|
124
|
+
# resource path
|
|
125
|
+
local_var_path = '/api/v2/spans/events/search'
|
|
126
|
+
|
|
127
|
+
# query parameters
|
|
128
|
+
query_params = opts[:query_params] || {}
|
|
129
|
+
|
|
130
|
+
# header parameters
|
|
131
|
+
header_params = opts[:header_params] || {}
|
|
132
|
+
# HTTP header 'Accept' (if needed)
|
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
134
|
+
# HTTP header 'Content-Type'
|
|
135
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
136
|
+
|
|
137
|
+
# form parameters
|
|
138
|
+
form_params = opts[:form_params] || {}
|
|
139
|
+
|
|
140
|
+
# http body (model)
|
|
141
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
142
|
+
|
|
143
|
+
# return_type
|
|
144
|
+
return_type = opts[:debug_return_type] || 'SpansListResponse'
|
|
145
|
+
|
|
146
|
+
# auth_names
|
|
147
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
148
|
+
|
|
149
|
+
new_options = opts.merge(
|
|
150
|
+
:operation => :list_spans,
|
|
151
|
+
:header_params => header_params,
|
|
152
|
+
:query_params => query_params,
|
|
153
|
+
:form_params => form_params,
|
|
154
|
+
:body => post_body,
|
|
155
|
+
:auth_names => auth_names,
|
|
156
|
+
:return_type => return_type,
|
|
157
|
+
:api_version => "V2"
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
161
|
+
if @api_client.config.debugging
|
|
162
|
+
@api_client.config.logger.debug "API called: SpansAPI#list_spans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
163
|
+
end
|
|
164
|
+
return data, status_code, headers
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Search spans.
|
|
168
|
+
#
|
|
169
|
+
# Provide a paginated version of {#list_spans}, returning all items.
|
|
170
|
+
#
|
|
171
|
+
# To use it you need to use a block: list_spans_with_pagination { |item| p item }
|
|
172
|
+
#
|
|
173
|
+
# @yield [Span] Paginated items
|
|
174
|
+
def list_spans_with_pagination(body, opts = {})
|
|
175
|
+
api_version = "V2"
|
|
176
|
+
page_size = @api_client.get_attribute_from_path(body, "data.attributes.page.limit", 10)
|
|
177
|
+
@api_client.set_attribute_from_path(api_version, body, "data.attributes.page.limit", SpansListRequestData, page_size)
|
|
178
|
+
while true do
|
|
179
|
+
response = list_spans(body, opts)
|
|
180
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
181
|
+
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
182
|
+
break
|
|
183
|
+
end
|
|
184
|
+
@api_client.set_attribute_from_path(api_version, body, "data.attributes.page.cursor", SpansListRequestData, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Get a list of spans.
|
|
189
|
+
#
|
|
190
|
+
# @see #list_spans_get_with_http_info
|
|
191
|
+
def list_spans_get(opts = {})
|
|
192
|
+
data, _status_code, _headers = list_spans_get_with_http_info(opts)
|
|
193
|
+
data
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Get a list of spans.
|
|
197
|
+
#
|
|
198
|
+
# List endpoint returns spans that match a span search query.
|
|
199
|
+
# [Results are paginated][1].
|
|
200
|
+
#
|
|
201
|
+
# Use this endpoint to see your latest spans.
|
|
202
|
+
# This endpoint is rate limited to `300` requests per hour.
|
|
203
|
+
#
|
|
204
|
+
# [1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api
|
|
205
|
+
#
|
|
206
|
+
# @param opts [Hash] the optional parameters
|
|
207
|
+
# @option opts [String] :filter_query Search query following spans syntax.
|
|
208
|
+
# @option opts [String] :filter_from Minimum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).
|
|
209
|
+
# @option opts [String] :filter_to Maximum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).
|
|
210
|
+
# @option opts [SpansSort] :sort Order of spans in results.
|
|
211
|
+
# @option opts [String] :page_cursor List following results with a cursor provided in the previous query.
|
|
212
|
+
# @option opts [Integer] :page_limit Maximum number of spans in the response.
|
|
213
|
+
# @return [Array<(SpansListResponse, Integer, Hash)>] SpansListResponse data, response status code and response headers
|
|
214
|
+
def list_spans_get_with_http_info(opts = {})
|
|
215
|
+
|
|
216
|
+
if @api_client.config.debugging
|
|
217
|
+
@api_client.config.logger.debug 'Calling API: SpansAPI.list_spans_get ...'
|
|
218
|
+
end
|
|
219
|
+
allowable_values = ['timestamp', '-timestamp']
|
|
220
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
221
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
222
|
+
end
|
|
223
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000
|
|
224
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SpansAPI.list_spans_get, must be smaller than or equal to 1000.'
|
|
225
|
+
end
|
|
226
|
+
# resource path
|
|
227
|
+
local_var_path = '/api/v2/spans/events'
|
|
228
|
+
|
|
229
|
+
# query parameters
|
|
230
|
+
query_params = opts[:query_params] || {}
|
|
231
|
+
query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
|
|
232
|
+
query_params[:'filter[from]'] = opts[:'filter_from'] if !opts[:'filter_from'].nil?
|
|
233
|
+
query_params[:'filter[to]'] = opts[:'filter_to'] if !opts[:'filter_to'].nil?
|
|
234
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
235
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
236
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
237
|
+
|
|
238
|
+
# header parameters
|
|
239
|
+
header_params = opts[:header_params] || {}
|
|
240
|
+
# HTTP header 'Accept' (if needed)
|
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
242
|
+
|
|
243
|
+
# form parameters
|
|
244
|
+
form_params = opts[:form_params] || {}
|
|
245
|
+
|
|
246
|
+
# http body (model)
|
|
247
|
+
post_body = opts[:debug_body]
|
|
248
|
+
|
|
249
|
+
# return_type
|
|
250
|
+
return_type = opts[:debug_return_type] || 'SpansListResponse'
|
|
251
|
+
|
|
252
|
+
# auth_names
|
|
253
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
254
|
+
|
|
255
|
+
new_options = opts.merge(
|
|
256
|
+
:operation => :list_spans_get,
|
|
257
|
+
:header_params => header_params,
|
|
258
|
+
:query_params => query_params,
|
|
259
|
+
:form_params => form_params,
|
|
260
|
+
:body => post_body,
|
|
261
|
+
:auth_names => auth_names,
|
|
262
|
+
:return_type => return_type,
|
|
263
|
+
:api_version => "V2"
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug "API called: SpansAPI#list_spans_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
|
+
end
|
|
270
|
+
return data, status_code, headers
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Get a list of spans.
|
|
274
|
+
#
|
|
275
|
+
# Provide a paginated version of {#list_spans_get}, returning all items.
|
|
276
|
+
#
|
|
277
|
+
# To use it you need to use a block: list_spans_get_with_pagination { |item| p item }
|
|
278
|
+
#
|
|
279
|
+
# @yield [Span] Paginated items
|
|
280
|
+
def list_spans_get_with_pagination(opts = {})
|
|
281
|
+
api_version = "V2"
|
|
282
|
+
page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
|
|
283
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
|
|
284
|
+
while true do
|
|
285
|
+
response = list_spans_get(opts)
|
|
286
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
287
|
+
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
288
|
+
break
|
|
289
|
+
end
|
|
290
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_cursor", Integer, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|
|
@@ -201,7 +201,7 @@ module DatadogAPIClient::V2
|
|
|
201
201
|
return_type = opts[:debug_return_type] || 'SpansMetricResponse'
|
|
202
202
|
|
|
203
203
|
# auth_names
|
|
204
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
204
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
205
205
|
|
|
206
206
|
new_options = opts.merge(
|
|
207
207
|
:operation => :get_spans_metric,
|
|
@@ -261,7 +261,7 @@ module DatadogAPIClient::V2
|
|
|
261
261
|
return_type = opts[:debug_return_type] || 'SpansMetricsResponse'
|
|
262
262
|
|
|
263
263
|
# auth_names
|
|
264
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
264
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
265
265
|
|
|
266
266
|
new_options = opts.merge(
|
|
267
267
|
:operation => :list_spans_metrics,
|
|
@@ -782,6 +782,71 @@ module DatadogAPIClient::V2
|
|
|
782
782
|
return data, status_code, headers
|
|
783
783
|
end
|
|
784
784
|
|
|
785
|
+
# Get user memberships.
|
|
786
|
+
#
|
|
787
|
+
# @see #get_user_memberships_with_http_info
|
|
788
|
+
def get_user_memberships(user_uuid, opts = {})
|
|
789
|
+
data, _status_code, _headers = get_user_memberships_with_http_info(user_uuid, opts)
|
|
790
|
+
data
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
# Get user memberships.
|
|
794
|
+
#
|
|
795
|
+
# Get a list of memberships for a user
|
|
796
|
+
#
|
|
797
|
+
# @param user_uuid [String] None
|
|
798
|
+
# @param opts [Hash] the optional parameters
|
|
799
|
+
# @return [Array<(UserTeamsResponse, Integer, Hash)>] UserTeamsResponse data, response status code and response headers
|
|
800
|
+
def get_user_memberships_with_http_info(user_uuid, opts = {})
|
|
801
|
+
|
|
802
|
+
if @api_client.config.debugging
|
|
803
|
+
@api_client.config.logger.debug 'Calling API: TeamsAPI.get_user_memberships ...'
|
|
804
|
+
end
|
|
805
|
+
# verify the required parameter 'user_uuid' is set
|
|
806
|
+
if @api_client.config.client_side_validation && user_uuid.nil?
|
|
807
|
+
fail ArgumentError, "Missing the required parameter 'user_uuid' when calling TeamsAPI.get_user_memberships"
|
|
808
|
+
end
|
|
809
|
+
# resource path
|
|
810
|
+
local_var_path = '/api/v2/users/{user_uuid}/memberships'.sub('{user_uuid}', CGI.escape(user_uuid.to_s).gsub('%2F', '/'))
|
|
811
|
+
|
|
812
|
+
# query parameters
|
|
813
|
+
query_params = opts[:query_params] || {}
|
|
814
|
+
|
|
815
|
+
# header parameters
|
|
816
|
+
header_params = opts[:header_params] || {}
|
|
817
|
+
# HTTP header 'Accept' (if needed)
|
|
818
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
819
|
+
|
|
820
|
+
# form parameters
|
|
821
|
+
form_params = opts[:form_params] || {}
|
|
822
|
+
|
|
823
|
+
# http body (model)
|
|
824
|
+
post_body = opts[:debug_body]
|
|
825
|
+
|
|
826
|
+
# return_type
|
|
827
|
+
return_type = opts[:debug_return_type] || 'UserTeamsResponse'
|
|
828
|
+
|
|
829
|
+
# auth_names
|
|
830
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
831
|
+
|
|
832
|
+
new_options = opts.merge(
|
|
833
|
+
:operation => :get_user_memberships,
|
|
834
|
+
:header_params => header_params,
|
|
835
|
+
:query_params => query_params,
|
|
836
|
+
:form_params => form_params,
|
|
837
|
+
:body => post_body,
|
|
838
|
+
:auth_names => auth_names,
|
|
839
|
+
:return_type => return_type,
|
|
840
|
+
:api_version => "V2"
|
|
841
|
+
)
|
|
842
|
+
|
|
843
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
844
|
+
if @api_client.config.debugging
|
|
845
|
+
@api_client.config.logger.debug "API called: TeamsAPI#get_user_memberships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
846
|
+
end
|
|
847
|
+
return data, status_code, headers
|
|
848
|
+
end
|
|
849
|
+
|
|
785
850
|
# Get all teams.
|
|
786
851
|
#
|
|
787
852
|
# @see #list_teams_with_http_info
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Name of the application key.
|
|
25
25
|
attr_reader :name
|
|
26
26
|
|
|
27
|
-
# Array of scopes to grant the application key.
|
|
27
|
+
# Array of scopes to grant the application key.
|
|
28
28
|
attr_accessor :scopes
|
|
29
29
|
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Name of the application key.
|
|
25
25
|
attr_accessor :name
|
|
26
26
|
|
|
27
|
-
# Array of scopes to grant the application key.
|
|
27
|
+
# Array of scopes to grant the application key.
|
|
28
28
|
attr_accessor :scopes
|
|
29
29
|
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# JSON object of attributes from Audit Logs events.
|
|
25
25
|
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
+
# Message of the event.
|
|
28
|
+
attr_accessor :message
|
|
29
|
+
|
|
27
30
|
# Name of the application or service generating Audit Logs events.
|
|
28
31
|
# This name is used to correlate Audit Logs to APM, so make sure you specify the same
|
|
29
32
|
# value when you use both products.
|
|
@@ -40,6 +43,7 @@ module DatadogAPIClient::V2
|
|
|
40
43
|
def self.attribute_map
|
|
41
44
|
{
|
|
42
45
|
:'attributes' => :'attributes',
|
|
46
|
+
:'message' => :'message',
|
|
43
47
|
:'service' => :'service',
|
|
44
48
|
:'tags' => :'tags',
|
|
45
49
|
:'timestamp' => :'timestamp'
|
|
@@ -51,6 +55,7 @@ module DatadogAPIClient::V2
|
|
|
51
55
|
def self.openapi_types
|
|
52
56
|
{
|
|
53
57
|
:'attributes' => :'Hash<String, Object>',
|
|
58
|
+
:'message' => :'String',
|
|
54
59
|
:'service' => :'String',
|
|
55
60
|
:'tags' => :'Array<String>',
|
|
56
61
|
:'timestamp' => :'Time'
|
|
@@ -77,6 +82,10 @@ module DatadogAPIClient::V2
|
|
|
77
82
|
self.attributes = attributes[:'attributes']
|
|
78
83
|
end
|
|
79
84
|
|
|
85
|
+
if attributes.key?(:'message')
|
|
86
|
+
self.message = attributes[:'message']
|
|
87
|
+
end
|
|
88
|
+
|
|
80
89
|
if attributes.key?(:'service')
|
|
81
90
|
self.service = attributes[:'service']
|
|
82
91
|
end
|
|
@@ -99,6 +108,7 @@ module DatadogAPIClient::V2
|
|
|
99
108
|
return true if self.equal?(o)
|
|
100
109
|
self.class == o.class &&
|
|
101
110
|
attributes == o.attributes &&
|
|
111
|
+
message == o.message &&
|
|
102
112
|
service == o.service &&
|
|
103
113
|
tags == o.tags &&
|
|
104
114
|
timestamp == o.timestamp
|
|
@@ -108,7 +118,7 @@ module DatadogAPIClient::V2
|
|
|
108
118
|
# @return [Integer] Hash code
|
|
109
119
|
# @!visibility private
|
|
110
120
|
def hash
|
|
111
|
-
[attributes, service, tags, timestamp].hash
|
|
121
|
+
[attributes, message, service, tags, timestamp].hash
|
|
112
122
|
end
|
|
113
123
|
end
|
|
114
124
|
end
|
|
@@ -21,28 +21,22 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class CIAppEventAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# JSON object of attributes from CI Visibility events.
|
|
24
|
+
# JSON object of attributes from CI Visibility test events.
|
|
25
25
|
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
-
# The name of the application or service generating CI Visibility events.
|
|
28
|
-
# It is used to switch from CI Visibility to APM, so make sure you define the same
|
|
29
|
-
# value when you use both products.
|
|
30
|
-
attr_accessor :service
|
|
31
|
-
|
|
32
27
|
# Array of tags associated with your event.
|
|
33
28
|
attr_accessor :tags
|
|
34
29
|
|
|
35
|
-
#
|
|
36
|
-
attr_accessor :
|
|
30
|
+
# Test run level.
|
|
31
|
+
attr_accessor :test_level
|
|
37
32
|
|
|
38
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
34
|
# @!visibility private
|
|
40
35
|
def self.attribute_map
|
|
41
36
|
{
|
|
42
37
|
:'attributes' => :'attributes',
|
|
43
|
-
:'service' => :'service',
|
|
44
38
|
:'tags' => :'tags',
|
|
45
|
-
:'
|
|
39
|
+
:'test_level' => :'test_level'
|
|
46
40
|
}
|
|
47
41
|
end
|
|
48
42
|
|
|
@@ -51,9 +45,8 @@ module DatadogAPIClient::V2
|
|
|
51
45
|
def self.openapi_types
|
|
52
46
|
{
|
|
53
47
|
:'attributes' => :'Hash<String, Object>',
|
|
54
|
-
:'service' => :'String',
|
|
55
48
|
:'tags' => :'Array<String>',
|
|
56
|
-
:'
|
|
49
|
+
:'test_level' => :'CIAppTestLevel'
|
|
57
50
|
}
|
|
58
51
|
end
|
|
59
52
|
|
|
@@ -77,18 +70,14 @@ module DatadogAPIClient::V2
|
|
|
77
70
|
self.attributes = attributes[:'attributes']
|
|
78
71
|
end
|
|
79
72
|
|
|
80
|
-
if attributes.key?(:'service')
|
|
81
|
-
self.service = attributes[:'service']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
73
|
if attributes.key?(:'tags')
|
|
85
74
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
86
75
|
self.tags = value
|
|
87
76
|
end
|
|
88
77
|
end
|
|
89
78
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
79
|
+
if attributes.key?(:'test_level')
|
|
80
|
+
self.test_level = attributes[:'test_level']
|
|
92
81
|
end
|
|
93
82
|
end
|
|
94
83
|
|
|
@@ -99,16 +88,15 @@ module DatadogAPIClient::V2
|
|
|
99
88
|
return true if self.equal?(o)
|
|
100
89
|
self.class == o.class &&
|
|
101
90
|
attributes == o.attributes &&
|
|
102
|
-
service == o.service &&
|
|
103
91
|
tags == o.tags &&
|
|
104
|
-
|
|
92
|
+
test_level == o.test_level
|
|
105
93
|
end
|
|
106
94
|
|
|
107
95
|
# Calculates hash code according to all attributes.
|
|
108
96
|
# @return [Integer] Hash code
|
|
109
97
|
# @!visibility private
|
|
110
98
|
def hash
|
|
111
|
-
[attributes,
|
|
99
|
+
[attributes, tags, test_level].hash
|
|
112
100
|
end
|
|
113
101
|
end
|
|
114
102
|
end
|