Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
This method is used to indicate a KPI breach. When this API is invoked, an exclamation sign appears on the icon of the session whose unique identifier is passed, indicating that a KPI breach has occurred.
To reset the KPI breach indication, invoke this API with the value of shouldReset
parameter set as false
.
Syntax
Microsoft.CIFramework.notifyKpiBreach(sessionId, shouldReset, details).then(successCallback, errorCallback);
Parameters
Name | Type | Required | Description |
---|---|---|---|
sessionId | String | Yes | Unique identifier of the session. |
shouldReset | Boolean | No | A flag to reset the KPI breach indication. The default value is false . |
details | String | No | Details about the KPI breach. |
successCallback | Function | No | A function to call when the request is successful. |
errorCallback | Function | No | A function to call when the request fails. |
Return value
None
Example
Microsoft.CIFramework.notifyKpiBreach(sessionId, shouldReset, details).then(
function success(result) {
console.log(result);
// Perform operations
},
function (error) {
console.log(error.message);
// Handle error conditions
}
);