pub struct DBMVDocument {
pub api_version: String,
pub kind: String,
pub system: String,
pub description: Option<String>,
pub metric_views: Vec<DBMVMetricView>,
}Expand description
DBMV Document — wrapper envelope for multiple metric views
Uses camelCase for the envelope fields to match SDK conventions. One document per system, containing multiple metric view definitions.
Fields§
§api_version: StringAPI version of the DBMV format (e.g., “v1.0.0”)
kind: StringDocument kind — always “MetricViews”
system: StringSystem name this document belongs to
description: Option<String>Optional description of the metric views collection
metric_views: Vec<DBMVMetricView>Metric view definitions
Implementations§
Source§impl DBMVDocument
impl DBMVDocument
Sourcepub fn add_metric_view(&mut self, view: DBMVMetricView)
pub fn add_metric_view(&mut self, view: DBMVMetricView)
Add a metric view to the document
Sourcepub fn get_metric_view(&self, name: &str) -> Option<&DBMVMetricView>
pub fn get_metric_view(&self, name: &str) -> Option<&DBMVMetricView>
Get a metric view by name
Trait Implementations§
Source§impl Clone for DBMVDocument
impl Clone for DBMVDocument
Source§fn clone(&self) -> DBMVDocument
fn clone(&self) -> DBMVDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DBMVDocument
impl Debug for DBMVDocument
Source§impl Default for DBMVDocument
impl Default for DBMVDocument
Source§impl<'de> Deserialize<'de> for DBMVDocument
impl<'de> Deserialize<'de> for DBMVDocument
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DBMVDocument
impl PartialEq for DBMVDocument
Source§impl Serialize for DBMVDocument
impl Serialize for DBMVDocument
impl StructuralPartialEq for DBMVDocument
Auto Trait Implementations§
impl Freeze for DBMVDocument
impl RefUnwindSafe for DBMVDocument
impl Send for DBMVDocument
impl Sync for DBMVDocument
impl Unpin for DBMVDocument
impl UnsafeUnpin for DBMVDocument
impl UnwindSafe for DBMVDocument
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
Mutably borrows from an owned value. Read more