Class: Google::Apis::RedisV1::DatabaseResourceRecommendationSignalData

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

Overview

Common model for database resource recommendation signal data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseResourceRecommendationSignalData

Returns a new instance of DatabaseResourceRecommendationSignalData.



1063
1064
1065
# File 'lib/google/apis/redis_v1/classes.rb', line 1063

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

Instance Attribute Details

#additional_metadataHash<String,Object>

Optional. Any other additional metadata specific to recommendation Corresponds to the JSON property additionalMetadata

Returns:

  • (Hash<String,Object>)


1014
1015
1016
# File 'lib/google/apis/redis_v1/classes.rb', line 1014

def 
  @additional_metadata
end

#last_refresh_timeString

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

Returns:

  • (String)


1019
1020
1021
# File 'lib/google/apis/redis_v1/classes.rb', line 1019

def last_refresh_time
  @last_refresh_time
end

#recommendation_stateString

Required. Recommendation state Corresponds to the JSON property recommendationState

Returns:

  • (String)


1024
1025
1026
# File 'lib/google/apis/redis_v1/classes.rb', line 1024

def recommendation_state
  @recommendation_state
end

#recommenderString

Required. Name of recommendation. Examples: organizations/1234/locations/us- central1/recommenders/google.cloudsql.instance.PerformanceRecommender/ recommendations/9876 Corresponds to the JSON property recommender

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/redis_v1/classes.rb', line 1031

def recommender
  @recommender
end

#recommender_idString

Required. ID of recommender. Examples: "google.cloudsql.instance. PerformanceRecommender" Corresponds to the JSON property recommenderId

Returns:

  • (String)


1037
1038
1039
# File 'lib/google/apis/redis_v1/classes.rb', line 1037

def recommender_id
  @recommender_id
end

#recommender_subtypeString

Required. Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = "google. cloudsql.instance.PerformanceRecommender", recommender_subtype can be " MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/" POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" Corresponds to the JSON property recommenderSubtype

Returns:

  • (String)


1049
1050
1051
# File 'lib/google/apis/redis_v1/classes.rb', line 1049

def recommender_subtype
  @recommender_subtype
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)


1055
1056
1057
# File 'lib/google/apis/redis_v1/classes.rb', line 1055

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)


1061
1062
1063
# File 'lib/google/apis/redis_v1/classes.rb', line 1061

def signal_type
  @signal_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
# File 'lib/google/apis/redis_v1/classes.rb', line 1068

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)
  @recommender = args[:recommender] if args.key?(:recommender)
  @recommender_id = args[:recommender_id] if args.key?(:recommender_id)
  @recommender_subtype = args[:recommender_subtype] if args.key?(:recommender_subtype)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @signal_type = args[:signal_type] if args.key?(:signal_type)
end