#[repr(i8)]pub enum DataCategory {
Show 24 variants
Default = 0,
Error = 1,
Transaction = 2,
Security = 3,
Attachment = 4,
Session = 5,
Profile = 6,
Replay = 7,
TransactionProcessed = 8,
TransactionIndexed = 9,
Monitor = 10,
ProfileIndexed = 11,
Span = 12,
MonitorSeat = 13,
UserReportV2 = 14,
MetricBucket = 15,
SpanIndexed = 16,
ProfileDuration = 17,
ProfileChunk = 18,
MetricSecond = 19,
ReplayVideo = 20,
Uptime = 21,
AttachmentItem = 22,
Unknown = -1,
}
Expand description
Classifies the type of data that is being ingested.
Variants§
Default = 0
Reserved and unused.
Error = 1
Error events and Events with an event_type
not explicitly listed below.
Transaction = 2
Transaction events.
Security = 3
Events with an event type of csp
, hpkp
, expectct
and expectstaple
.
Attachment = 4
An attachment. Quantity is the size of the attachment in bytes.
Session = 5
Session updates. Quantity is the number of updates in the batch.
Profile = 6
Profile
This is the category for processed profiles (all profiles, whether or not we store them).
Replay = 7
Session Replays
TransactionProcessed = 8
DEPRECATED: A transaction for which metrics were extracted.
This category is now obsolete because the Transaction
variant will represent
processed transactions from now on.
TransactionIndexed = 9
Indexed transaction events.
This is the category for transaction payloads that were accepted and stored in full. In
contrast, transaction
only guarantees that metrics have been accepted for the transaction.
Monitor = 10
Monitor check-ins.
ProfileIndexed = 11
Indexed Profile
This is the category for indexed profiles that will be stored later.
Span = 12
Span
This is the category for spans from which we extracted metrics from.
MonitorSeat = 13
Monitor Seat
Represents a monitor job that has scheduled monitor checkins. The seats are not ingested but we define it here to prevent clashing values since this data category enumeration is also used outside of Relay via the Python package.
UserReportV2 = 14
User Feedback
Represents a User Feedback processed. Currently standardized on name UserReportV2 to avoid clashing with the old UserReport. TODO(jferg): Rename this to UserFeedback once old UserReport is deprecated.
MetricBucket = 15
Metric buckets.
SpanIndexed = 16
SpanIndexed
This is the category for spans we store in full.
ProfileDuration = 17
ProfileDuration
This data category is used to count the number of milliseconds we have per indexed profile chunk. We will then bill per second.
ProfileChunk = 18
ProfileChunk
This is a count of profile chunks received. It will not be used for billing but will be useful for customers to track what’s being dropped.
MetricSecond = 19
MetricSecond
Reserved by billing to summarize the bucketed product of metric volume and metric cardinality. Defined here so as not to clash with future categories.
ReplayVideo = 20
Replay Video
This is the data category for Session Replays produced via a video recording.
Uptime = 21
This is the data category for Uptime monitors.
AttachmentItem = 22
Counts the number of individual attachments, as opposed to the number of bytes in an attachment.
Unknown = -1
Any other data category not known by this Relay.
Implementations§
source§impl DataCategory
impl DataCategory
sourcepub fn from_name(string: &str) -> Self
pub fn from_name(string: &str) -> Self
Returns the data category corresponding to the given name.
sourcepub fn is_error(self) -> bool
pub fn is_error(self) -> bool
Returns true if the DataCategory refers to an error (i.e an error event).
sourcepub fn index_category(self) -> Option<Self>
pub fn index_category(self) -> Option<Self>
Returns a dedicated category for indexing if this data can be converted to metrics.
This returns None
for most data categories.
sourcepub fn is_indexed(self) -> bool
pub fn is_indexed(self) -> bool
Returns true
if this data category is an indexed data category.
Trait Implementations§
source§impl Clone for DataCategory
impl Clone for DataCategory
source§fn clone(&self) -> DataCategory
fn clone(&self) -> DataCategory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataCategory
impl Debug for DataCategory
source§impl<'de> Deserialize<'de> for DataCategory
impl<'de> Deserialize<'de> for DataCategory
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 Display for DataCategory
impl Display for DataCategory
source§impl From<EventType> for DataCategory
impl From<EventType> for DataCategory
source§impl FromStr for DataCategory
impl FromStr for DataCategory
source§impl Hash for DataCategory
impl Hash for DataCategory
source§impl Ord for DataCategory
impl Ord for DataCategory
source§fn cmp(&self, other: &DataCategory) -> Ordering
fn cmp(&self, other: &DataCategory) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for DataCategory
impl PartialEq for DataCategory
source§impl PartialOrd for DataCategory
impl PartialOrd for DataCategory
source§impl Serialize for DataCategory
impl Serialize for DataCategory
impl Copy for DataCategory
impl Eq for DataCategory
impl StructuralPartialEq for DataCategory
Auto Trait Implementations§
impl Freeze for DataCategory
impl RefUnwindSafe for DataCategory
impl Send for DataCategory
impl Sync for DataCategory
impl Unpin for DataCategory
impl UnwindSafe for DataCategory
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)