Struct aws_sdk_xray::model::trace_summary::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for TraceSummary
Implementations
sourceimpl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the request that generated the trace's segments and subsegments.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the request that generated the trace's segments and subsegments.
sourcepub fn duration(self, input: f64) -> Self
pub fn duration(self, input: f64) -> Self
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
sourcepub fn set_duration(self, input: Option<f64>) -> Self
pub fn set_duration(self, input: Option<f64>) -> Self
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
sourcepub fn response_time(self, input: f64) -> Self
pub fn response_time(self, input: f64) -> Self
The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.
sourcepub fn set_response_time(self, input: Option<f64>) -> Self
pub fn set_response_time(self, input: Option<f64>) -> Self
The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.
sourcepub fn set_has_fault(self, input: Option<bool>) -> Self
pub fn set_has_fault(self, input: Option<bool>) -> Self
The root segment document has a 500 series error.
sourcepub fn set_has_error(self, input: Option<bool>) -> Self
pub fn set_has_error(self, input: Option<bool>) -> Self
The root segment document has a 400 series error.
sourcepub fn has_throttle(self, input: bool) -> Self
pub fn has_throttle(self, input: bool) -> Self
One or more of the segment documents has a 429 throttling error.
sourcepub fn set_has_throttle(self, input: Option<bool>) -> Self
pub fn set_has_throttle(self, input: Option<bool>) -> Self
One or more of the segment documents has a 429 throttling error.
sourcepub fn is_partial(self, input: bool) -> Self
pub fn is_partial(self, input: bool) -> Self
One or more of the segment documents is in progress.
sourcepub fn set_is_partial(self, input: Option<bool>) -> Self
pub fn set_is_partial(self, input: Option<bool>) -> Self
One or more of the segment documents is in progress.
sourcepub fn set_http(self, input: Option<Http>) -> Self
pub fn set_http(self, input: Option<Http>) -> Self
Information about the HTTP request served by the trace.
sourcepub fn annotations(
self,
k: impl Into<String>,
v: Vec<ValueWithServiceIds>
) -> Self
pub fn annotations(
self,
k: impl Into<String>,
v: Vec<ValueWithServiceIds>
) -> Self
Adds a key-value pair to annotations
.
To override the contents of this collection use set_annotations
.
Annotations from the trace's segment documents.
sourcepub fn set_annotations(
self,
input: Option<HashMap<String, Vec<ValueWithServiceIds>>>
) -> Self
pub fn set_annotations(
self,
input: Option<HashMap<String, Vec<ValueWithServiceIds>>>
) -> Self
Annotations from the trace's segment documents.
sourcepub fn users(self, input: TraceUser) -> Self
pub fn users(self, input: TraceUser) -> Self
Appends an item to users
.
To override the contents of this collection use set_users
.
Users from the trace's segment documents.
sourcepub fn set_users(self, input: Option<Vec<TraceUser>>) -> Self
pub fn set_users(self, input: Option<Vec<TraceUser>>) -> Self
Users from the trace's segment documents.
sourcepub fn service_ids(self, input: ServiceId) -> Self
pub fn service_ids(self, input: ServiceId) -> Self
Appends an item to service_ids
.
To override the contents of this collection use set_service_ids
.
Service IDs from the trace's segment documents.
sourcepub fn set_service_ids(self, input: Option<Vec<ServiceId>>) -> Self
pub fn set_service_ids(self, input: Option<Vec<ServiceId>>) -> Self
Service IDs from the trace's segment documents.
sourcepub fn resource_ar_ns(self, input: ResourceArnDetail) -> Self
pub fn resource_ar_ns(self, input: ResourceArnDetail) -> Self
Appends an item to resource_ar_ns
.
To override the contents of this collection use set_resource_ar_ns
.
A list of resource ARNs for any resource corresponding to the trace segments.
sourcepub fn set_resource_ar_ns(self, input: Option<Vec<ResourceArnDetail>>) -> Self
pub fn set_resource_ar_ns(self, input: Option<Vec<ResourceArnDetail>>) -> Self
A list of resource ARNs for any resource corresponding to the trace segments.
sourcepub fn instance_ids(self, input: InstanceIdDetail) -> Self
pub fn instance_ids(self, input: InstanceIdDetail) -> Self
Appends an item to instance_ids
.
To override the contents of this collection use set_instance_ids
.
A list of EC2 instance IDs for any instance corresponding to the trace segments.
sourcepub fn set_instance_ids(self, input: Option<Vec<InstanceIdDetail>>) -> Self
pub fn set_instance_ids(self, input: Option<Vec<InstanceIdDetail>>) -> Self
A list of EC2 instance IDs for any instance corresponding to the trace segments.
sourcepub fn availability_zones(self, input: AvailabilityZoneDetail) -> Self
pub fn availability_zones(self, input: AvailabilityZoneDetail) -> Self
Appends an item to availability_zones
.
To override the contents of this collection use set_availability_zones
.
A list of Availability Zones for any zone corresponding to the trace segments.
sourcepub fn set_availability_zones(
self,
input: Option<Vec<AvailabilityZoneDetail>>
) -> Self
pub fn set_availability_zones(
self,
input: Option<Vec<AvailabilityZoneDetail>>
) -> Self
A list of Availability Zones for any zone corresponding to the trace segments.
sourcepub fn entry_point(self, input: ServiceId) -> Self
pub fn entry_point(self, input: ServiceId) -> Self
The root of a trace.
sourcepub fn set_entry_point(self, input: Option<ServiceId>) -> Self
pub fn set_entry_point(self, input: Option<ServiceId>) -> Self
The root of a trace.
sourcepub fn fault_root_causes(self, input: FaultRootCause) -> Self
pub fn fault_root_causes(self, input: FaultRootCause) -> Self
Appends an item to fault_root_causes
.
To override the contents of this collection use set_fault_root_causes
.
A collection of FaultRootCause structures corresponding to the trace segments.
sourcepub fn set_fault_root_causes(self, input: Option<Vec<FaultRootCause>>) -> Self
pub fn set_fault_root_causes(self, input: Option<Vec<FaultRootCause>>) -> Self
A collection of FaultRootCause structures corresponding to the trace segments.
sourcepub fn error_root_causes(self, input: ErrorRootCause) -> Self
pub fn error_root_causes(self, input: ErrorRootCause) -> Self
Appends an item to error_root_causes
.
To override the contents of this collection use set_error_root_causes
.
A collection of ErrorRootCause structures corresponding to the trace segments.
sourcepub fn set_error_root_causes(self, input: Option<Vec<ErrorRootCause>>) -> Self
pub fn set_error_root_causes(self, input: Option<Vec<ErrorRootCause>>) -> Self
A collection of ErrorRootCause structures corresponding to the trace segments.
sourcepub fn response_time_root_causes(self, input: ResponseTimeRootCause) -> Self
pub fn response_time_root_causes(self, input: ResponseTimeRootCause) -> Self
Appends an item to response_time_root_causes
.
To override the contents of this collection use set_response_time_root_causes
.
A collection of ResponseTimeRootCause structures corresponding to the trace segments.
sourcepub fn set_response_time_root_causes(
self,
input: Option<Vec<ResponseTimeRootCause>>
) -> Self
pub fn set_response_time_root_causes(
self,
input: Option<Vec<ResponseTimeRootCause>>
) -> Self
A collection of ResponseTimeRootCause structures corresponding to the trace segments.
sourcepub fn set_revision(self, input: Option<i32>) -> Self
pub fn set_revision(self, input: Option<i32>) -> Self
The revision number of a trace.
sourcepub fn matched_event_time(self, input: DateTime) -> Self
pub fn matched_event_time(self, input: DateTime) -> Self
The matched time stamp of a defined event.
sourcepub fn set_matched_event_time(self, input: Option<DateTime>) -> Self
pub fn set_matched_event_time(self, input: Option<DateTime>) -> Self
The matched time stamp of a defined event.
sourcepub fn build(self) -> TraceSummary
pub fn build(self) -> TraceSummary
Consumes the builder and constructs a TraceSummary
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more