Reference documentation and code samples for the Recommender V1 Client class Recommendation.
A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc
Generated from protobuf message google.cloud.recommender.v1.Recommendation
Namespace
Google \ Cloud \ Recommender \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Name of recommendation.
↳ description
string
Free-form human readable summary in English. The maximum length is 500 characters.
↳ recommender_subtype
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"
↳ last_refresh_time
Google\Protobuf\Timestamp
Last time this recommendation was refreshed by the system that created it in the first place.
↳ primary_impact
Google\Cloud\Recommender\V1\Impact
The primary impact that this recommendation can have while trying to optimize for one category.
↳ additional_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.
↳ priority
int
Recommendation's priority.
↳ content
Google\Cloud\Recommender\V1\RecommendationContent
Content of the recommendation describing recommended changes to resources.
↳ state_info
Google\Cloud\Recommender\V1\RecommendationStateInfo
Information for state. Contains state and metadata.
↳ etag
string
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
↳ associated_insights
array< Google\Cloud\Recommender\V1\Recommendation\InsightReference
>
Insights that led to this recommendation.
↳ xor_group_id
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.
getName
Name of recommendation.
string
setName
Name of recommendation.
var
string
$this
getDescription
Free-form human readable summary in English. The maximum length is 500 characters.
string
setDescription
Free-form human readable summary in English. The maximum length is 500 characters.
var
string
$this
getRecommenderSubtype
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"
string
setRecommenderSubtype
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"
var
string
$this
getLastRefreshTime
Last time this recommendation was refreshed by the system that created it in the first place.
hasLastRefreshTime
clearLastRefreshTime
setLastRefreshTime
Last time this recommendation was refreshed by the system that created it in the first place.
$this
getPrimaryImpact
The primary impact that this recommendation can have while trying to optimize for one category.
hasPrimaryImpact
clearPrimaryImpact
setPrimaryImpact
The primary impact that this recommendation can have while trying to optimize for one category.
$this
getAdditionalImpact
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.
setAdditionalImpact
Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.
$this
getPriority
Recommendation's priority.
int
setPriority
Recommendation's priority.
var
int
$this
getContent
Content of the recommendation describing recommended changes to resources.
hasContent
clearContent
setContent
Content of the recommendation describing recommended changes to resources.
$this
getStateInfo
Information for state. Contains state and metadata.
hasStateInfo
clearStateInfo
setStateInfo
Information for state. Contains state and metadata.
$this
getEtag
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
string
setEtag
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
var
string
$this
getAssociatedInsights
Insights that led to this recommendation.
setAssociatedInsights
Insights that led to this recommendation.
$this
getXorGroupId
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
setXorGroupId
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.
var
string
$this