Struct grafana_plugin_sdk::data::Metadata[][src]

pub struct Metadata {
    pub path: Option<String>,
    pub path_separator: Option<String>,
    pub custom: Option<Map<String, Value>>,
    pub stats: Option<Vec<QueryStat>>,
    pub notices: Option<Vec<Notice>>,
    pub channel: Option<Channel>,
    pub preferred_visualisation: Option<VisType>,
    pub executed_query_string: Option<String>,
}
Expand description

Metadata about a Frame.

Fields

path: Option<String>

A browsable path on the datasource.

path_separator: Option<String>

Defines the separator pattern to decode a hierarchy. The default separator is ‘/’.

custom: Option<Map<String, Value>>

Custom datasource specific values.

stats: Option<Vec<QueryStat>>

Query result statistics.

notices: Option<Vec<Notice>>

Additional information about the data in the frame that Grafana can display in the UI.

channel: Option<Channel>

Path to a stream in Grafana Live that has real-time updates for this data.

preferred_visualisation: Option<VisType>

The preferred visualisation option when used in Grafana’s Explore mode.

executed_query_string: Option<String>

The raw query sent to the underlying system after all macros and templating have been applied.

This will be shown in the query inspector if present.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more