Struct aws_sdk_rust::aws::common::common::Operation [] [src]

pub struct Operation {
    pub request: String,
    pub endpoint: String,
    pub method: String,
    pub success: bool,
    pub code: u16,
    pub payload_size: u64,
    pub start_time: Option<DateTime<UTC>>,
    pub end_time: Option<DateTime<UTC>>,
    pub duration: Option<Duration>,
    pub object: String,
}

Allows for duration tracking of operations. You should not track time of this app running but of each operation and then the summation of the durations plus latency etc. The endpoint etc are Strings instead of Url so it easy to Clone.

Fields

Time of operation execution Request (endpoint + path)

Endpoint URL

GET, PUT, DELETE...

If the operation succeeded or not

HTTP return code

Size of payload

System time of beginning of actual operation (not time spent on condition logic, etc)

System time of end of actual operation (not time spent on condition logic, etc)

Duration of operation

Object Name

Trait Implementations

impl Debug for Operation
[src]

Formats the value using the given formatter.

impl Default for Operation
[src]

Returns the "default value" for a type. Read more

impl Clone for Operation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more