#[non_exhaustive]pub struct DiagnoseClusterRequest {
pub project_id: String,
pub region: String,
pub cluster_name: String,
pub tarball_gcs_dir: String,
pub tarball_access: TarballAccess,
pub diagnosis_interval: Option<Interval>,
pub jobs: Vec<String>,
pub yarn_application_ids: Vec<String>,
/* private fields */
}Expand description
A request to collect cluster diagnostic information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringRequired. The ID of the Google Cloud Platform project that the cluster belongs to.
region: StringRequired. The Dataproc region in which to handle the request.
cluster_name: StringRequired. The cluster name.
tarball_gcs_dir: StringOptional. (Optional) The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster’s staging bucket will be used.
tarball_access: TarballAccessOptional. (Optional) The access type to the diagnostic tarball. If not specified, falls back to default access of the bucket
diagnosis_interval: Option<Interval>Optional. Time interval in which diagnosis should be carried out on the cluster.
jobs: Vec<String>Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}
yarn_application_ids: Vec<String>Optional. Specifies a list of yarn applications on which diagnosis is to be performed.
Implementations§
Source§impl DiagnoseClusterRequest
impl DiagnoseClusterRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_tarball_gcs_dir<T: Into<String>>(self, v: T) -> Self
pub fn set_tarball_gcs_dir<T: Into<String>>(self, v: T) -> Self
Sets the value of tarball_gcs_dir.
Sourcepub fn set_tarball_access<T: Into<TarballAccess>>(self, v: T) -> Self
pub fn set_tarball_access<T: Into<TarballAccess>>(self, v: T) -> Self
Sets the value of tarball_access.
Sourcepub fn set_diagnosis_interval<T>(self, v: T) -> Self
pub fn set_diagnosis_interval<T>(self, v: T) -> Self
Sets the value of diagnosis_interval.
Sourcepub fn set_or_clear_diagnosis_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_diagnosis_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of diagnosis_interval.
Sourcepub fn set_yarn_application_ids<T, V>(self, v: T) -> Self
pub fn set_yarn_application_ids<T, V>(self, v: T) -> Self
Sets the value of yarn_application_ids.
Trait Implementations§
Source§impl Clone for DiagnoseClusterRequest
impl Clone for DiagnoseClusterRequest
Source§fn clone(&self) -> DiagnoseClusterRequest
fn clone(&self) -> DiagnoseClusterRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more