Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData

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

Overview

Common model for database resource recommendation signal data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData

Returns a new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.



2674
2675
2676
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2674

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

Instance Attribute Details

#additional_metadataHash<String,Object>

Required. Any other additional metadata Corresponds to the JSON property additionalMetadata

Returns:

  • (Hash<String,Object>)


2650
2651
2652
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2650

def 
  @additional_metadata
end

#last_refresh_timeString

Required. last time recommendationw as refreshed Corresponds to the JSON property lastRefreshTime

Returns:

  • (String)


2655
2656
2657
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2655

def last_refresh_time
  @last_refresh_time
end

#recommendation_stateString

Required. Recommendation state Corresponds to the JSON property recommendationState

Returns:

  • (String)


2660
2661
2662
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2660

def recommendation_state
  @recommendation_state
end

#resource_nameString

Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel Corresponds to the JSON property resourceName

Returns:

  • (String)


2666
2667
2668
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2666

def resource_name
  @resource_name
end

#signal_typeString

Required. Type of signal, for example, SIGNAL_TYPE_IDLE, SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES, etc. Corresponds to the JSON property signalType

Returns:

  • (String)


2672
2673
2674
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2672

def signal_type
  @signal_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2679
2680
2681
2682
2683
2684
2685
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2679

def update!(**args)
  @additional_metadata = args[:additional_metadata] if args.key?(:additional_metadata)
  @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
  @recommendation_state = args[:recommendation_state] if args.key?(:recommendation_state)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @signal_type = args[:signal_type] if args.key?(:signal_type)
end