#[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
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 Decodable for GetTelemetrySubscriptionsResponse
Available on crate feature client
only.
impl Decodable for GetTelemetrySubscriptionsResponse
client
only.Source§impl Encodable for GetTelemetrySubscriptionsResponse
Available on crate feature broker
only.
impl Encodable for GetTelemetrySubscriptionsResponse
broker
only.Source§impl From<GetTelemetrySubscriptionsResponse> for ResponseKind
Available on crate feature messages_enums
only.
impl From<GetTelemetrySubscriptionsResponse> for ResponseKind
messages_enums
only.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 ==
.