Struct aws_sdk_devicefarm::types::builders::SampleBuilder
source · #[non_exhaustive]pub struct SampleBuilder { /* private fields */ }Expand description
A builder for Sample.
Implementations§
source§impl SampleBuilder
impl SampleBuilder
sourcepub fn type(self, input: SampleType) -> Self
pub fn type(self, input: SampleType) -> Self
The sample's type.
Must be one of the following values:
-
CPU: A CPU sample type. This is expressed as the app processing CPU time (including child processes) as reported by process, as a percentage.
-
MEMORY: A memory usage sample type. This is expressed as the total proportional set size of an app process, in kilobytes.
-
NATIVE_AVG_DRAWTIME
-
NATIVE_FPS
-
NATIVE_FRAMES
-
NATIVE_MAX_DRAWTIME
-
NATIVE_MIN_DRAWTIME
-
OPENGL_AVG_DRAWTIME
-
OPENGL_FPS
-
OPENGL_FRAMES
-
OPENGL_MAX_DRAWTIME
-
OPENGL_MIN_DRAWTIME
-
RX
-
RX_RATE: The total number of bytes per second (TCP and UDP) that are sent, by app process.
-
THREADS: A threads sample type. This is expressed as the total number of threads per app process.
-
TX
-
TX_RATE: The total number of bytes per second (TCP and UDP) that are received, by app process.
sourcepub fn set_type(self, input: Option<SampleType>) -> Self
pub fn set_type(self, input: Option<SampleType>) -> Self
The sample's type.
Must be one of the following values:
-
CPU: A CPU sample type. This is expressed as the app processing CPU time (including child processes) as reported by process, as a percentage.
-
MEMORY: A memory usage sample type. This is expressed as the total proportional set size of an app process, in kilobytes.
-
NATIVE_AVG_DRAWTIME
-
NATIVE_FPS
-
NATIVE_FRAMES
-
NATIVE_MAX_DRAWTIME
-
NATIVE_MIN_DRAWTIME
-
OPENGL_AVG_DRAWTIME
-
OPENGL_FPS
-
OPENGL_FRAMES
-
OPENGL_MAX_DRAWTIME
-
OPENGL_MIN_DRAWTIME
-
RX
-
RX_RATE: The total number of bytes per second (TCP and UDP) that are sent, by app process.
-
THREADS: A threads sample type. This is expressed as the total number of threads per app process.
-
TX
-
TX_RATE: The total number of bytes per second (TCP and UDP) that are received, by app process.
sourcepub fn get_type(&self) -> &Option<SampleType>
pub fn get_type(&self) -> &Option<SampleType>
The sample's type.
Must be one of the following values:
-
CPU: A CPU sample type. This is expressed as the app processing CPU time (including child processes) as reported by process, as a percentage.
-
MEMORY: A memory usage sample type. This is expressed as the total proportional set size of an app process, in kilobytes.
-
NATIVE_AVG_DRAWTIME
-
NATIVE_FPS
-
NATIVE_FRAMES
-
NATIVE_MAX_DRAWTIME
-
NATIVE_MIN_DRAWTIME
-
OPENGL_AVG_DRAWTIME
-
OPENGL_FPS
-
OPENGL_FRAMES
-
OPENGL_MAX_DRAWTIME
-
OPENGL_MIN_DRAWTIME
-
RX
-
RX_RATE: The total number of bytes per second (TCP and UDP) that are sent, by app process.
-
THREADS: A threads sample type. This is expressed as the total number of threads per app process.
-
TX
-
TX_RATE: The total number of bytes per second (TCP and UDP) that are received, by app process.
sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
The presigned Amazon S3 URL that can be used with a GET request to download the sample's file.
sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
The presigned Amazon S3 URL that can be used with a GET request to download the sample's file.
Trait Implementations§
source§impl Clone for SampleBuilder
impl Clone for SampleBuilder
source§fn clone(&self) -> SampleBuilder
fn clone(&self) -> SampleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SampleBuilder
impl Debug for SampleBuilder
source§impl Default for SampleBuilder
impl Default for SampleBuilder
source§fn default() -> SampleBuilder
fn default() -> SampleBuilder
source§impl PartialEq for SampleBuilder
impl PartialEq for SampleBuilder
source§fn eq(&self, other: &SampleBuilder) -> bool
fn eq(&self, other: &SampleBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SampleBuilder
Auto Trait Implementations§
impl Freeze for SampleBuilder
impl RefUnwindSafe for SampleBuilder
impl Send for SampleBuilder
impl Sync for SampleBuilder
impl Unpin for SampleBuilder
impl UnwindSafe for SampleBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more