datadog_api_client 2.14.0 → 2.16.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/schemas/v1/openapi.yaml +808 -143
- data/.generator/schemas/v2/openapi.yaml +1808 -166
- data/.generator/src/generator/openapi.py +3 -1
- data/.generator/src/generator/templates/api.j2 +8 -2
- data/.generator/src/generator/templates/api_client.j2 +19 -1
- data/.generator/src/generator/templates/model_base.j2 +1 -0
- data/CHANGELOG.md +56 -0
- data/examples/v1/dashboards/CreateDashboard_1754992756.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_2278756614.rb +91 -0
- data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
- data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +36 -0
- data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
- data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
- data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
- data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
- data/examples/v1/usage-metering/GetUsageCIApp.rb +4 -1
- data/examples/v1/usage-metering/GetUsageCWS.rb +4 -1
- data/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +1 -1
- data/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb +20 -0
- data/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb +8 -0
- data/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb +8 -0
- data/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb +5 -0
- data/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb +18 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +24 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -8
- data/examples/v2/container-images/ListContainerImages.rb +8 -0
- data/examples/v2/container-images/ListContainerImages_3088586393.rb +11 -0
- data/examples/v2/container-images/ListContainerImages_3974828736.rb +11 -0
- data/examples/v2/downtimes/CancelDowntime.rb +0 -3
- data/examples/v2/downtimes/CreateDowntime.rb +0 -3
- data/examples/v2/downtimes/GetDowntime.rb +0 -3
- data/examples/v2/downtimes/ListDowntimes.rb +0 -3
- data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
- data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +19 -0
- data/examples/v2/powerpack/CreatePowerpack.rb +47 -0
- data/examples/v2/powerpack/DeletePowerpack.rb +8 -0
- data/examples/v2/powerpack/GetPowerpack.rb +8 -0
- data/examples/v2/powerpack/ListPowerpacks.rb +8 -0
- data/examples/v2/powerpack/ListPowerpacks_1173755071.rb +8 -0
- data/examples/v2/powerpack/UpdatePowerpack.rb +50 -0
- data/examples/v2/rum/CreateRUMApplication.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb +5 -7
- data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +7 -1
- data/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb +7 -1
- data/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb +4 -1
- data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +11 -9
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +23 -12
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb +53 -0
- data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
- data/examples/v2/users/ListUsers_4075885358.rb +8 -0
- data/lib/datadog_api_client/api_client.rb +19 -1
- data/lib/datadog_api_client/configuration.rb +1 -7
- data/lib/datadog_api_client/inflector.rb +81 -0
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +23 -20
- data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +21 -0
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +21 -0
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -6
- data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/model_base.rb +1 -0
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -4
- data/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +94 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +82 -0
- data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +100 -0
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.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 +65 -5
- data/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +131 -0
- data/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +94 -0
- data/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +169 -0
- data/lib/datadog_api_client/v1/models/powerpack_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/split_config.rb +181 -0
- data/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +119 -0
- data/lib/datadog_api_client/v1/models/split_dimension.rb +98 -0
- data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +70 -0
- data/lib/datadog_api_client/v1/models/split_graph_viz_size.rb +29 -0
- data/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +191 -0
- data/lib/datadog_api_client/v1/models/split_graph_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/split_sort.rb +108 -0
- data/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +125 -0
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +4 -4
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +8 -8
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +2 -2
- data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +168 -8
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +168 -8
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +168 -8
- data/lib/datadog_api_client/v1/models/widget_definition.rb +8 -6
- data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +423 -0
- data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +5 -11
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/container_images_api.rb +129 -0
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/powerpack_api.rb +383 -0
- data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
- data/lib/datadog_api_client/v2/model_base.rb +1 -0
- data/lib/datadog_api_client/v2/models/apm_retention_filter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image.rb +100 -0
- data/lib/datadog_api_client/v2/models/container_image_attributes.rb +261 -0
- data/lib/datadog_api_client/v2/models/container_image_flavor.rb +120 -0
- data/lib/datadog_api_client/v2/models/container_image_group.rb +110 -0
- data/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +100 -0
- data/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +92 -0
- data/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_image_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/container_image_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_image_meta_page.rb +160 -0
- data/lib/datadog_api_client/v2/models/container_image_meta_page_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +140 -0
- data/lib/datadog_api_client/v2/models/container_images_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/container_images_response_links.rb +130 -0
- data/lib/datadog_api_client/v2/models/data_scalar_column.rb +2 -2
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/group_scalar_column.rb +2 -2
- data/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +114 -0
- data/lib/datadog_api_client/v2/models/powerpack.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpack_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/powerpack_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +108 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +162 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +177 -0
- data/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +177 -0
- data/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +108 -0
- data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpack_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/powerpack_response_links.rb +129 -0
- data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +110 -0
- data/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +150 -0
- data/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +100 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +1 -1
- data/lib/datadog_api_client/v2/models/retention_filter.rb +140 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all.rb +140 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +181 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +181 -0
- data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/retention_filter_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/retention_filter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +140 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/retention_filters_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/scalar_column_type_group.rb +26 -0
- data/lib/datadog_api_client/v2/models/scalar_column_type_number.rb +26 -0
- data/lib/datadog_api_client/v2/models/scalar_meta.rb +8 -0
- data/lib/datadog_api_client/v2/models/service_definition_schema.rb +2 -1
- data/lib/datadog_api_client/v2/models/service_definition_schema_versions.rb +1 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +247 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +129 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +90 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +150 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +108 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie_region.rb +27 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +80 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_version.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +1 -0
- data/lib/datadog_api_client/v2/models/spans_filter.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_filter_create.rb +98 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/run-tests.sh +6 -5
- metadata +114 -9
- data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +0 -8
- data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +0 -8
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +0 -17
- data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey_992091161.rb +0 -11
- data/examples/v2/service-accounts/GetServiceAccountApplicationKey_819075131.rb +0 -11
- data/examples/v2/service-accounts/ListServiceAccountApplicationKeys_1268914341.rb +0 -8
- data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey_768415790.rb +0 -22
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Type of the split graph widget
|
|
21
|
+
class SplitGraphWidgetDefinitionType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
SPLIT_GROUP = "split_group".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Controls the order in which graphs appear in the split.
|
|
21
|
+
class SplitSort
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Defines the metric and aggregation used as the sort value.
|
|
25
|
+
attr_accessor :compute
|
|
26
|
+
|
|
27
|
+
# Widget sorting methods.
|
|
28
|
+
attr_reader :order
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
# @!visibility private
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'compute' => :'compute',
|
|
35
|
+
:'order' => :'order'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'compute' => :'SplitConfigSortCompute',
|
|
44
|
+
:'order' => :'WidgetSort'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitSort` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'compute')
|
|
65
|
+
self.compute = attributes[:'compute']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'order')
|
|
69
|
+
self.order = attributes[:'order']
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Check to see if the all the properties in the model are valid
|
|
74
|
+
# @return true if the model is valid
|
|
75
|
+
# @!visibility private
|
|
76
|
+
def valid?
|
|
77
|
+
return false if @order.nil?
|
|
78
|
+
true
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Custom attribute writer method with validation
|
|
82
|
+
# @param order [Object] Object to be assigned
|
|
83
|
+
# @!visibility private
|
|
84
|
+
def order=(order)
|
|
85
|
+
if order.nil?
|
|
86
|
+
fail ArgumentError, 'invalid value for "order", order cannot be nil.'
|
|
87
|
+
end
|
|
88
|
+
@order = order
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Checks equality by comparing each attribute.
|
|
92
|
+
# @param o [Object] Object to be compared
|
|
93
|
+
# @!visibility private
|
|
94
|
+
def ==(o)
|
|
95
|
+
return true if self.equal?(o)
|
|
96
|
+
self.class == o.class &&
|
|
97
|
+
compute == o.compute &&
|
|
98
|
+
order == o.order
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Integer] Hash code
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def hash
|
|
105
|
+
[compute, order].hash
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# The split graph list contains a graph for each value of the split dimension.
|
|
21
|
+
class SplitVectorEntryItem
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The tag key.
|
|
25
|
+
attr_reader :tag_key
|
|
26
|
+
|
|
27
|
+
# The tag values.
|
|
28
|
+
attr_reader :tag_values
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
# @!visibility private
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'tag_key' => :'tag_key',
|
|
35
|
+
:'tag_values' => :'tag_values'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'tag_key' => :'String',
|
|
44
|
+
:'tag_values' => :'Array<String>'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SplitVectorEntryItem` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SplitVectorEntryItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'tag_key')
|
|
65
|
+
self.tag_key = attributes[:'tag_key']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'tag_values')
|
|
69
|
+
if (value = attributes[:'tag_values']).is_a?(Array)
|
|
70
|
+
self.tag_values = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Check to see if the all the properties in the model are valid
|
|
76
|
+
# @return true if the model is valid
|
|
77
|
+
# @!visibility private
|
|
78
|
+
def valid?
|
|
79
|
+
return false if @tag_key.nil?
|
|
80
|
+
return false if @tag_key.to_s.length < 1
|
|
81
|
+
return false if @tag_values.nil?
|
|
82
|
+
true
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Custom attribute writer method with validation
|
|
86
|
+
# @param tag_key [Object] Object to be assigned
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def tag_key=(tag_key)
|
|
89
|
+
if tag_key.nil?
|
|
90
|
+
fail ArgumentError, 'invalid value for "tag_key", tag_key cannot be nil.'
|
|
91
|
+
end
|
|
92
|
+
if tag_key.to_s.length < 1
|
|
93
|
+
fail ArgumentError, 'invalid value for "tag_key", the character length must be great than or equal to 1.'
|
|
94
|
+
end
|
|
95
|
+
@tag_key = tag_key
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Custom attribute writer method with validation
|
|
99
|
+
# @param tag_values [Object] Object to be assigned
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def tag_values=(tag_values)
|
|
102
|
+
if tag_values.nil?
|
|
103
|
+
fail ArgumentError, 'invalid value for "tag_values", tag_values cannot be nil.'
|
|
104
|
+
end
|
|
105
|
+
@tag_values = tag_values
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Checks equality by comparing each attribute.
|
|
109
|
+
# @param o [Object] Object to be compared
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
tag_key == o.tag_key &&
|
|
115
|
+
tag_values == o.tag_values
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[tag_key, tag_values].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -60,6 +60,9 @@ module DatadogAPIClient::V1
|
|
|
60
60
|
# The log query.
|
|
61
61
|
attr_accessor :security_query
|
|
62
62
|
|
|
63
|
+
# Widget style definition.
|
|
64
|
+
attr_accessor :style
|
|
65
|
+
|
|
63
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
67
|
# @!visibility private
|
|
65
68
|
def self.attribute_map
|
|
@@ -76,7 +79,8 @@ module DatadogAPIClient::V1
|
|
|
76
79
|
:'queries' => :'queries',
|
|
77
80
|
:'response_format' => :'response_format',
|
|
78
81
|
:'rum_query' => :'rum_query',
|
|
79
|
-
:'security_query' => :'security_query'
|
|
82
|
+
:'security_query' => :'security_query',
|
|
83
|
+
:'style' => :'style'
|
|
80
84
|
}
|
|
81
85
|
end
|
|
82
86
|
|
|
@@ -96,7 +100,8 @@ module DatadogAPIClient::V1
|
|
|
96
100
|
:'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
|
|
97
101
|
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
98
102
|
:'rum_query' => :'LogQueryDefinition',
|
|
99
|
-
:'security_query' => :'LogQueryDefinition'
|
|
103
|
+
:'security_query' => :'LogQueryDefinition',
|
|
104
|
+
:'style' => :'WidgetStyle'
|
|
100
105
|
}
|
|
101
106
|
end
|
|
102
107
|
|
|
@@ -171,6 +176,10 @@ module DatadogAPIClient::V1
|
|
|
171
176
|
if attributes.key?(:'security_query')
|
|
172
177
|
self.security_query = attributes[:'security_query']
|
|
173
178
|
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'style')
|
|
181
|
+
self.style = attributes[:'style']
|
|
182
|
+
end
|
|
174
183
|
end
|
|
175
184
|
|
|
176
185
|
# Checks equality by comparing each attribute.
|
|
@@ -191,14 +200,15 @@ module DatadogAPIClient::V1
|
|
|
191
200
|
queries == o.queries &&
|
|
192
201
|
response_format == o.response_format &&
|
|
193
202
|
rum_query == o.rum_query &&
|
|
194
|
-
security_query == o.security_query
|
|
203
|
+
security_query == o.security_query &&
|
|
204
|
+
style == o.style
|
|
195
205
|
end
|
|
196
206
|
|
|
197
207
|
# Calculates hash code according to all attributes.
|
|
198
208
|
# @return [Integer] Hash code
|
|
199
209
|
# @!visibility private
|
|
200
210
|
def hash
|
|
201
|
-
[apm_query, audit_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query].hash
|
|
211
|
+
[apm_query, audit_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, style].hash
|
|
202
212
|
end
|
|
203
213
|
end
|
|
204
214
|
end
|
|
@@ -30,6 +30,9 @@ module DatadogAPIClient::V1
|
|
|
30
30
|
# Value used by the operator.
|
|
31
31
|
attr_reader :target
|
|
32
32
|
|
|
33
|
+
# Timings scope for response time assertions.
|
|
34
|
+
attr_accessor :timings_scope
|
|
35
|
+
|
|
33
36
|
# Type of the assertion.
|
|
34
37
|
attr_reader :type
|
|
35
38
|
|
|
@@ -40,6 +43,7 @@ module DatadogAPIClient::V1
|
|
|
40
43
|
:'operator' => :'operator',
|
|
41
44
|
:'property' => :'property',
|
|
42
45
|
:'target' => :'target',
|
|
46
|
+
:'timings_scope' => :'timingsScope',
|
|
43
47
|
:'type' => :'type'
|
|
44
48
|
}
|
|
45
49
|
end
|
|
@@ -51,6 +55,7 @@ module DatadogAPIClient::V1
|
|
|
51
55
|
:'operator' => :'SyntheticsAssertionOperator',
|
|
52
56
|
:'property' => :'String',
|
|
53
57
|
:'target' => :'Object',
|
|
58
|
+
:'timings_scope' => :'SyntheticsAssertionTimingsScope',
|
|
54
59
|
:'type' => :'SyntheticsAssertionType'
|
|
55
60
|
}
|
|
56
61
|
end
|
|
@@ -83,6 +88,10 @@ module DatadogAPIClient::V1
|
|
|
83
88
|
self.target = attributes[:'target']
|
|
84
89
|
end
|
|
85
90
|
|
|
91
|
+
if attributes.key?(:'timings_scope')
|
|
92
|
+
self.timings_scope = attributes[:'timings_scope']
|
|
93
|
+
end
|
|
94
|
+
|
|
86
95
|
if attributes.key?(:'type')
|
|
87
96
|
self.type = attributes[:'type']
|
|
88
97
|
end
|
|
@@ -137,6 +146,7 @@ module DatadogAPIClient::V1
|
|
|
137
146
|
operator == o.operator &&
|
|
138
147
|
property == o.property &&
|
|
139
148
|
target == o.target &&
|
|
149
|
+
timings_scope == o.timings_scope &&
|
|
140
150
|
type == o.type
|
|
141
151
|
end
|
|
142
152
|
|
|
@@ -144,7 +154,7 @@ module DatadogAPIClient::V1
|
|
|
144
154
|
# @return [Integer] Hash code
|
|
145
155
|
# @!visibility private
|
|
146
156
|
def hash
|
|
147
|
-
[operator, property, target, type].hash
|
|
157
|
+
[operator, property, target, timings_scope, type].hash
|
|
148
158
|
end
|
|
149
159
|
end
|
|
150
160
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Timings scope for response time assertions.
|
|
21
|
+
class SyntheticsAssertionTimingsScope
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
ALL = "all".freeze
|
|
25
|
+
WITHOUT_DNS = "withoutDNS".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -63,16 +63,16 @@ module DatadogAPIClient::V1
|
|
|
63
63
|
# The container usage by tag(s).
|
|
64
64
|
attr_accessor :container_usage
|
|
65
65
|
|
|
66
|
-
# The percentage of Cloud Security
|
|
66
|
+
# The percentage of Cloud Security Management Pro container usage by tag(s)
|
|
67
67
|
attr_accessor :cspm_container_percentage
|
|
68
68
|
|
|
69
|
-
# The Cloud Security
|
|
69
|
+
# The Cloud Security Management Pro container usage by tag(s)
|
|
70
70
|
attr_accessor :cspm_container_usage
|
|
71
71
|
|
|
72
|
-
# The percentage of Cloud Security
|
|
72
|
+
# The percentage of Cloud Security Management Pro host usage by tag(s)
|
|
73
73
|
attr_accessor :cspm_host_percentage
|
|
74
74
|
|
|
75
|
-
# The Cloud Security
|
|
75
|
+
# The Cloud Security Management Pro host usage by tag(s)
|
|
76
76
|
attr_accessor :cspm_host_usage
|
|
77
77
|
|
|
78
78
|
# The percentage of custom metrics usage by tag(s).
|
|
@@ -17,29 +17,29 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
|
-
# Cloud Security
|
|
20
|
+
# Cloud Security Management Pro usage for a given organization for a given hour.
|
|
21
21
|
class UsageCloudSecurityPostureManagementHour
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# The number of Cloud Security
|
|
24
|
+
# The number of Cloud Security Management Pro Azure app services hosts during a given hour.
|
|
25
25
|
attr_accessor :aas_host_count
|
|
26
26
|
|
|
27
|
-
# The number of Cloud Security
|
|
27
|
+
# The number of Cloud Security Management Pro AWS hosts during a given hour.
|
|
28
28
|
attr_accessor :aws_host_count
|
|
29
29
|
|
|
30
|
-
# The number of Cloud Security
|
|
30
|
+
# The number of Cloud Security Management Pro Azure hosts during a given hour.
|
|
31
31
|
attr_accessor :azure_host_count
|
|
32
32
|
|
|
33
|
-
# The number of Cloud Security
|
|
33
|
+
# The number of Cloud Security Management Pro hosts during a given hour.
|
|
34
34
|
attr_accessor :compliance_host_count
|
|
35
35
|
|
|
36
|
-
# The total number of Cloud Security
|
|
36
|
+
# The total number of Cloud Security Management Pro containers during a given hour.
|
|
37
37
|
attr_accessor :container_count
|
|
38
38
|
|
|
39
|
-
# The number of Cloud Security
|
|
39
|
+
# The number of Cloud Security Management Pro GCP hosts during a given hour.
|
|
40
40
|
attr_accessor :gcp_host_count
|
|
41
41
|
|
|
42
|
-
# The total number of Cloud Security
|
|
42
|
+
# The total number of Cloud Security Management Pro hosts during a given hour.
|
|
43
43
|
attr_accessor :host_count
|
|
44
44
|
|
|
45
45
|
# The hour for the usage.
|
|
@@ -17,11 +17,11 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
|
-
# The response containing the Cloud Security
|
|
20
|
+
# The response containing the Cloud Security Management Pro usage for each hour for a given organization.
|
|
21
21
|
class UsageCloudSecurityPostureManagementResponse
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# Get hourly usage for Cloud Security
|
|
24
|
+
# Get hourly usage for Cloud Security Management Pro.
|
|
25
25
|
attr_accessor :usage
|
|
26
26
|
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class UsageProfilingHour
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Contains the total number of profiled Azure app services reporting during a given hour.
|
|
25
|
+
attr_accessor :aas_count
|
|
26
|
+
|
|
24
27
|
# Get average number of container agents for that hour.
|
|
25
28
|
attr_accessor :avg_container_agent_count
|
|
26
29
|
|
|
@@ -40,6 +43,7 @@ module DatadogAPIClient::V1
|
|
|
40
43
|
# @!visibility private
|
|
41
44
|
def self.attribute_map
|
|
42
45
|
{
|
|
46
|
+
:'aas_count' => :'aas_count',
|
|
43
47
|
:'avg_container_agent_count' => :'avg_container_agent_count',
|
|
44
48
|
:'host_count' => :'host_count',
|
|
45
49
|
:'hour' => :'hour',
|
|
@@ -52,6 +56,7 @@ module DatadogAPIClient::V1
|
|
|
52
56
|
# @!visibility private
|
|
53
57
|
def self.openapi_types
|
|
54
58
|
{
|
|
59
|
+
:'aas_count' => :'Integer',
|
|
55
60
|
:'avg_container_agent_count' => :'Integer',
|
|
56
61
|
:'host_count' => :'Integer',
|
|
57
62
|
:'hour' => :'Time',
|
|
@@ -64,6 +69,7 @@ module DatadogAPIClient::V1
|
|
|
64
69
|
# @!visibility private
|
|
65
70
|
def self.openapi_nullable
|
|
66
71
|
Set.new([
|
|
72
|
+
:'aas_count',
|
|
67
73
|
:'avg_container_agent_count',
|
|
68
74
|
:'host_count',
|
|
69
75
|
])
|
|
@@ -85,6 +91,10 @@ module DatadogAPIClient::V1
|
|
|
85
91
|
h[k.to_sym] = v
|
|
86
92
|
}
|
|
87
93
|
|
|
94
|
+
if attributes.key?(:'aas_count')
|
|
95
|
+
self.aas_count = attributes[:'aas_count']
|
|
96
|
+
end
|
|
97
|
+
|
|
88
98
|
if attributes.key?(:'avg_container_agent_count')
|
|
89
99
|
self.avg_container_agent_count = attributes[:'avg_container_agent_count']
|
|
90
100
|
end
|
|
@@ -112,6 +122,7 @@ module DatadogAPIClient::V1
|
|
|
112
122
|
def ==(o)
|
|
113
123
|
return true if self.equal?(o)
|
|
114
124
|
self.class == o.class &&
|
|
125
|
+
aas_count == o.aas_count &&
|
|
115
126
|
avg_container_agent_count == o.avg_container_agent_count &&
|
|
116
127
|
host_count == o.host_count &&
|
|
117
128
|
hour == o.hour &&
|
|
@@ -123,7 +134,7 @@ module DatadogAPIClient::V1
|
|
|
123
134
|
# @return [Integer] Hash code
|
|
124
135
|
# @!visibility private
|
|
125
136
|
def hash
|
|
126
|
-
[avg_container_agent_count, host_count, hour, org_name, public_id].hash
|
|
137
|
+
[aas_count, avg_container_agent_count, host_count, hour, org_name, public_id].hash
|
|
127
138
|
end
|
|
128
139
|
end
|
|
129
140
|
end
|