Class: Google::Apis::MonitoringV3::NotificationChannelDescriptor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb

Overview

A description of a notification channel. The descriptor includes the properties of the channel and the set of labels or fields that must be specified to configure channels of a given type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NotificationChannelDescriptor

Returns a new instance of NotificationChannelDescriptor



2153
2154
2155
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2153

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation. Corresponds to the JSON property description

Returns:

  • (String)


2119
2120
2121
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2119

def description
  @description
end

#display_nameString

A human-readable name for the notification channel type. This form of the name is suitable for a user interface. Corresponds to the JSON property displayName

Returns:

  • (String)


2125
2126
2127
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2125

def display_name
  @display_name
end

#labelsArray<Google::Apis::MonitoringV3::LabelDescriptor>

The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated. Corresponds to the JSON property labels



2132
2133
2134
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2132

def labels
  @labels
end

#nameString

The full REST resource name for this descriptor. The syntax is: projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE] In the above, [TYPE] is the value of the type field. Corresponds to the JSON property name

Returns:

  • (String)


2139
2140
2141
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2139

def name
  @name
end

#supported_tiersArray<String>

The tiers that support this notification channel; the project service tier must be one of the supported_tiers. Corresponds to the JSON property supportedTiers

Returns:

  • (Array<String>)


2145
2146
2147
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2145

def supported_tiers
  @supported_tiers
end

#typeString

The type of notification channel, such as "email", "sms", etc. Notification channel types are globally unique. Corresponds to the JSON property type

Returns:

  • (String)


2151
2152
2153
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2151

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2158
2159
2160
2161
2162
2163
2164
2165
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2158

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @supported_tiers = args[:supported_tiers] if args.key?(:supported_tiers)
  @type = args[:type] if args.key?(:type)
end