Class: Google::Apis::RedisV1::DatabaseResourceRecommendationSignalData
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::DatabaseResourceRecommendationSignalData
- 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
-
#additional_metadata ⇒ Hash<String,Object>
Optional.
-
#last_refresh_time ⇒ String
Required.
-
#recommendation_state ⇒ String
Required.
-
#recommender ⇒ String
Required.
-
#recommender_id ⇒ String
Required.
-
#recommender_subtype ⇒ String
Required.
-
#resource_name ⇒ String
Required.
-
#signal_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseResourceRecommendationSignalData
constructor
A new instance of DatabaseResourceRecommendationSignalData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseResourceRecommendationSignalData
Returns a new instance of DatabaseResourceRecommendationSignalData.
1121 1122 1123 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1121 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_metadata ⇒ Hash<String,Object>
Optional. Any other additional metadata specific to recommendation
Corresponds to the JSON property additionalMetadata
1072 1073 1074 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1072 def @additional_metadata end |
#last_refresh_time ⇒ String
Required. last time recommendationw as refreshed
Corresponds to the JSON property lastRefreshTime
1077 1078 1079 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1077 def last_refresh_time @last_refresh_time end |
#recommendation_state ⇒ String
Required. Recommendation state
Corresponds to the JSON property recommendationState
1082 1083 1084 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1082 def recommendation_state @recommendation_state end |
#recommender ⇒ String
Required. Name of recommendation. Examples: organizations/1234/locations/us-
central1/recommenders/google.cloudsql.instance.PerformanceRecommender/
recommendations/9876
Corresponds to the JSON property recommender
1089 1090 1091 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1089 def recommender @recommender end |
#recommender_id ⇒ String
Required. ID of recommender. Examples: "google.cloudsql.instance.
PerformanceRecommender"
Corresponds to the JSON property recommenderId
1095 1096 1097 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1095 def recommender_id @recommender_id end |
#recommender_subtype ⇒ String
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
1107 1108 1109 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1107 def recommender_subtype @recommender_subtype end |
#resource_name ⇒ String
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
1113 1114 1115 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1113 def resource_name @resource_name end |
#signal_type ⇒ String
Required. Type of signal, for example, SIGNAL_TYPE_IDLE
,
SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES
, etc.
Corresponds to the JSON property signalType
1119 1120 1121 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1119 def signal_type @signal_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1126 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 |