사용자 지정 SLA 조건 규칙 만들기
사용자 지정 SLA 조건 규칙을 만들어 SLA의 첨부, 일시 중지, 완료, 재첨부 또는 취소 여부를 판별할 수 있습니다. SLA 조건 클래스에는 SLA 조건 규칙에 대한 처리를 정의하는 스크립트가 포함되어 있습니다. SLA 조건 클래스가 정의된 후 SLA 조건 규칙을 만듭니다.
시작하기 전에
필요한 역할: 관리자
프로시저
SLA 조건 클래스의 예
예를 들어, SLA 조건 클래스에 다음 메서드를 포함하면 해당 조건이 SLA의 start_condition 필드와 일치할 경우 SLA가 첨부됩니다.
attach: function() {
return (this._conditionMatches(this.sla.start_condition));
},다음은 SLAConditionBase 클래스를 확장하고 각 SLA 전환에 대한 메서드를 제공하는 스크립트 포함의 형식을 보여주는 예입니다.
var SLAConditionLocal = Class.create();
SLAConditionLocal.prototype = Object.extendsObject(SLAConditionBase, {
attach: function() {
// insert script here
},
pause: function() {
// insert script here
},
complete: function() {
// insert script here
},
reattach: function() {
// insert script here
},
cancel: function() {
// insert script here
},
});