Reference documentation and code samples for the Recommender V1 API class Google::Cloud::Recommender::V1::Recommendation.
A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#additional_impact
def additional_impact() -> ::Array<::Google::Cloud::Recommender::V1::Impact>
- (::Array<::Google::Cloud::Recommender::V1::Impact>) — Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.
#additional_impact=
def additional_impact=(value) -> ::Array<::Google::Cloud::Recommender::V1::Impact>
- value (::Array<::Google::Cloud::Recommender::V1::Impact>) — Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.
- (::Array<::Google::Cloud::Recommender::V1::Impact>) — Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.
#associated_insights
def associated_insights() -> ::Array<::Google::Cloud::Recommender::V1::Recommendation::InsightReference>
- (::Array<::Google::Cloud::Recommender::V1::Recommendation::InsightReference>) — Insights that led to this recommendation.
#associated_insights=
def associated_insights=(value) -> ::Array<::Google::Cloud::Recommender::V1::Recommendation::InsightReference>
- value (::Array<::Google::Cloud::Recommender::V1::Recommendation::InsightReference>) — Insights that led to this recommendation.
- (::Array<::Google::Cloud::Recommender::V1::Recommendation::InsightReference>) — Insights that led to this recommendation.
#content
def content() -> ::Google::Cloud::Recommender::V1::RecommendationContent
- (::Google::Cloud::Recommender::V1::RecommendationContent) — Content of the recommendation describing recommended changes to resources.
#content=
def content=(value) -> ::Google::Cloud::Recommender::V1::RecommendationContent
- value (::Google::Cloud::Recommender::V1::RecommendationContent) — Content of the recommendation describing recommended changes to resources.
- (::Google::Cloud::Recommender::V1::RecommendationContent) — Content of the recommendation describing recommended changes to resources.
#description
def description() -> ::String
- (::String) — Free-form human readable summary in English. The maximum length is 500 characters.
#description=
def description=(value) -> ::String
- value (::String) — Free-form human readable summary in English. The maximum length is 500 characters.
- (::String) — Free-form human readable summary in English. The maximum length is 500 characters.
#etag
def etag() -> ::String
- (::String) — Fingerprint of the Recommendation. Provides optimistic locking when updating states.
#etag=
def etag=(value) -> ::String
- value (::String) — Fingerprint of the Recommendation. Provides optimistic locking when updating states.
- (::String) — Fingerprint of the Recommendation. Provides optimistic locking when updating states.
#last_refresh_time
def last_refresh_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Last time this recommendation was refreshed by the system that created it in the first place.
#last_refresh_time=
def last_refresh_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Last time this recommendation was refreshed by the system that created it in the first place.
- (::Google::Protobuf::Timestamp) — Last time this recommendation was refreshed by the system that created it in the first place.
#name
def name() -> ::String
- (::String) — Name of recommendation.
#name=
def name=(value) -> ::String
- value (::String) — Name of recommendation.
- (::String) — Name of recommendation.
#primary_impact
def primary_impact() -> ::Google::Cloud::Recommender::V1::Impact
- (::Google::Cloud::Recommender::V1::Impact) — The primary impact that this recommendation can have while trying to optimize for one category.
#primary_impact=
def primary_impact=(value) -> ::Google::Cloud::Recommender::V1::Impact
- value (::Google::Cloud::Recommender::V1::Impact) — The primary impact that this recommendation can have while trying to optimize for one category.
- (::Google::Cloud::Recommender::V1::Impact) — The primary impact that this recommendation can have while trying to optimize for one category.
#priority
def priority() -> ::Google::Cloud::Recommender::V1::Recommendation::Priority
- (::Google::Cloud::Recommender::V1::Recommendation::Priority) — Recommendation's priority.
#priority=
def priority=(value) -> ::Google::Cloud::Recommender::V1::Recommendation::Priority
- value (::Google::Cloud::Recommender::V1::Recommendation::Priority) — Recommendation's priority.
- (::Google::Cloud::Recommender::V1::Recommendation::Priority) — Recommendation's priority.
#recommender_subtype
def recommender_subtype() -> ::String
-
(::String) — 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
orprimary_impact.category
are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.Examples: For recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
#recommender_subtype=
def recommender_subtype=(value) -> ::String
-
value (::String) — 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
orprimary_impact.category
are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.Examples: For recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
-
(::String) — 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
orprimary_impact.category
are introduced. See the Recommenders section to see a list of subtypes for a given Recommender.Examples: For recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
#state_info
def state_info() -> ::Google::Cloud::Recommender::V1::RecommendationStateInfo
- (::Google::Cloud::Recommender::V1::RecommendationStateInfo) — Information for state. Contains state and metadata.
#state_info=
def state_info=(value) -> ::Google::Cloud::Recommender::V1::RecommendationStateInfo
- value (::Google::Cloud::Recommender::V1::RecommendationStateInfo) — Information for state. Contains state and metadata.
- (::Google::Cloud::Recommender::V1::RecommendationStateInfo) — Information for state. Contains state and metadata.
#xor_group_id
def xor_group_id() -> ::String
- (::String) — Corresponds to a mutually exclusive group ID within a recommender. A non-empty ID indicates that the recommendation belongs to a mutually exclusive group. This means that only one recommendation within the group is suggested to be applied.
#xor_group_id=
def xor_group_id=(value) -> ::String
- value (::String) — Corresponds to a mutually exclusive group ID within a recommender. A non-empty ID indicates that the recommendation belongs to a mutually exclusive group. This means that only one recommendation within the group is suggested to be applied.
- (::String) — Corresponds to a mutually exclusive group ID within a recommender. A non-empty ID indicates that the recommendation belongs to a mutually exclusive group. This means that only one recommendation within the group is suggested to be applied.