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: i32The 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: i16The error code, or 0 if there was no error.
Supported API versions: 0
client_instance_id: UuidAssigned client instance id if ClientInstanceId was 0 in the request, else 0.
Supported API versions: 0
subscription_id: i32Unique 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: i32Configured push interval, which is the lowest configured interval in the current subscription set.
Supported API versions: 0
telemetry_max_bytes: i32The maximum bytes of binary data the broker accepts in PushTelemetryRequest.
Supported API versions: 0
delta_temporality: boolFlag 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
Implementations§
source§impl GetTelemetrySubscriptionsResponse
impl GetTelemetrySubscriptionsResponse
sourcepub fn with_throttle_time_ms(self, value: i32) -> Self
pub fn with_throttle_time_ms(self, value: i32) -> Self
Sets throttle_time_ms to the passed value.
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
sourcepub fn with_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code to the passed value.
The error code, or 0 if there was no error.
Supported API versions: 0
sourcepub fn with_client_instance_id(self, value: Uuid) -> Self
pub fn with_client_instance_id(self, value: Uuid) -> Self
Sets client_instance_id to the passed value.
Assigned client instance id if ClientInstanceId was 0 in the request, else 0.
Supported API versions: 0
sourcepub fn with_subscription_id(self, value: i32) -> Self
pub fn with_subscription_id(self, value: i32) -> Self
Sets subscription_id to the passed value.
Unique identifier for the current subscription set for this client instance.
Supported API versions: 0
sourcepub fn with_accepted_compression_types(self, value: Vec<i8>) -> Self
pub fn with_accepted_compression_types(self, value: Vec<i8>) -> Self
Sets accepted_compression_types to the passed value.
Compression types that broker accepts for the PushTelemetryRequest.
Supported API versions: 0
sourcepub fn with_push_interval_ms(self, value: i32) -> Self
pub fn with_push_interval_ms(self, value: i32) -> Self
Sets push_interval_ms to the passed value.
Configured push interval, which is the lowest configured interval in the current subscription set.
Supported API versions: 0
sourcepub fn with_telemetry_max_bytes(self, value: i32) -> Self
pub fn with_telemetry_max_bytes(self, value: i32) -> Self
Sets telemetry_max_bytes to the passed value.
The maximum bytes of binary data the broker accepts in PushTelemetryRequest.
Supported API versions: 0
sourcepub fn with_delta_temporality(self, value: bool) -> Self
pub fn with_delta_temporality(self, value: bool) -> Self
Sets delta_temporality to the passed value.
Flag to indicate monotonic/counter metrics are to be emitted as deltas or cumulative values
Supported API versions: 0
sourcepub fn with_requested_metrics(self, value: Vec<StrBytes>) -> Self
pub fn with_requested_metrics(self, value: Vec<StrBytes>) -> Self
Sets requested_metrics to the passed value.
Requested metrics prefix string match. Empty array: No metrics subscribed, Array[0] empty string: All metrics subscribed.
Supported API versions: 0
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
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 From<GetTelemetrySubscriptionsResponse> for ResponseKind
impl From<GetTelemetrySubscriptionsResponse> for ResponseKind
source§fn from(value: GetTelemetrySubscriptionsResponse) -> ResponseKind
fn from(value: GetTelemetrySubscriptionsResponse) -> ResponseKind
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 ==.impl StructuralPartialEq for GetTelemetrySubscriptionsResponse
Auto Trait Implementations§
impl Freeze for GetTelemetrySubscriptionsResponse
impl RefUnwindSafe for GetTelemetrySubscriptionsResponse
impl Send for GetTelemetrySubscriptionsResponse
impl Sync for GetTelemetrySubscriptionsResponse
impl Unpin for GetTelemetrySubscriptionsResponse
impl UnwindSafe for GetTelemetrySubscriptionsResponse
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)