Skip to content

Commit

Permalink
Regenerate client from commit 23b373b of spec repo (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jan 29, 2021
1 parent 69a01bc commit b4cfcd7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-01-29 12:49:08.865785",
"spec_repo_commit": "bc876ff"
"regenerated": "2021-01-29 22:07:43.241718",
"spec_repo_commit": "23b373b"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-01-29 12:49:21.065278",
"spec_repo_commit": "bc876ff"
"regenerated": "2021-01-29 22:07:55.474327",
"spec_repo_commit": "23b373b"
}
}
}
14 changes: 7 additions & 7 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4002,6 +4002,13 @@ components:
query:
description: The monitor query.
type: string
restricted_roles:
description: A list of role identifiers that can be pulled from the Roles
API. Cannot be used with `locked` option.
items:
description: A role UUID.
type: string
type: array
state:
$ref: '#/components/schemas/MonitorState'
tags:
Expand Down Expand Up @@ -4169,13 +4176,6 @@ components:
\ to `false` for sparse metrics,\notherwise some evaluations are skipped.\
\ Default is false."
type: boolean
restricted_roles:
description: A list of role identifiers that can be pulled from the Roles
API. Cannot be used with `locked`.
items:
description: A role UUID.
type: string
type: array
silenced:
additionalProperties:
description: ID of the downtime applied to the monitor.
Expand Down
2 changes: 2 additions & 0 deletions docs/v1/Monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
| **overall_state** | [**MonitorOverallStates**](MonitorOverallStates.md) | | [optional] |
| **priority** | **Integer** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional] |
| **query** | **String** | The monitor query. | [optional] |
| **restricted_roles** | **Array&lt;String&gt;** | A list of role identifiers that can be pulled from the Roles API. Cannot be used with &#x60;locked&#x60; option. | [optional] |
| **state** | [**MonitorState**](MonitorState.md) | | [optional] |
| **tags** | **Array&lt;String&gt;** | Tags associated to your monitor. | [optional] |
| **type** | [**MonitorType**](MonitorType.md) | | [optional] |
Expand All @@ -38,6 +39,7 @@ instance = DatadogAPIClient::V1::Monitor.new(
overall_state: null,
priority: null,
query: null,
restricted_roles: null,
state: null,
tags: null,
type: null
Expand Down
2 changes: 0 additions & 2 deletions docs/v1/MonitorOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
| **notify_no_data** | **Boolean** | A Boolean indicating whether this monitor notifies when data stops reporting. | [optional][default to false] |
| **renotify_interval** | **Integer** | The number of minutes after the last notification before a monitor re-notifies on the current status. It only re-notifies if it’s not resolved. | [optional] |
| **require_full_window** | **Boolean** | A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. We highly recommend you set this to &#x60;false&#x60; for sparse metrics, otherwise some evaluations are skipped. Default is false. | [optional] |
| **restricted_roles** | **Array&lt;String&gt;** | A list of role identifiers that can be pulled from the Roles API. Cannot be used with &#x60;locked&#x60;. | [optional] |
| **silenced** | **Hash&lt;String, Integer&gt;** | Information about the downtime applied to the monitor. | [optional] |
| **synthetics_check_id** | **String** | ID of the corresponding Synthetic check. | [optional] |
| **threshold_windows** | [**MonitorThresholdWindowOptions**](MonitorThresholdWindowOptions.md) | | [optional] |
Expand Down Expand Up @@ -47,7 +46,6 @@ instance = DatadogAPIClient::V1::MonitorOptions.new(
notify_no_data: null,
renotify_interval: null,
require_full_window: null,
restricted_roles: null,
silenced: null,
synthetics_check_id: null,
threshold_windows: null,
Expand Down
14 changes: 13 additions & 1 deletion lib/datadog_api_client/v1/models/monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class Monitor
# The monitor query.
attr_accessor :query

# A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option.
attr_accessor :restricted_roles

attr_accessor :state

# Tags associated to your monitor.
Expand All @@ -74,6 +77,7 @@ def self.attribute_map
:'overall_state' => :'overall_state',
:'priority' => :'priority',
:'query' => :'query',
:'restricted_roles' => :'restricted_roles',
:'state' => :'state',
:'tags' => :'tags',
:'type' => :'type'
Expand All @@ -100,6 +104,7 @@ def self.openapi_types
:'overall_state' => :'MonitorOverallStates',
:'priority' => :'Integer',
:'query' => :'String',
:'restricted_roles' => :'Array<String>',
:'state' => :'MonitorState',
:'tags' => :'Array<String>',
:'type' => :'MonitorType'
Expand Down Expand Up @@ -176,6 +181,12 @@ def initialize(attributes = {})
self.query = attributes[:'query']
end

if attributes.key?(:'restricted_roles')
if (value = attributes[:'restricted_roles']).is_a?(Array)
self.restricted_roles = value
end
end

if attributes.key?(:'state')
self.state = attributes[:'state']
end
Expand Down Expand Up @@ -245,6 +256,7 @@ def ==(o)
overall_state == o.overall_state &&
priority == o.priority &&
query == o.query &&
restricted_roles == o.restricted_roles &&
state == o.state &&
tags == o.tags &&
type == o.type
Expand All @@ -259,7 +271,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, state, tags, type].hash
[created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type].hash
end

# Builds the object from hash
Expand Down
14 changes: 1 addition & 13 deletions lib/datadog_api_client/v1/models/monitor_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ class MonitorOptions
# A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. We highly recommend you set this to `false` for sparse metrics, otherwise some evaluations are skipped. Default is false.
attr_accessor :require_full_window

# A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked`.
attr_accessor :restricted_roles

# Information about the downtime applied to the monitor.
attr_accessor :silenced

Expand Down Expand Up @@ -97,7 +94,6 @@ def self.attribute_map
:'notify_no_data' => :'notify_no_data',
:'renotify_interval' => :'renotify_interval',
:'require_full_window' => :'require_full_window',
:'restricted_roles' => :'restricted_roles',
:'silenced' => :'silenced',
:'synthetics_check_id' => :'synthetics_check_id',
:'threshold_windows' => :'threshold_windows',
Expand Down Expand Up @@ -129,7 +125,6 @@ def self.openapi_types
:'notify_no_data' => :'Boolean',
:'renotify_interval' => :'Integer',
:'require_full_window' => :'Boolean',
:'restricted_roles' => :'Array<String>',
:'silenced' => :'Hash<String, Integer>',
:'synthetics_check_id' => :'String',
:'threshold_windows' => :'MonitorThresholdWindowOptions',
Expand Down Expand Up @@ -243,12 +238,6 @@ def initialize(attributes = {})
self.require_full_window = attributes[:'require_full_window']
end

if attributes.key?(:'restricted_roles')
if (value = attributes[:'restricted_roles']).is_a?(Array)
self.restricted_roles = value
end
end

if attributes.key?(:'silenced')
if (value = attributes[:'silenced']).is_a?(Hash)
self.silenced = value
Expand Down Expand Up @@ -329,7 +318,6 @@ def ==(o)
notify_no_data == o.notify_no_data &&
renotify_interval == o.renotify_interval &&
require_full_window == o.require_full_window &&
restricted_roles == o.restricted_roles &&
silenced == o.silenced &&
synthetics_check_id == o.synthetics_check_id &&
threshold_windows == o.threshold_windows &&
Expand All @@ -346,7 +334,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, include_tags, locked, min_failure_duration, min_location_failed, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, renotify_interval, require_full_window, restricted_roles, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h].hash
[aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, include_tags, locked, min_failure_duration, min_location_failed, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, renotify_interval, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h].hash
end

# Builds the object from hash
Expand Down

0 comments on commit b4cfcd7

Please sign in to comment.