Struct google_servicecontrol1::Operation[][src]

pub struct Operation {
    pub labels: Option<HashMap<String, String>>,
    pub metric_value_sets: Option<Vec<MetricValueSet>>,
    pub importance: Option<String>,
    pub operation_name: Option<String>,
    pub quota_properties: Option<QuotaProperties>,
    pub resource_container: Option<String>,
    pub user_labels: Option<HashMap<String, String>>,
    pub end_time: Option<String>,
    pub log_entries: Option<Vec<LogEntry>>,
    pub start_time: Option<String>,
    pub consumer_id: Option<String>,
    pub resources: Option<Vec<ResourceInfo>>,
    pub operation_id: Option<String>,
}

Represents information regarding an operation.

This type is not used in any activity, and only used as part of another schema.

Fields

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

  • Labels describing monitored resources as defined in the service configuration.
  • Default labels of metric values. When specified, labels defined in the metric value override these default.
  • The following labels defined by Google Cloud Platform:
    • cloud.googleapis.com/location describing the location where the operation happened,
    • servicecontrol.googleapis.com/user_agent describing the user agent of the API request,
    • servicecontrol.googleapis.com/service_agent describing the service used to handle the API request (e.g. ESP),
    • servicecontrol.googleapis.com/platform describing the platform where the API is served, such as App Engine, Compute Engine, or Kubernetes Engine.

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.

DO NOT USE. This is an experimental field.

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

Represents the properties needed for quota check. Applicable only if this operation is for a quota check request. If this is not specified, no quota check will be performed.

DO NOT USE. This field is deprecated, use "resources" field instead. The resource name of the parent of a resource in the resource hierarchy.

This can be in one of the following formats: - “projects/<project-id or project-number>” - “folders/<folder-id>” - “organizations/<organization-id>”

User defined labels for the resource that this operation is associated with. Only a combination of 1000 user labels per consumer project are allowed.

End time of the operation. Required when the operation is used in ServiceController.Report, but optional when the operation is used in ServiceController.Check.

Represents information to be logged.

Required. Start time of the operation.

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.

This can be in one of the following formats: project:<project_id>, project_number:<project_number>, api_key:<api_key>.

The resources that are involved in the operation. The maximum supported number of entries in this field is 100.

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.

Trait Implementations

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

impl Debug for Operation
[src]

Formats the value using the given formatter. Read more

impl Part for Operation
[src]

Auto Trait Implementations

impl Send for Operation

impl Sync for Operation