Struct google_logging2::LogMetric
source · pub struct LogMetric {
pub filter: Option<String>,
pub version: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
}Expand description
Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- metrics create projects (request|response)
- metrics update projects (request|response)
- metrics get projects (response)
Fields§
§filter: Option<String>Required. An advanced logs filter which is used to match log entries. Example: “resource.type=gae_app AND severity>=ERROR” The maximum length of the filter is 20000 characters.
version: Option<String>Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter expression. When a value for this field is missing, the default value of V2 should be assumed.
name: Option<String>Required. The client-assigned metric identifier. Examples: “error_count”, “nginx/requests”.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*’,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.The metric identifier in this field must not be URL-encoded (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric identifier appears as the [METRIC_ID] part of a metric_name API parameter, then the metric identifier must be URL-encoded. Example: “projects/my-project/metrics/nginx%2Frequests”.
description: Option<String>Optional. A description of this metric, which is used in documentation.
Trait Implementations§
source§impl Deserialize for LogMetric
impl Deserialize for LogMetric
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
impl RequestValue for LogMetric
impl ResponseResult for LogMetric
Auto Trait Implementations§
impl Freeze for LogMetric
impl RefUnwindSafe for LogMetric
impl Send for LogMetric
impl Sync for LogMetric
impl Unpin for LogMetric
impl UnwindSafe for LogMetric
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> 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