pub struct ReportedTelemetry {
pub data: String,
pub id: Option<i64>,
pub signal: String,
}Expand description
One OTLP batch from the environment.
JSON schema
{
"description": "One OTLP batch from the environment.",
"type": "object",
"required": [
"data",
"signal"
],
"properties": {
"data": {
"description": "OTLP protobuf, base64.",
"type": "string"
},
"id": {
"description": "The site's sequence number for the batch. The manager keeps the\nhighest one it has passed on and skips any it already has, so a\nreport sent again doesn't duplicate telemetry.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"signal": {
"description": "`logs`, `metrics` or `traces`.",
"type": "string"
}
}
}Fields§
§data: StringOTLP protobuf, base64.
id: Option<i64>The site’s sequence number for the batch. The manager keeps the highest one it has passed on and skips any it already has, so a report sent again doesn’t duplicate telemetry.
signal: Stringlogs, metrics or traces.
Implementations§
Source§impl ReportedTelemetry
impl ReportedTelemetry
pub fn builder() -> ReportedTelemetry
Trait Implementations§
Source§impl Clone for ReportedTelemetry
impl Clone for ReportedTelemetry
Source§impl Debug for ReportedTelemetry
impl Debug for ReportedTelemetry
Source§impl<'de> Deserialize<'de> for ReportedTelemetry
impl<'de> Deserialize<'de> for ReportedTelemetry
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 From<&ReportedTelemetry> for ReportedTelemetry
impl From<&ReportedTelemetry> for ReportedTelemetry
Source§fn from(value: &ReportedTelemetry) -> Self
fn from(value: &ReportedTelemetry) -> Self
Converts to this type from the input type.
Source§impl From<ReportedTelemetry> for ReportedTelemetry
impl From<ReportedTelemetry> for ReportedTelemetry
Source§fn from(value: ReportedTelemetry) -> Self
fn from(value: ReportedTelemetry) -> Self
Converts to this type from the input type.
Source§impl Serialize for ReportedTelemetry
impl Serialize for ReportedTelemetry
Source§impl TryFrom<ReportedTelemetry> for ReportedTelemetry
impl TryFrom<ReportedTelemetry> for ReportedTelemetry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ReportedTelemetry) -> Result<Self, ConversionError>
fn try_from(value: ReportedTelemetry) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ReportedTelemetry
impl Freeze for ReportedTelemetry
impl Move for ReportedTelemetry
impl RefUnwindSafe for ReportedTelemetry
impl Send for ReportedTelemetry
impl Sync for ReportedTelemetry
impl Unpin for ReportedTelemetry
impl UnsafeUnpin for ReportedTelemetry
impl UnwindSafe for ReportedTelemetry
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
Mutably borrows from an owned value. Read more