Struct kafka_protocol::messages::get_telemetry_subscriptions_response::GetTelemetrySubscriptionsResponse
source · #[non_exhaustive]pub struct GetTelemetrySubscriptionsResponse {
pub throttle_time_ms: i32,
pub error_code: i16,
pub client_instance_id: Uuid,
pub subscription_id: i32,
pub accepted_compression_types: Vec<i8>,
pub push_interval_ms: i32,
pub telemetry_max_bytes: i32,
pub delta_temporality: bool,
pub requested_metrics: Vec<StrBytes>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.throttle_time_ms: i32
The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 0
error_code: i16
The error code, or 0 if there was no error.
Supported API versions: 0
client_instance_id: Uuid
Assigned client instance id if ClientInstanceId was 0 in the request, else 0.
Supported API versions: 0
subscription_id: i32
Unique identifier for the current subscription set for this client instance.
Supported API versions: 0
accepted_compression_types: Vec<i8>
Compression types that broker accepts for the PushTelemetryRequest.
Supported API versions: 0
push_interval_ms: i32
Configured push interval, which is the lowest configured interval in the current subscription set.
Supported API versions: 0
telemetry_max_bytes: i32
The maximum bytes of binary data the broker accepts in PushTelemetryRequest.
Supported API versions: 0
delta_temporality: bool
Flag to indicate monotonic/counter metrics are to be emitted as deltas or cumulative values
Supported API versions: 0
requested_metrics: Vec<StrBytes>
Requested metrics prefix string match. Empty array: No metrics subscribed, Array[0] empty string: All metrics subscribed.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Trait Implementations§
source§impl Builder for GetTelemetrySubscriptionsResponse
impl Builder for GetTelemetrySubscriptionsResponse
§type Builder = GetTelemetrySubscriptionsResponseBuilder
type Builder = GetTelemetrySubscriptionsResponseBuilder
derive_builder::Builder
type for this protocol item.source§impl Clone for GetTelemetrySubscriptionsResponse
impl Clone for GetTelemetrySubscriptionsResponse
source§fn clone(&self) -> GetTelemetrySubscriptionsResponse
fn clone(&self) -> GetTelemetrySubscriptionsResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Encodable for GetTelemetrySubscriptionsResponse
impl Encodable for GetTelemetrySubscriptionsResponse
source§fn encode<B: ByteBufMut>(
&self,
buf: &mut B,
version: i16
) -> Result<(), EncodeError>
fn encode<B: ByteBufMut>( &self, buf: &mut B, version: i16 ) -> Result<(), EncodeError>
source§fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
source§impl HeaderVersion for GetTelemetrySubscriptionsResponse
impl HeaderVersion for GetTelemetrySubscriptionsResponse
source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
source§impl Message for GetTelemetrySubscriptionsResponse
impl Message for GetTelemetrySubscriptionsResponse
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for GetTelemetrySubscriptionsResponse
impl PartialEq for GetTelemetrySubscriptionsResponse
source§fn eq(&self, other: &GetTelemetrySubscriptionsResponse) -> bool
fn eq(&self, other: &GetTelemetrySubscriptionsResponse) -> bool
self
and other
values to be equal, and is used
by ==
.