Recommendation(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc
Attributes | |
---|---|
Name | Description |
name |
str
Name of recommendation. |
description |
str
Free-form human readable summary in English. The maximum length is 500 characters. |
recommender_subtype |
str
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".
|
last_refresh_time |
google.protobuf.timestamp_pb2.Timestamp
Last time this recommendation was refreshed by the system that created it in the first place. |
primary_impact |
google.cloud.recommender_v1.types.Impact
The primary impact that this recommendation can have while trying to optimize for one category. |
additional_impact |
MutableSequence[google.cloud.recommender_v1.types.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. |
priority |
google.cloud.recommender_v1.types.Recommendation.Priority
Recommendation's priority. |
content |
google.cloud.recommender_v1.types.RecommendationContent
Content of the recommendation describing recommended changes to resources. |
state_info |
google.cloud.recommender_v1.types.RecommendationStateInfo
Information for state. Contains state and metadata. |
etag |
str
Fingerprint of the Recommendation. Provides optimistic locking when updating states. |
associated_insights |
MutableSequence[google.cloud.recommender_v1.types.Recommendation.InsightReference]
Insights that led to this recommendation. |
xor_group_id |
str
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. |
Classes
InsightReference
InsightReference(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Reference to an associated insight.
Priority
Priority(value)
Recommendation priority levels.
Values: PRIORITY_UNSPECIFIED (0): Recommendation has unspecified priority. P4 (1): Recommendation has P4 priority (lowest priority). P3 (2): Recommendation has P3 priority (second lowest priority). P2 (3): Recommendation has P2 priority (second highest priority). P1 (4): Recommendation has P1 priority (highest priority).