Struct google_logging2::api::SavedQuery
source · pub struct SavedQuery {
pub create_time: Option<DateTime<Utc>>,
pub description: Option<String>,
pub display_name: Option<String>,
pub logging_query: Option<LoggingQuery>,
pub name: Option<String>,
pub ops_analytics_query: Option<OpsAnalyticsQuery>,
pub update_time: Option<DateTime<Utc>>,
pub visibility: Option<String>,
}Expand description
Describes a query that has been saved by a user.
§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).
- locations saved queries create billing accounts (request|response)
- locations saved queries create folders (request|response)
- locations saved queries create organizations (request|response)
- locations saved queries create projects (request|response)
Fields§
§create_time: Option<DateTime<Utc>>Output only. The timestamp when the saved query was created.
description: Option<String>Optional. A human readable description of the saved query.
display_name: Option<String>Required. The user specified title for the SavedQuery.
logging_query: Option<LoggingQuery>Logging query that can be executed in Logs Explorer or via Logging API.
name: Option<String>Output only. Resource name of the saved query.In the format: “projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]” For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn’t provide a QUERY_ID, the system will generate an alphanumeric ID.
ops_analytics_query: Option<OpsAnalyticsQuery>Analytics query that can be executed in Log Analytics.
update_time: Option<DateTime<Utc>>Output only. The timestamp when the saved query was last updated.
visibility: Option<String>Required. The visibility status of this query, which determines its ownership.
Trait Implementations§
source§impl Clone for SavedQuery
impl Clone for SavedQuery
source§fn clone(&self) -> SavedQuery
fn clone(&self) -> SavedQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SavedQuery
impl Debug for SavedQuery
source§impl Default for SavedQuery
impl Default for SavedQuery
source§fn default() -> SavedQuery
fn default() -> SavedQuery
source§impl<'de> Deserialize<'de> for SavedQuery
impl<'de> Deserialize<'de> for SavedQuery
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for SavedQuery
impl Serialize for SavedQuery
impl RequestValue for SavedQuery
impl ResponseResult for SavedQuery
Auto Trait Implementations§
impl Freeze for SavedQuery
impl RefUnwindSafe for SavedQuery
impl Send for SavedQuery
impl Sync for SavedQuery
impl Unpin for SavedQuery
impl UnwindSafe for SavedQuery
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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