Class: DatadogAPIClient::V1::AzureAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/azure_account.rb

Overview

Datadog-Azure integrations configured for your organization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AzureAccount

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/datadog_api_client/v1/models/azure_account.rb', line 95

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccount` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AzureAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'automute')
    self.automute = attributes[:'automute']
  end

  if attributes.key?(:'client_id')
    self.client_id = attributes[:'client_id']
  end

  if attributes.key?(:'client_secret')
    self.client_secret = attributes[:'client_secret']
  end

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

  if attributes.key?(:'host_filters')
    self.host_filters = attributes[:'host_filters']
  end

  if attributes.key?(:'new_client_id')
    self.new_client_id = attributes[:'new_client_id']
  end

  if attributes.key?(:'new_tenant_name')
    self.new_tenant_name = attributes[:'new_tenant_name']
  end

  if attributes.key?(:'tenant_name')
    self.tenant_name = attributes[:'tenant_name']
  end
end

Instance Attribute Details

#automuteObject

Silence monitors for expected Azure VM shutdowns.



27
28
29
# File 'lib/datadog_api_client/v1/models/azure_account.rb', line 27

def automute
  @automute
end

#client_idObject

Your Azure web application ID.



30
31
32
# File 'lib/datadog_api_client/v1/models/azure_account.rb', line 30

def client_id
  @client_id
end

#client_secretObject

Your Azure web application secret key.



33
34
35
# File 'lib/datadog_api_client/v1/models/azure_account.rb', line 33

def client_secret
  @client_secret
end

#errorsObject

Errors in your configuration.



36
37
38
# File 'lib/datadog_api_client/v1/models/azure_account.rb', line 36

def errors
  @errors
end

#host_filtersObject

Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog.



39
40
41
# File 'lib/datadog_api_client/v1/models/azure_account.rb', line 39

def host_filters
  @host_filters
end

#new_client_idObject

Your New Azure web application ID.



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

def new_client_id
  @new_client_id
end

#new_tenant_nameObject

Your New Azure Active Directory ID.



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

def new_tenant_name
  @new_tenant_name
end

#tenant_nameObject

Your Azure Active Directory ID.



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

def tenant_name
  @tenant_name
end