Skip to main content

MeasureThresholdRuleViolation

Struct MeasureThresholdRuleViolation 

Source
pub struct MeasureThresholdRuleViolation {
Show 15 fields pub base_type: Option<String>, pub schema_location: Option<String>, pub type_: Option<String>, pub applied_consequence: Option<Vec<AppliedConsequence>>, pub conformance_comparator_exact: Option<bool>, pub conformance_comparator_lower: Option<String>, pub conformance_comparator_upper: Option<String>, pub conformance_target_exact: Option<String>, pub conformance_target_lower: Option<String>, pub conformance_target_upper: Option<String>, pub description: Option<String>, pub name: Option<String>, pub number_of_allowed_crossing: Option<i64>, pub threshold_rule_severity: Option<String>, pub tolerance_period: Option<Duration>,
}
Expand description

A measureThresholdRuleViolation is a violation of a rule that defines the in the MericDefMeasureThresholdRule.

Fields§

§base_type: Option<String>

When sub-classing, this defines the super-class

§schema_location: Option<String>

A URI to a JSON-Schema file that defines additional attributes and relationships

§type_: Option<String>

When sub-classing, this defines the sub-class Extensible name

§applied_consequence: Option<Vec<AppliedConsequence>>

An Applied Consequence defines the action (prescribed action or notification) to take when a MeasureThresholdRuleViolation occurs.

§conformance_comparator_exact: Option<bool>

An operator that when applied on a value specifies whether it is the same target value or not. This operator is used to compare with the conformanceTargetExact if used.

§conformance_comparator_lower: Option<String>

An operator that when applied on a value specifies whether a threshold is crossed or ceased to be crossed. This operator is used to compare with the conformanceTargetLower if used.

§conformance_comparator_upper: Option<String>

An operator that when applied on a value specifies whether a threshold is crossed or ceased to be crossed. This operator is used to compare with the conformanceTargetUpper if used.

§conformance_target_exact: Option<String>

To cater for values that are not numerical test metrics (e.g. a DSL line can be Synchronised or Unsynchronised. If the latter, the test should result in a rule violation).The allowed value can contain a REGEX expression.

§conformance_target_lower: Option<String>

A value used to determine if the threshold is crossed or ceases to be crossed. It represents the lower limit. The value should be less than the conformanceTargetUpper if used. The conformance comparators should also be logically defined so as to not lead to a logically impossible condition.

§conformance_target_upper: Option<String>

A value used to determine if the threshold is crossed or ceases to be crossed. It represents the Upper limit. The value should be greater than the conformanceTargetLower if used. The conformance comparators should also be logically defined so as to not lead to a logically impossible condition.

§description: Option<String>

Description for the MetricDefMeasureThresholdRule .

§name: Option<String>

Name for the MetricDefMeasureThresholdRule .

§number_of_allowed_crossing: Option<i64>

The number of allowed crossing occurrences in reference to the tolerancePeriod without a consequence being initiated.

§threshold_rule_severity: Option<String>

A threshold can be generated in different severity levels. A crossing for each level may require a different condition and possibly trigger a different consequence.

§tolerance_period: Option<Duration>

A time interval in a given unit of time

Trait Implementations§

Source§

impl Clone for MeasureThresholdRuleViolation

Source§

fn clone(&self) -> MeasureThresholdRuleViolation

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MeasureThresholdRuleViolation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MeasureThresholdRuleViolation

Source§

fn default() -> MeasureThresholdRuleViolation

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MeasureThresholdRuleViolation

Source§

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 Display for MeasureThresholdRuleViolation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Serialize for MeasureThresholdRuleViolation

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,