pub struct IncidentReportConfig {
pub destination_package: Option<String>,
pub destination_class: Option<String>,
pub privacy_level: Option<i32>,
pub skip_incidentd: Option<bool>,
pub skip_dropbox: Option<bool>,
}
Expand description
Android-only. Not for general use. If set, saves the trace into an incident. This field is read by perfetto_cmd, rather than the tracing service. This field must be set when passing the –upload flag to perfetto_cmd.
In this message, either:
- all of |destination_package|, |destination_class| and |privacy_level| must be set.
- |skip_incidentd| must be explicitly set to true.
Fields§
§destination_package: Option<String>
§destination_class: Option<String>
§privacy_level: Option<i32>
Level of filtering in the requested incident. See |Destination| in frameworks/base/core/proto/android/privacy.proto.
skip_incidentd: Option<bool>
If true, then skips saving the trace to incidentd.
This flag is useful in testing (e.g. Perfetto-statsd integration tests) or when we explicitly don’t want traces to go to incidentd even when they usually would (e.g. configs deployed using statsd but only used for inclusion in bugreports using |bugreport_score|).
The motivation for having this flag, instead of just not setting |incident_report_config|, is prevent accidents where |incident_report_config| is omitted by mistake.
skip_dropbox: Option<bool>
If true, do not write the trace into dropbox (i.e. incident only). Otherwise, write to both dropbox and incident. TODO(lalitm): remove this field as we no longer use Dropbox.
Implementations§
Source§impl IncidentReportConfig
impl IncidentReportConfig
Sourcepub fn destination_package(&self) -> &str
pub fn destination_package(&self) -> &str
Returns the value of destination_package
, or the default value if destination_package
is unset.
Sourcepub fn destination_class(&self) -> &str
pub fn destination_class(&self) -> &str
Returns the value of destination_class
, or the default value if destination_class
is unset.
Sourcepub fn privacy_level(&self) -> i32
pub fn privacy_level(&self) -> i32
Returns the value of privacy_level
, or the default value if privacy_level
is unset.
Sourcepub fn skip_dropbox(&self) -> bool
pub fn skip_dropbox(&self) -> bool
Returns the value of skip_dropbox
, or the default value if skip_dropbox
is unset.
Sourcepub fn skip_incidentd(&self) -> bool
pub fn skip_incidentd(&self) -> bool
Returns the value of skip_incidentd
, or the default value if skip_incidentd
is unset.
Trait Implementations§
Source§impl Clone for IncidentReportConfig
impl Clone for IncidentReportConfig
Source§fn clone(&self) -> IncidentReportConfig
fn clone(&self) -> IncidentReportConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IncidentReportConfig
impl Debug for IncidentReportConfig
Source§impl Default for IncidentReportConfig
impl Default for IncidentReportConfig
Source§impl Message for IncidentReportConfig
impl Message for IncidentReportConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.