Intervals
You can specify an interval instead of a single value when you use action mode Verify. If you specify an interval, Tosca Cloud verifies if a value is within the specified range.
Before you specify an interval, note the following:
-
You can only specify an interval for data types Numeric or String.
-
To validate a property with intervals, you can only use the operators == or !=.
You can specify simple and custom intervals.
Simple interval
To specify an interval with equal upper and lower boundaries, use the following syntax:
Syntax: |
{INTERVAL[<Base>][<Limit>]} |
The verification is successful if the value is within the range <Base> − <Limit> and <Base> + <Limit>.
Custom interval
To specify an interval with unique upper and lower boundaries, use the following syntax:
Syntax: |
{INTERVAL[<Base>][<LowerBoundary>][<UpperBoundary>]} |
The verification is successful if the value is within the range <Base> − <LowerBoundary> and <Base> + <UpperBoundary>.