Get Metric Thresholds
get
/api/metric/Thresholds
Gets the metric thresholds that match the specified query parameters. If no parameters are specified, all metric thresholds are returned.
Request
Query Parameters
-
filter: object
The fields to filter the results by. You cannot filter by fields that contain a state.
This parameter's value uses the following JSON format:
{ "property": "property", "value": "propertyValue", "operator": "operator", "conjunction": "conjunction" }
If you use multiple JSON objects to combine filters, for example, to filter by several different device names, you cannot combine OR and AND conjunctions. The conjunction used for the last object applies to the entire list.-
conjunction:
string
Default Value:
OR
Allowed Values:[ "AND", "OR" ]
The conjunction between filters.Example:AND
-
operator:
string
Default Value:
LIKE
Allowed Values:[ "eq", "ne", "gte", "gt", "lte", "lt", "LIKE", "NOT LIKE", "re", "not re", "NOT IN" ]
The filter operation to use.Example:eq
-
property(required):
string
The name of the field to filter on.Example:
name
-
value(required):
string
The value of the field to filter on.Example:
test
-
conjunction:
string
-
limit: integer(int32)
The number of records to limit results by. If you do not also set the start parameter, records start at 0.Example:
100
-
sort: object
The field and direction to sort results by. You cannot sort by fields that contain a state.
This parameters value uses the following JSON format: { "property": "property", "direction": "direction" }-
direction(required):
string
Allowed Values:
[ "ASC", "DESC" ]
The direction of the sort.Example:ASC
-
property(required):
string
The field to sort on.Example:
name
Example:[ { "property":"Name", "direction":"ASC" }, { "property":"Value", "direction":"DESC" } ]
-
direction(required):
string
-
start: integer(int32)
The page of results to start from. This parameter is ignored if you do not also set the limit parameter.Default Value:
0
Example:1
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Match All
Show Source
-
object
SuccessfulGetOperation
The response body for a successful get operation.
-
object
type
Nested Schema : SuccessfulGetOperation
Type:
object
The response body for a successful get operation.
Show Source
-
message: string
The response message.Example:
Loaded 1 entries
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : type
Type:
Show Source
object
-
data: array
data
The metric thresholds that match the specified query parameters.
-
total: integer
The total number of results regardless of pagingExample:
1
Nested Schema : data
Type:
array
The metric thresholds that match the specified query parameters.
Show Source
Nested Schema : metricThresholdsRead
Type:
Show Source
object
-
AbnormalProfileID: integer
The abnormal profile ID, used by abnormal thresholds only. For all other threshold types, the value of this is 0.Example:
0
-
AbnormalProfileName: string
The abnormal profile name, used by abnormal thresholds only. For all other threshold types, the value of this is None.Example:
None
-
CheckLocation: integer
The location of threshold checking, for standard thresholds only. Allowed Values are 1 for the Threshold Engine or 2 for an application.Example:
1
-
CheckLocationName: string
The name of the check location.Example:
Threshold Engine
-
CriticalOperator: string
The critical threshold comparison operator. Allowed values are:
- ==
- !=
- >
- >=
- <
- <=
Example:==
-
CriticalSeverity: integer
The critical severity, used in the warning event. Allowed Values are:
- 0: Normal
- 1: Info
- 2: Unknown
- 3: Minor
- 4: Major
- 5: Critical
Example:5
-
CriticalValue: number
The critical value to test for.Example:
0
-
ForecastTimeRange: string
Used when Type is set to Trend Prediction. The relative time, starting now, to use when predicting when the metric value will breach the threshold. For example, set it to 6M to notify when the threshold is expected to be breached within six months.
The format is a combination of a numerical value and one of the following duration values:- m: Minutes
- h: Hours
- d: Days
- w: Weeks
- M: Months
- Y: Years
Example:6M
-
Frequency: string
Used when Type is set to Standard and CheckLocation is set to Threshold Engine. How often the threshold is checked. This should not be less than the PollTime for the Standard Thresholding Engine (default is one minute) or the metric the threshold is for (default is five minutes).
The format is a combination of a numerical value and one of the following duration values:- m: Minutes
- h: Hours
- d: Days
- w: Weeks
- M: Months
- Y: Years
Example:5m
-
Measurement: string
The string representing the metric stored in the Metric database.Example:
metrictype_Latency
-
Message: string
The message for the threshold event. Usually appears in an event's Summary field in the event list.Example:
Performance threshold violation: Device Down
-
MetricField: string
The data type that the threshold checks. Allowed values are:
- availability
- utilization
- value
Example:availability
-
MetricTypeName: string
The metric type name.Example:
Latency
-
Offset: string
Used when Type is set to Standard and CheckLocation is set to Threshold Engine. The offset to apply to the time range. For example, set to 5m to go back five minutes when checking the threshold to ensure most recent poll data is considered. Set to 0m for no offset.
The format is a combination of a numerical value and one of the following duration values:- m: Minutes
- h: Hours
- d: Days
- w: Weeks
- M: Months
- Y: Years
Example:0m
-
Status: string
The metric threshold status. Either Disabled or Enabled.Example:
Enabled
-
StatusIcon: string
The metric threshold status icon. For example, a green orb for enabled status.Example:
OrbGreen.png
-
StatusID: boolean
The metric threshold status ID. Either 0 (disabled) or 1 (enabled).Example:
1
-
ThresholdFunctionID: integer
The threshold function ID.Example:
1
-
ThresholdFunctionName: string
The threshold function name. Allowed values are:
- 95th Percentile: Use when you do not want to count infrequently-occurring high outliers and odd values, when most data points will be under a certain value.
- Count: Use to ensure there is no missing data, when you expect data points frequently. For example, if you expected a data point every minute, checking a TimeRange of X minutes every Y minutes shows if data is missing after the last Y minutes.
- Maximum: Use to ensure all data is below a certain value.
- Mean: Use to consider the average of the values.
- Minimum: Use to ensure the data never falls below a certain value.
- Standard Deviation: Use when the variation of data points should be below a certain value.
Example:Mean
-
ThresholdID: integer
The threshold ID.Example:
1
-
ThresholdName: string
The threshold name.Example:
Device Down
-
ThresholdTypeID: integer
The ID of the threshold type. Allowed values are:
- 1: Availability - Standard
- 2: Performance Utilization - Standard
- 3: Performance Value - Standard
- 10: Trend % Daily - Advanced
- 14: Abnormal Daily - Advanced
- 16: Missing Data - Advanced
- 20: Trend Prediction Availability - Advanced
- 21: Trend Prediction Performance Utilization - Advanced
- 22: Trend Prediction Performance Value - Advanced
Example:1
-
ThresholdTypeName: string
The threshold type nameExample:
Standard
-
TimeRange: string
Unless Type is set to Abnormal, the period of time in which data points are retrieved and evaluated.
This must be a combination of a numerical value and one of the following duration values:- m: Minutes
- h: Hours
- d: Days
- w: Weeks
- M: Months
- Y: Years
Example:15m
-
WarningOperator: string
The warning threshold comparison operator. Allowed values are:
- ==
- !=
- >
- >=
- <
- <=
Example:!=
-
WarningSeverity: integer
The warning severity, used in the warning event. Allowed Values are:
- 0: Normal
- 1: Info
- 2: Unknown
- 3: Minor
- 4: Major
- 5: Critical
Example:3
-
WarningValue: number
The warning value to test for.Example:
0
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object
-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown
-
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
-
Array of:
object items
An error.
Nested Schema : items
Type:
object
An error.