#[repr(i32)]pub enum TimedCountAlignment {
ErrorCountAlignmentUnspecified = 0,
AlignmentEqualRounded = 1,
AlignmentEqualAtEnd = 2,
}
Expand description
Specifies how the time periods of error group counts are aligned.
Variants§
ErrorCountAlignmentUnspecified = 0
No alignment specified.
AlignmentEqualRounded = 1
The time periods shall be consecutive, have width equal to the requested duration, and be aligned at the [alignment_time] [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time] provided in the request.
The [alignment_time] [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time] does not have to be inside the query period but even if it is outside, only time periods are returned which overlap with the query period.
A rounded alignment will typically result in a different size of the first or the last time period.
AlignmentEqualAtEnd = 2
The time periods shall be consecutive, have width equal to the requested duration, and be aligned at the end of the requested time period. This can result in a different size of the first time period.
Implementations§
source§impl TimedCountAlignment
impl TimedCountAlignment
sourcepub fn from_i32(value: i32) -> Option<TimedCountAlignment>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<TimedCountAlignment>
Converts an i32
to a TimedCountAlignment
, or None
if value
is not a valid variant.
source§impl TimedCountAlignment
impl TimedCountAlignment
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for TimedCountAlignment
impl Clone for TimedCountAlignment
source§fn clone(&self) -> TimedCountAlignment
fn clone(&self) -> TimedCountAlignment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimedCountAlignment
impl Debug for TimedCountAlignment
source§impl Default for TimedCountAlignment
impl Default for TimedCountAlignment
source§fn default() -> TimedCountAlignment
fn default() -> TimedCountAlignment
source§impl From<TimedCountAlignment> for i32
impl From<TimedCountAlignment> for i32
source§fn from(value: TimedCountAlignment) -> i32
fn from(value: TimedCountAlignment) -> i32
source§impl Hash for TimedCountAlignment
impl Hash for TimedCountAlignment
source§impl Ord for TimedCountAlignment
impl Ord for TimedCountAlignment
source§fn cmp(&self, other: &TimedCountAlignment) -> Ordering
fn cmp(&self, other: &TimedCountAlignment) -> 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 TimedCountAlignment
impl PartialEq for TimedCountAlignment
source§fn eq(&self, other: &TimedCountAlignment) -> bool
fn eq(&self, other: &TimedCountAlignment) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimedCountAlignment
impl PartialOrd for TimedCountAlignment
source§fn partial_cmp(&self, other: &TimedCountAlignment) -> Option<Ordering>
fn partial_cmp(&self, other: &TimedCountAlignment) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for TimedCountAlignment
impl TryFrom<i32> for TimedCountAlignment
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<TimedCountAlignment, UnknownEnumValue>
fn try_from(value: i32) -> Result<TimedCountAlignment, UnknownEnumValue>
impl Copy for TimedCountAlignment
impl Eq for TimedCountAlignment
impl StructuralPartialEq for TimedCountAlignment
Auto Trait Implementations§
impl Freeze for TimedCountAlignment
impl RefUnwindSafe for TimedCountAlignment
impl Send for TimedCountAlignment
impl Sync for TimedCountAlignment
impl Unpin for TimedCountAlignment
impl UnwindSafe for TimedCountAlignment
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request