Class: Google::Apis::DatabasecenterV1beta::SignalTypeGroup

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

Overview

A group of signal types that specifies what the user is interested in. Used by QueryDatabaseResourceGroups API. Example: signal_type_group name = " AVAILABILITY" types = [SIGNAL_TYPE_NO_PROMOTABLE_REPLICA]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SignalTypeGroup

Returns a new instance of SignalTypeGroup.



2360
2361
2362
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2360

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

Instance Attribute Details

#display_nameString

Required. The display name of a signal group. Corresponds to the JSON property displayName

Returns:

  • (String)


2353
2354
2355
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2353

def display_name
  @display_name
end

#signal_typesArray<String>

Optional. List of signal types present in the group. Corresponds to the JSON property signalTypes

Returns:

  • (Array<String>)


2358
2359
2360
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2358

def signal_types
  @signal_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2365
2366
2367
2368
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2365

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @signal_types = args[:signal_types] if args.key?(:signal_types)
end