pub enum PayloadError {
Show 19 variants
MetricNoPipe {
line: usize,
},
MetricNameValueNoColon {
line: usize,
},
MetricEmptyName {
line: usize,
},
MetricEmptyValue {
line: usize,
},
MetricBadType {
line: usize,
},
MetricUnparseableValue {
line: usize,
},
MetricBadRate {
line: usize,
},
EventNoColon {
line: usize,
},
EventHeaderTooShort {
line: usize,
},
EventNoLengthComma {
line: usize,
},
EventBadTitleLen {
line: usize,
},
EventEmptyTitle {
line: usize,
},
EventBadTextLen {
line: usize,
},
EventLengthOverflow {
line: usize,
},
EventBodyTooShort {
line: usize,
},
ServiceCheckTooFewPipes {
line: usize,
},
ServiceCheckTooShort {
line: usize,
},
ServiceCheckEmptyName {
line: usize,
},
ServiceCheckBadStatus {
line: usize,
},
}Expand description
The first drop rule a serialized DogStatsD payload violates, tagged with the 0-based index of
the offending message among the payload’s \n-split segments. Blank segments are counted in the
index but are never malformed.
One variant per Agent drop rule, across all three message types. The metric T timestamp rule is
intentionally absent. See the note in classify_metric.
Variants§
MetricNoPipe
Metric: the line carries no |.
MetricNameValueNoColon
Metric: field-0 carries no : splitting name from value.
MetricEmptyName
Metric: the name is empty.
MetricEmptyValue
Metric: the value is empty.
MetricBadType
Metric: the type is not byte-exactly one of g c h d s ms.
MetricUnparseableValue
Metric: a non-set value segment fails the Go float parse, or none survives.
MetricBadRate
Metric: an @ sample-rate chunk fails the Go float parse.
EventNoColon
Event: the line carries no : splitting header from body.
EventHeaderTooShort
Event: the header is shorter than the minimal _e{1,0}.
EventNoLengthComma
Event: the header carries no , between the two lengths.
EventBadTitleLen
Event: the title length is not a non-negative integer.
EventEmptyTitle
Event: the title length is zero.
EventBadTextLen
Event: the text length is not a non-negative integer.
EventLengthOverflow
Event: title_len + 1 + text_len overflows.
EventBodyTooShort
Event: the body is shorter than the declared title_len + 1 + text_len.
ServiceCheckTooFewPipes
Service check: fewer than two |.
ServiceCheckTooShort
Service check: shorter than the four-byte _sc| header.
ServiceCheckEmptyName
Service check: the name is empty.
ServiceCheckBadStatus
Service check: the status is not byte-exactly one of 0 1 2 3.
Trait Implementations§
Source§impl Clone for PayloadError
impl Clone for PayloadError
Source§fn clone(&self) -> PayloadError
fn clone(&self) -> PayloadError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PayloadError
impl Debug for PayloadError
Source§impl PartialEq for PayloadError
impl PartialEq for PayloadError
impl Copy for PayloadError
impl Eq for PayloadError
impl StructuralPartialEq for PayloadError
Auto Trait Implementations§
impl Freeze for PayloadError
impl RefUnwindSafe for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Unpin for PayloadError
impl UnwindSafe for PayloadError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.