Struct gapi_grpc::google::api::servicecontrol::v1::Operation[][src]

pub struct Operation {
    pub operation_id: String,
    pub operation_name: String,
    pub consumer_id: String,
    pub start_time: Option<Timestamp>,
    pub end_time: Option<Timestamp>,
    pub labels: HashMap<String, String>,
    pub metric_value_sets: Vec<MetricValueSet>,
    pub log_entries: Vec<LogEntry>,
    pub importance: i32,
    pub extensions: Vec<Any>,
}

Represents information regarding an operation.

Fields

operation_id: String

Identity of the operation. This must be unique within the scope of the service that generated the operation. If the service calls Check() and Report() on the same operation, the two calls should carry the same id.

UUID version 4 is recommended, though not required. In scenarios where an operation is computed from existing information and an idempotent id is desirable for deduplication purpose, UUID version 5 is recommended. See RFC 4122 for details.

operation_name: String

Fully qualified name of the operation. Reserved for future use.

consumer_id: String

Identity of the consumer who is using the service. This field should be filled in for the operations initiated by a consumer, but not for service-initiated operations that are not related to a specific consumer.

start_time: Option<Timestamp>

Required. Start time of the operation.

end_time: Option<Timestamp>

End time of the operation. Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check].

labels: HashMap<String, String>

Labels describing the operation. Only the following labels are allowed:

metric_value_sets: Vec<MetricValueSet>

Represents information about this operation. Each MetricValueSet corresponds to a metric defined in the service configuration. The data type used in the MetricValueSet must agree with the data type specified in the metric definition.

Within a single operation, it is not allowed to have more than one MetricValue instances that have the same metric names and identical label value combinations. If a request has such duplicated MetricValue instances, the entire request is rejected with an invalid argument error.

log_entries: Vec<LogEntry>

Represents information to be logged.

importance: i32

DO NOT USE. This is an experimental field.

extensions: Vec<Any>

Unimplemented.

Implementations

impl Operation[src]

pub fn importance(&self) -> Importance[src]

Returns the enum value of importance, or the default if the field is set to an invalid enum value.

pub fn set_importance(&mut self, value: Importance)[src]

Sets importance to the provided enum value.

Trait Implementations

impl Clone for Operation[src]

impl Debug for Operation[src]

impl Default for Operation[src]

impl Message for Operation[src]

impl PartialEq<Operation> for Operation[src]

impl StructuralPartialEq for Operation[src]

Auto Trait Implementations

impl RefUnwindSafe for Operation

impl Send for Operation

impl Sync for Operation

impl Unpin for Operation

impl UnwindSafe for Operation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]