Struct gapi_grpc::google::devtools::cloudprofiler::v2::Profile[][src]

pub struct Profile {
    pub name: String,
    pub profile_type: i32,
    pub deployment: Option<Deployment>,
    pub duration: Option<Duration>,
    pub profile_bytes: Vec<u8>,
    pub labels: HashMap<String, String>,
}

Profile resource.

Fields

name: String

Output only. Opaque, server-assigned, unique ID for this profile.

profile_type: i32

Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.

deployment: Option<Deployment>

Deployment this profile corresponds to.

duration: Option<Duration>

Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can’t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).

profile_bytes: Vec<u8>

Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.

labels: HashMap<String, String>

Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.

Implementations

impl Profile[src]

pub fn profile_type(&self) -> ProfileType[src]

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

pub fn set_profile_type(&mut self, value: ProfileType)[src]

Sets profile_type to the provided enum value.

Trait Implementations

impl Clone for Profile[src]

impl Debug for Profile[src]

impl Default for Profile[src]

impl Message for Profile[src]

impl PartialEq<Profile> for Profile[src]

impl StructuralPartialEq for Profile[src]

Auto Trait Implementations

impl RefUnwindSafe for Profile

impl Send for Profile

impl Sync for Profile

impl Unpin for Profile

impl UnwindSafe for Profile

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]