Struct google_api_proto::google::cloud::recommender::v1beta1::Recommendation
source · pub struct Recommendation {
pub name: String,
pub description: String,
pub recommender_subtype: String,
pub last_refresh_time: Option<Timestamp>,
pub primary_impact: Option<Impact>,
pub additional_impact: Vec<Impact>,
pub priority: i32,
pub content: Option<RecommendationContent>,
pub state_info: Option<RecommendationStateInfo>,
pub etag: String,
pub associated_insights: Vec<InsightReference>,
pub xor_group_id: String,
}
Expand description
A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc
Fields§
§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: Option<Timestamp>
Last time this recommendation was refreshed by the system that created it in the first place.
primary_impact: Option<Impact>
The primary impact that this recommendation can have while trying to optimize for one category.
additional_impact: Vec<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: i32
Recommendation’s priority.
content: Option<RecommendationContent>
Content of the recommendation describing recommended changes to resources.
state_info: Option<RecommendationStateInfo>
Information for state. Contains state and metadata.
etag: String
Fingerprint of the Recommendation. Provides optimistic locking when updating states.
associated_insights: Vec<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.
Implementations§
Trait Implementations§
source§impl Clone for Recommendation
impl Clone for Recommendation
source§fn clone(&self) -> Recommendation
fn clone(&self) -> Recommendation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Recommendation
impl Debug for Recommendation
source§impl Default for Recommendation
impl Default for Recommendation
source§impl Message for Recommendation
impl Message for Recommendation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Recommendation
impl PartialEq for Recommendation
source§fn eq(&self, other: &Recommendation) -> bool
fn eq(&self, other: &Recommendation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Recommendation
Auto Trait Implementations§
impl Freeze for Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnwindSafe for Recommendation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request