Create a Metric Threshold

post

/api/metric/Thresholds

Creates a metric threshold.
The minimum required properties in the request body are:
  • Message
  • Measurement
  • TimeRange
  • MetricField
  • StatusID
  • ThresholdName
  • ThresholdTypeID
  • ThresholdFunctionID

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • The abnormal profile ID, used for abnormal thresholds only. For all other threshold types, set this to 0.
    Example: 0
  • The critical threshold comparison operator. Allowed values are:
    • ==
    • !=
    • >
    • >=
    • <
    • <=
    Example: ==
  • 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
  • The critical value to test for.
    Example: 0
  • 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
  • Used when Type is set to Standard and CheckLocation is set to Threshold Engine. How often the threshold is checked.
    Use the following guidelines:
    • Because thresholds can only be checked as frequently as the Standard Thresholding Engine polls, you must set this to a value greater than or equal to the PollTime of the Standard Thresholding Engine (the default is one minute).
    • Because metric values are only updated when the metric is polled, you must set this to a value greater than or equal to the PollTime of the metric the threshold is for (the default is five minutes).
    The format is 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
  • The string representing the metric stored in the Metric database.
    Example: metrictype_Latency
  • The message for the threshold event. Usually appears in an event's Summary field in the event list.
    Example: Performance threshold violation: Device Down
  • The data type that the threshold checks. Allowed values are:
    • availability
    • utilization
    • value
    Example: availability
  • 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.
    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: 0m
  • The metric threshold status ID. Either 0 (disabled) or 1 (enabled).
    Example: 1
  • The threshold function ID.
    Example: 1
  • The threshold name.
    To avoid confusion with numeric IDs, the name value cannot be integers only or integers prefixed with the + or - symbols only. It must contain letters or other characters. For example, 1234, +1234, and -1234 are not valid, but US1234, US+1234 and US_1234 are.
    Example: Device Down
  • 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
  • Unless Type is set to Abnormal, the period of time in which data points are retrieved and evaluated.
    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: 15m
  • The warning threshold comparison operator. Allowed values are:
    • ==
    • !=
    • >
    • >=
    • <
    • <=
    Example: !=
  • 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
  • The warning value to test for.
    Example: 0
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : SuccessfulAddOperation
Type: object
The response body for a successful add operation.
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : data
Type: array
The new metric threshold.
Show Source
Nested Schema : metricThresholdsRead
Type: object
Show Source
  • The abnormal profile ID, used by abnormal thresholds only. For all other threshold types, the value of this is 0.
    Example: 0
  • The abnormal profile name, used by abnormal thresholds only. For all other threshold types, the value of this is None.
    Example: None
  • The location of threshold checking, for standard thresholds only. Allowed Values are 1 for the Threshold Engine or 2 for an application.
    Example: 1
  • The name of the check location.
    Example: Threshold Engine
  • The critical threshold comparison operator. Allowed values are:
    • ==
    • !=
    • >
    • >=
    • <
    • <=
    Example: ==
  • 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
  • The critical value to test for.
    Example: 0
  • 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
  • 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
  • The string representing the metric stored in the Metric database.
    Example: metrictype_Latency
  • The message for the threshold event. Usually appears in an event's Summary field in the event list.
    Example: Performance threshold violation: Device Down
  • The data type that the threshold checks. Allowed values are:
    • availability
    • utilization
    • value
    Example: availability
  • The metric type name.
    Example: Latency
  • 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
  • The metric threshold status. Either Disabled or Enabled.
    Example: Enabled
  • The metric threshold status icon. For example, a green orb for enabled status.
    Example: OrbGreen.png
  • The metric threshold status ID. Either 0 (disabled) or 1 (enabled).
    Example: 1
  • The threshold function ID.
    Example: 1
  • 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
  • The threshold ID.
    Example: 1
  • The threshold name.
    Example: Device Down
  • 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
  • The threshold type name
    Example: Standard
  • 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
  • The warning threshold comparison operator. Allowed values are:
    • ==
    • !=
    • >
    • >=
    • <
    • <=
    Example: !=
  • 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
  • The warning value to test for.
    Example: 0

Default Response

Failed operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : errors
Type: array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type: object
An error.
Back to Top