Struct gapi_grpc::google::cloud::recommender::v1beta1::Insight[][src]

pub struct Insight {
    pub name: String,
    pub description: String,
    pub target_resources: Vec<String>,
    pub insight_subtype: String,
    pub content: Option<Struct>,
    pub last_refresh_time: Option<Timestamp>,
    pub observation_period: Option<Duration>,
    pub state_info: Option<InsightStateInfo>,
    pub category: i32,
    pub etag: String,
    pub associated_recommendations: Vec<RecommendationReference>,
}

An insight along with the information used to derive the insight. The insight may have associated recomendations as well.

Fields

name: String

Name of the insight.

description: String

Free-form human readable summary in English. The maximum length is 500 characters.

target_resources: Vec<String>

Fully qualified resource names that this insight is targeting.

insight_subtype: String

Insight subtype. Insight content schema will be stable for a given subtype.

content: Option<Struct>

A struct of custom fields to explain the insight. Example: “grantedPermissionsCount”: “1000”

last_refresh_time: Option<Timestamp>

Timestamp of the latest data used to generate the insight.

observation_period: Option<Duration>

Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period).

state_info: Option<InsightStateInfo>

Information state and metadata.

category: i32

Category being targeted by the insight.

etag: String

Fingerprint of the Insight. Provides optimistic locking when updating states.

associated_recommendations: Vec<RecommendationReference>

Recommendations derived from this insight.

Implementations

impl Insight[src]

pub fn category(&self) -> Category[src]

Returns the enum value of category, or the default if the field is set to an invalid enum value.

pub fn set_category(&mut self, value: Category)[src]

Sets category to the provided enum value.

Trait Implementations

impl Clone for Insight[src]

impl Debug for Insight[src]

impl Default for Insight[src]

impl Message for Insight[src]

impl PartialEq<Insight> for Insight[src]

impl StructuralPartialEq for Insight[src]

Auto Trait Implementations

impl RefUnwindSafe for Insight

impl Send for Insight

impl Sync for Insight

impl Unpin for Insight

impl UnwindSafe for Insight

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]