Struct glean_core::metrics::RemoteSettingsConfig
source · pub struct RemoteSettingsConfig {
pub metrics_enabled: HashMap<String, bool>,
pub pings_enabled: HashMap<String, bool>,
pub event_threshold: Option<u32>,
}
Expand description
Represents a list of metrics and an associated boolean property indicating if the metric is enabled from 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.
event_threshold: Option<u32>
The threshold of events that will be buffered before an events ping is collected and submitted. It overrides the value configured at initialization time.
Implementations§
Trait Implementations§
source§impl Clone for RemoteSettingsConfig
impl Clone for RemoteSettingsConfig
source§fn clone(&self) -> RemoteSettingsConfig
fn clone(&self) -> RemoteSettingsConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
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§
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more