Update a Metric Threshold
put
                    /api/metric/Thresholds/{id}
Updates the metric threshold that matches the specified ID.
                Request
Path Parameters
                - 
                    id(required):  integer(int32)
                    
                    The ID of the metric threshold to update.Example:1
Supported Media Types
                            - application/json
Root Schema : schema
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    AbnormalProfileID: integer
                    
                    
                     
                    
                
                
                The abnormal profile ID, used for abnormal thresholds only. For all other threshold types, set this to 0.Example:0
- 
                
                    
                    CriticalOperator: string
                    
                    
                     
                    
                
                
                The critical threshold comparison operator. Allowed values are:- ==
- !=
- >
- >=
- <
- <=
 Example:==
- 
                
                    
                    CriticalSeverity: string
                    
                    
                     
                    
                
                
                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.
 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).
 - 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
- 
                
                    
                    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.
 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
- 
                
                    
                    StatusID: boolean
                    
                    
                     
                    
                
                
                The metric threshold status ID. Either 0 (disabled) or 1 (enabled).Example:1
- 
                
                    
                    ThresholdFunctionID: integer
                    
                    
                     
                    
                
                
                The threshold function ID.Example:1
- 
                
                    
                    ThresholdName: string
                    
                    
                     
                    
                
                
                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
- 
                
                    
                    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
- 
                
                    
                    TimeRange: string
                    
                    
                     
                    
                
                
                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
- 
                
                    
                    WarningOperator: string
                    
                    
                     
                    
                
                
                The warning threshold comparison operator. Allowed values are:- ==
- !=
- >
- >=
- <
- <=
 Example:!=
- 
                
                    
                    WarningSeverity: string
                    
                    
                     
                    
                
                
                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
Response
Supported Media Types
                - application/json
200 Response
Successful operation
                            
                            
                                Root Schema : schema
    
    	
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Match All
    
        
    
        
    
    Show Source
    - 
                
                object 
                
                
             SuccessfulUpdateOperation
                
            The response body for a successful update operation.
- 
                
                object 
                
                
             type
                
            
Nested Schema : SuccessfulUpdateOperation
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe response body for a successful update operation.
    
    
    
    
        Show Source
        - 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                The response message.Example:Updated record
- 
                
                    
                    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 updated metric threshold.
- 
                
                    
                    total: integer
                    
                    
                     
                    
                
                
                The total number of results regardless of pagingExample:1
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: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayThe list of errors reported. Validation errors will be keyed by record field.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            An error.
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectAn error.