#[non_exhaustive]pub struct MonitorUserTemplate {
pub created: Option<DateTime<Utc>>,
pub description: Option<Option<String>>,
pub modified: Option<DateTime<Utc>>,
pub monitor_definition: Option<BTreeMap<String, Value>>,
pub tags: Option<Vec<String>>,
pub template_variables: Option<Vec<MonitorUserTemplateTemplateVariablesItems>>,
pub title: Option<String>,
pub version: Option<Option<i64>>,
pub versions: Option<Vec<SimpleMonitorUserTemplate>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
A monitor user template object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created: Option<DateTime<Utc>>
The created timestamp of the template.
description: Option<Option<String>>
A brief description of the monitor user template.
modified: Option<DateTime<Utc>>
The last modified timestamp. When the template version was created.
monitor_definition: Option<BTreeMap<String, Value>>
A valid monitor definition in the same format as the V1 Monitor API.
The definition of MonitorUserTemplateTags
object.
template_variables: Option<Vec<MonitorUserTemplateTemplateVariablesItems>>
The definition of MonitorUserTemplateTemplateVariables
object.
title: Option<String>
The title of the monitor user template.
version: Option<Option<i64>>
The version of the monitor user template.
versions: Option<Vec<SimpleMonitorUserTemplate>>
All versions of the monitor user template.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl MonitorUserTemplate
impl MonitorUserTemplate
pub fn new() -> MonitorUserTemplate
pub fn created(self, value: DateTime<Utc>) -> Self
pub fn description(self, value: Option<String>) -> Self
pub fn modified(self, value: DateTime<Utc>) -> Self
pub fn monitor_definition(self, value: BTreeMap<String, Value>) -> Self
pub fn template_variables( self, value: Vec<MonitorUserTemplateTemplateVariablesItems>, ) -> Self
pub fn title(self, value: String) -> Self
pub fn version(self, value: Option<i64>) -> Self
pub fn versions(self, value: Vec<SimpleMonitorUserTemplate>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for MonitorUserTemplate
impl Clone for MonitorUserTemplate
Source§fn clone(&self) -> MonitorUserTemplate
fn clone(&self) -> MonitorUserTemplate
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 MonitorUserTemplate
impl Debug for MonitorUserTemplate
Source§impl Default for MonitorUserTemplate
impl Default for MonitorUserTemplate
Source§impl<'de> Deserialize<'de> for MonitorUserTemplate
impl<'de> Deserialize<'de> for MonitorUserTemplate
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 MonitorUserTemplate
impl PartialEq for MonitorUserTemplate
Source§impl Serialize for MonitorUserTemplate
impl Serialize for MonitorUserTemplate
impl StructuralPartialEq for MonitorUserTemplate
Auto Trait Implementations§
impl Freeze for MonitorUserTemplate
impl RefUnwindSafe for MonitorUserTemplate
impl Send for MonitorUserTemplate
impl Sync for MonitorUserTemplate
impl Unpin for MonitorUserTemplate
impl UnwindSafe for MonitorUserTemplate
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