#[non_exhaustive]pub struct RuntimeInfo {
pub endpoints: HashMap<String, String>,
pub output_uri: String,
pub diagnostic_output_uri: String,
pub approximate_usage: Option<UsageMetrics>,
pub current_usage: Option<UsageSnapshot>,
/* private fields */
}Expand description
Runtime information about workload execution.
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.endpoints: HashMap<String, String>Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.
output_uri: StringOutput only. A URI pointing to the location of the stdout and stderr of the workload.
diagnostic_output_uri: StringOutput only. A URI pointing to the location of the diagnostics tarball.
approximate_usage: Option<UsageMetrics>Output only. Approximate workload resource usage, calculated when the workload completes (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the [Dataproc Serverless release notes] (https://cloud.google.com/dataproc-serverless/docs/release-notes) for announcements, changes, fixes and other Dataproc developments).
current_usage: Option<UsageSnapshot>Output only. Snapshot of current workload resource usage.
Implementations§
Source§impl RuntimeInfo
impl RuntimeInfo
Sourcepub fn set_endpoints<T, K, V>(self, v: T) -> Self
pub fn set_endpoints<T, K, V>(self, v: T) -> Self
Sourcepub fn set_output_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_output_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_diagnostic_output_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_diagnostic_output_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of diagnostic_output_uri.
§Example
let x = RuntimeInfo::new().set_diagnostic_output_uri("example");Sourcepub fn set_approximate_usage<T>(self, v: T) -> Selfwhere
T: Into<UsageMetrics>,
pub fn set_approximate_usage<T>(self, v: T) -> Selfwhere
T: Into<UsageMetrics>,
Sets the value of approximate_usage.
§Example
use google_cloud_dataproc_v1::model::UsageMetrics;
let x = RuntimeInfo::new().set_approximate_usage(UsageMetrics::default()/* use setters */);Sourcepub fn set_or_clear_approximate_usage<T>(self, v: Option<T>) -> Selfwhere
T: Into<UsageMetrics>,
pub fn set_or_clear_approximate_usage<T>(self, v: Option<T>) -> Selfwhere
T: Into<UsageMetrics>,
Sets or clears the value of approximate_usage.
§Example
use google_cloud_dataproc_v1::model::UsageMetrics;
let x = RuntimeInfo::new().set_or_clear_approximate_usage(Some(UsageMetrics::default()/* use setters */));
let x = RuntimeInfo::new().set_or_clear_approximate_usage(None::<UsageMetrics>);Sourcepub fn set_current_usage<T>(self, v: T) -> Selfwhere
T: Into<UsageSnapshot>,
pub fn set_current_usage<T>(self, v: T) -> Selfwhere
T: Into<UsageSnapshot>,
Sets the value of current_usage.
§Example
use google_cloud_dataproc_v1::model::UsageSnapshot;
let x = RuntimeInfo::new().set_current_usage(UsageSnapshot::default()/* use setters */);Sourcepub fn set_or_clear_current_usage<T>(self, v: Option<T>) -> Selfwhere
T: Into<UsageSnapshot>,
pub fn set_or_clear_current_usage<T>(self, v: Option<T>) -> Selfwhere
T: Into<UsageSnapshot>,
Sets or clears the value of current_usage.
§Example
use google_cloud_dataproc_v1::model::UsageSnapshot;
let x = RuntimeInfo::new().set_or_clear_current_usage(Some(UsageSnapshot::default()/* use setters */));
let x = RuntimeInfo::new().set_or_clear_current_usage(None::<UsageSnapshot>);Trait Implementations§
Source§impl Clone for RuntimeInfo
impl Clone for RuntimeInfo
Source§fn clone(&self) -> RuntimeInfo
fn clone(&self) -> RuntimeInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeInfo
impl Debug for RuntimeInfo
Source§impl Default for RuntimeInfo
impl Default for RuntimeInfo
Source§fn default() -> RuntimeInfo
fn default() -> RuntimeInfo
Source§impl Message for RuntimeInfo
impl Message for RuntimeInfo
Source§impl PartialEq for RuntimeInfo
impl PartialEq for RuntimeInfo
impl StructuralPartialEq for RuntimeInfo
Auto Trait Implementations§
impl Freeze for RuntimeInfo
impl RefUnwindSafe for RuntimeInfo
impl Send for RuntimeInfo
impl Sync for RuntimeInfo
impl Unpin for RuntimeInfo
impl UnsafeUnpin for RuntimeInfo
impl UnwindSafe for RuntimeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request