Struct glean_core::metrics::RemoteSettingsConfig
source · pub struct RemoteSettingsConfig {
pub metrics_enabled: HashMap<String, bool>,
pub pings_enabled: HashMap<String, bool>,
}
Expand description
Represents a list of metrics and an associated boolean property indicating if the metric is enabledfrom the remote-settings configuration store. The expected format of this data is stringified JSON in the following format:
{
"category.metric_name": true
}
Fields§
§metrics_enabled: HashMap<String, bool>
This is a HashMap
consisting of base_identifiers as keys
and bool values representing an override for the disabled
property of the metric, only inverted to reduce confusion.
If a particular metric has a value of true
here, it means
the default of the metric will be overriden and set to the
enabled state.
pings_enabled: HashMap<String, bool>
This is a HashMap
consisting of ping names as keys and
boolean values representing on override for the default
enabled state of the ping of the same name.
Implementations§
Trait Implementations§
source§impl Clone for RemoteSettingsConfig
impl Clone for RemoteSettingsConfig
source§fn clone(&self) -> RemoteSettingsConfig
fn clone(&self) -> RemoteSettingsConfig
Returns a copy 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 RemoteSettingsConfig
impl Debug for RemoteSettingsConfig
source§impl Default for RemoteSettingsConfig
impl Default for RemoteSettingsConfig
source§fn default() -> RemoteSettingsConfig
fn default() -> RemoteSettingsConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RemoteSettingsConfig
impl<'de> Deserialize<'de> for RemoteSettingsConfig
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 Serialize for RemoteSettingsConfig
impl Serialize for RemoteSettingsConfig
Auto Trait Implementations§
impl RefUnwindSafe for RemoteSettingsConfig
impl Send for RemoteSettingsConfig
impl Sync for RemoteSettingsConfig
impl Unpin for RemoteSettingsConfig
impl UnwindSafe for RemoteSettingsConfig
Blanket Implementations§
§impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>