Composer의 ThingWorx 모델 정의 > 모델링 > 사물 > 경고 > Persistent 매개 변수가 있는 경고 서비스
Persistent 매개 변수가 있는 경고 서비스
여러 경고 서비스에는 persistent 매개 변수가 포함되어 있습니다. 다음 동작은 이 매개 변수가 있는 경고 서비스와 일치합니다.
persistent 매개 변수가 false인 경우 서비스의 작업(예: 경고 활성화/비활성화, 경고 추가/제거 등)은 Tomcat이 재시작할 때까지 활성 상태로 유지됩니다. 이러한 변경 사항은 Composer에 표시되지 않습니다. 예를 들어, 경고를 지속하지 않고 RemoveAlert 서비스를 사용하여 제거해도 해당 경고는 Composer의 사물 속성에 여전히 표시됩니다.
persistent 매개 변수가 true인 경우 서비스의 작업은 영구적이며 Composer에 반영됩니다.
다음 경고 서비스에는 persistent 매개 변수가 포함되어 있습니다.
AddOrUpdateAlert
DisableAlertsForProperty
DisableAllAlerts
EnableAlertsForProperty
EnableAllAlerts
RemoveAlert
SetBooleanAlertParameter
SetDateTimeAlertParameter
SetIntegerAlertParameter
SetLocationAlertParameter
SetNumberAlertParameter
SetStringAlertParameter
예를 들어, Persistent 매개 변수가 false로 설정된 속성에 대해 새 경고를 생성하기 위해 AddOrUpdateAlert 서비스가 호출되면 해당 경고가 생성되고 Tomcat이 재시작될 때까지 존재합니다.
Tomcat이 재시작된 후에는 경고가 더 이상 존재하지 않습니다. 그러나 Persistent 매개 변수가 true로 설정된 상태로 서비스가 호출되면 경고가 항상 존재합니다.
관련 링크