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§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