Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/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.



2833
2834
2835
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2833

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>)


2809
2810
2811
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2809

def 
  @additional_metadata
end

#last_refresh_timeString

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

Returns:

  • (String)


2814
2815
2816
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2814

def last_refresh_time
  @last_refresh_time
end

#recommendation_stateString

Required. Recommendation state Corresponds to the JSON property recommendationState

Returns:

  • (String)


2819
2820
2821
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2819

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)


2825
2826
2827
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2825

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)


2831
2832
2833
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2831

def signal_type
  @signal_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2838
2839
2840
2841
2842
2843
2844
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2838

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