Recommender V1 API - Class Google::Cloud::Recommender::V1::Recommendation (v0.12.0)

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>
Returns
  • (::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>
Parameter
  • 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.
Returns
  • (::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>
Returns

#associated_insights=

def associated_insights=(value) -> ::Array<::Google::Cloud::Recommender::V1::Recommendation::InsightReference>
Parameter
Returns

#content

def content() -> ::Google::Cloud::Recommender::V1::RecommendationContent
Returns

#content=

def content=(value) -> ::Google::Cloud::Recommender::V1::RecommendationContent
Parameter
Returns

#description

def description() -> ::String
Returns
  • (::String) — Free-form human readable summary in English. The maximum length is 500 characters.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Free-form human readable summary in English. The maximum length is 500 characters.
Returns
  • (::String) — Free-form human readable summary in English. The maximum length is 500 characters.

#etag

def etag() -> ::String
Returns
  • (::String) — Fingerprint of the Recommendation. Provides optimistic locking when updating states.

#etag=

def etag=(value) -> ::String
Parameter
  • value (::String) — Fingerprint of the Recommendation. Provides optimistic locking when updating states.
Returns
  • (::String) — Fingerprint of the Recommendation. Provides optimistic locking when updating states.

#last_refresh_time

def last_refresh_time() -> ::Google::Protobuf::Timestamp
Returns

#last_refresh_time=

def last_refresh_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Name of recommendation.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of recommendation.
Returns
  • (::String) — Name of recommendation.

#primary_impact

def primary_impact() -> ::Google::Cloud::Recommender::V1::Impact
Returns

#primary_impact=

def primary_impact=(value) -> ::Google::Cloud::Recommender::V1::Impact
Parameter
Returns

#priority

def priority() -> ::Google::Cloud::Recommender::V1::Recommendation::Priority
Returns

#priority=

def priority=(value) -> ::Google::Cloud::Recommender::V1::Recommendation::Priority
Parameter
Returns

#recommender_subtype

def recommender_subtype() -> ::String
Returns
  • (::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 or primary_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
Parameter
  • 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 or primary_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"

Returns
  • (::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 or primary_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
Returns

#state_info=

def state_info=(value) -> ::Google::Cloud::Recommender::V1::RecommendationStateInfo
Parameter
Returns

#xor_group_id

def xor_group_id() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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.