Class: DatadogAPIClient::V1::MonitorUpdateRequest

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/monitor_update_request.rb

Overview

Object describing a monitor update request.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



83
84
85
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 83

def additional_properties
  @additional_properties
end

#assets ⇒ Object

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).



25
26
27
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 25

def assets
  @assets
end

#created ⇒ Object

Timestamp of the monitor creation.



28
29
30
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 28

def created
  @created
end

#creator ⇒ Object

Object describing the creator of the shared element.



31
32
33
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 31

def creator
  @creator
end

#deleted ⇒ Object

Whether or not the monitor is deleted. (Always null)



34
35
36
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 34

def deleted
  @deleted
end

#draft_status ⇒ Object

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications. published: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled.



42
43
44
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 42

def draft_status
  @draft_status
end

#id ⇒ Object

ID of this monitor.



45
46
47
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 45

def id
  @id
end

#message ⇒ Object

A message to include with notifications for this monitor.



48
49
50
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 48

def message
  @message
end

#modified ⇒ Object

Last timestamp when the monitor was edited.



51
52
53
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 51

def modified
  @modified
end

#multi ⇒ Object

Whether or not the monitor is broken down on different groups.



54
55
56
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 54

def multi
  @multi
end

#name ⇒ Object

The monitor name.



57
58
59
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 57

def name
  @name
end

#options ⇒ Object

List of options associated with your monitor.



60
61
62
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 60

def options
  @options
end

#overall_state ⇒ Object

The different states your monitor can be in.



63
64
65
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 63

def overall_state
  @overall_state
end

#priority ⇒ Object

Integer from 1 (high) to 5 (low) indicating alert severity.



66
67
68
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 66

def priority
  @priority
end

#query ⇒ Object

The monitor query.



69
70
71
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 69

def query
  @query
end

#restricted_roles ⇒ Object

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.



72
73
74
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 72

def restricted_roles
  @restricted_roles
end

#state ⇒ Object

Wrapper object with the different monitor states.



75
76
77
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 75

def state
  @state
end

#tags ⇒ Object

Tags associated to your monitor.



78
79
80
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 78

def tags
  @tags
end

#type ⇒ Object

The type of the monitor. For more information about type, see the monitor options docs.



81
82
83
# File 'lib/datadog_api_client/v1/models/monitor_update_request.rb', line 81

def type
  @type
end