Skip to main content

InspectorQuery

Struct InspectorQuery 

Source
pub struct InspectorQuery {
Show 19 fields pub name: Option<String>, pub args: Option<Vec<Value>>, pub got: bool, pub ttl: Ttl, pub inactivated_at: Option<f64>, pub row_count: f64, pub deleted: bool, pub id: String, pub client_id: String, pub metrics: Metrics, pub client_zql: Option<String>, pub server_zql: Option<String>, pub hydrate_client: Option<f64>, pub hydrate_server: Option<f64>, pub hydrate_total: Option<f64>, pub update_client_p50: Option<f64>, pub update_client_p95: Option<f64>, pub update_server_p50: Option<f64>, pub update_server_p95: Option<f64>,
}
Expand description

A query as the server and the client know it (Query in inspector/query.ts): one row of the server’s queries answer, with the client’s metrics merged in.

Fields§

§name: Option<String>

The named query’s name; None for an unnamed one.

§args: Option<Vec<Value>>

The named query’s arguments; None for an unnamed one.

§got: bool

Whether the server has synced the query’s rows.

§ttl: Ttl

The query’s TTL, normalized.

§inactivated_at: Option<f64>

When the query became inactive, in ms since 1970; None while active.

§row_count: f64

How many rows the query synced.

§deleted: bool

Whether the server deleted the query.

§id: String

The query’s ID, its hash.

§client_id: String

The client that wants it.

§metrics: Metrics

The client’s and the server’s metrics of it.

§client_zql: Option<String>

The query as this client built it, as ZQL; None when this client doesn’t know it.

§server_zql: Option<String>

The query the server runs, as ZQL.

§hydrate_client: Option<f64>

How long the client took to hydrate it, in ms.

§hydrate_server: Option<f64>

How long the server took to hydrate it, in ms.

§hydrate_total: Option<f64>

How long it took from materializing to the server’s rows, in ms.

§update_client_p50: Option<f64>

The median client update, in ms.

§update_client_p95: Option<f64>

The 95th percentile client update, in ms.

§update_server_p50: Option<f64>

The median server update, in ms.

§update_server_p95: Option<f64>

The 95th percentile server update, in ms.

Trait Implementations§

Source§

impl Clone for InspectorQuery

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InspectorQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for InspectorQuery

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InspectorQuery

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.