Struct google_cloudprofiler2::api::Profile[][src]

pub struct Profile {
    pub deployment: Option<Deployment>,
    pub duration: Option<String>,
    pub labels: Option<HashMap<String, String>>,
    pub name: Option<String>,
    pub profile_bytes: Option<String>,
    pub profile_type: Option<String>,
}
Expand description

Profile resource.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

deployment: Option<Deployment>

Deployment this profile corresponds to.

duration: Option<String>

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).

labels: Option<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.

name: Option<String>

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

profile_bytes: Option<String>

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

profile_type: Option<String>

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.