[][src]Struct google_cloudprofiler2::Deployment

pub struct Deployment {
    pub project_id: Option<String>,
    pub labels: Option<HashMap<String, String>>,
    pub target: Option<String>,
}

Deployment contains the deployment identification information.

This type is not used in any activity, and only used as part of another schema.

Fields

project_id: Option<String>

Project ID is the ID of a cloud project. Validation regex: ^a-z{4,61}[a-z0-9]$.

labels: Option<HashMap<String, String>>

Labels identify the deployment within the user universe and same target. Validation regex for label names: ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$. Value for an individual label must be <= 512 bytes, the total size of all label names and values must be <= 1024 bytes.

Label named "language" can be used to record the programming language of the profiled deployment. The standard choices for the value include "java", "go", "python", "ruby", "nodejs", "php", "dotnet".

For deployments running on Google Cloud Platform, "zone" or "region" label should be present describing the deployment location. An example of a zone is "us-central1-a", an example of a region is "us-central1" or "us-central".

target: Option<String>

Target is the service name used to group related deployments:

  • Service name for GAE Flex / Standard.
  • Cluster and container name for GKE.
  • User-specified string for direct GCE profiling (e.g. Java).
  • Job name for Dataflow. Validation regex: ^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$.

Trait Implementations

impl Part for Deployment[src]

impl Default for Deployment[src]

impl Clone for Deployment[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Deployment[src]

impl Serialize for Deployment[src]

impl<'de> Deserialize<'de> for Deployment[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]