privatestaticfinalStringALARM_QUERY_ASSIGNEE_DESCRIPTION="A string value representing the assignee user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
privatestaticfinalStringALARM_QUERY_TEXT_SEARCH_DESCRIPTION="The case insensitive 'substring' filter based on of next alarm fields: type, severity or status";
privatestaticfinalStringALARM_QUERY_TEXT_SEARCH_DESCRIPTION="The case insensitive 'substring' filter based on of next alarm fields: type, severity or status";
privatestaticfinalStringALARM_QUERY_START_TIME_DESCRIPTION="The start timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.";
privatestaticfinalStringALARM_QUERY_START_TIME_DESCRIPTION="The start timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.";
privatestaticfinalStringALARM_QUERY_END_TIME_DESCRIPTION="The end timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.";
privatestaticfinalStringALARM_QUERY_END_TIME_DESCRIPTION="The end timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.";
@ -179,6 +188,44 @@ public class AlarmController extends BaseController {
notes="Returns a page of alarms for the selected entity. Specifying both parameters 'searchStatus' and 'status' at the same time will cause an error. "+
notes="Returns a page of alarms for the selected entity. Specifying both parameters 'searchStatus' and 'status' at the same time will cause an error. "+
protectedstaticfinalStringPAGE_DATA_PARAMETERS="You can specify parameters to filter the results. "+
protectedstaticfinalStringPAGE_DATA_PARAMETERS="You can specify parameters to filter the results. "+
"The result is wrapped with PageData object that allows you to iterate over result set using pagination. "+
"The result is wrapped with PageData object that allows you to iterate over result set using pagination. "+
"See the 'Model' tab of the Response Class for more details. ";
"See the 'Model' tab of the Response Class for more details. ";
@ -44,6 +45,7 @@ public class ControllerConstants {
protectedstaticfinalStringUSER_ID_PARAM_DESCRIPTION="A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringUSER_ID_PARAM_DESCRIPTION="A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringASSET_ID_PARAM_DESCRIPTION="A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringASSET_ID_PARAM_DESCRIPTION="A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringALARM_ID_PARAM_DESCRIPTION="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringALARM_ID_PARAM_DESCRIPTION="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringASSIGN_ID_PARAM_DESCRIPTION="A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringALARM_COMMENT_ID_PARAM_DESCRIPTION="A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringALARM_COMMENT_ID_PARAM_DESCRIPTION="A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringENTITY_ID_PARAM_DESCRIPTION="A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringENTITY_ID_PARAM_DESCRIPTION="A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
.comment(JacksonUtil.newObjectNode().put("text",String.format("Alarm severity was updated from %s to %s",oldSeverity,result.getAlarm().getSeverity())))
.comment(JacksonUtil.newObjectNode().put("text",String.format("Alarm severity was updated from %s to %s",oldSeverity,result.getAlarmInfo().getSeverity())))
@ApiModelProperty(position=10,value="Timestamp of the alarm start time, in milliseconds",example="1634058704565")
@ApiModelProperty(position=10,value="Alarm assignee user id")
privateUserIdassigneeId;
@ApiModelProperty(position=11,value="Timestamp of the alarm start time, in milliseconds",example="1634058704565")
privatelongstartTs;
privatelongstartTs;
@ApiModelProperty(position=11,value="Timestamp of the alarm end time(last time update), in milliseconds",example="1634111163522")
@ApiModelProperty(position=12,value="Timestamp of the alarm end time(last time update), in milliseconds",example="1634111163522")
privatelongendTs;
privatelongendTs;
@ApiModelProperty(position=12,value="Timestamp of the alarm acknowledgement, in milliseconds",example="1634115221948")
@ApiModelProperty(position=13,value="Timestamp of the alarm acknowledgement, in milliseconds",example="1634115221948")
privatelongackTs;
privatelongackTs;
@ApiModelProperty(position=13,value="Timestamp of the alarm clearing, in milliseconds",example="1634114528465")
@ApiModelProperty(position=14,value="Timestamp of the alarm clearing, in milliseconds",example="1634114528465")
privatelongclearTs;
privatelongclearTs;
@ApiModelProperty(position=14,value="JSON object with alarm details")
@ApiModelProperty(position=15,value="Timestamp of the alarm assigning0, in milliseconds",example="1634115928465")
privatelongassignTs;
@ApiModelProperty(position=16,value="JSON object with alarm details")
privatetransientJsonNodedetails;
privatetransientJsonNodedetails;
@ApiModelProperty(position=15,value="Propagation flag to specify if alarm should be propagated to parent entities of alarm originator",example="true")
@ApiModelProperty(position=17,value="Propagation flag to specify if alarm should be propagated to parent entities of alarm originator",example="true")
privatebooleanpropagate;
privatebooleanpropagate;
@ApiModelProperty(position=16,value="Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originator",example="true")
@ApiModelProperty(position=18,value="Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originator",example="true")
privatebooleanpropagateToOwner;
privatebooleanpropagateToOwner;
@ApiModelProperty(position=17,value="Propagation flag to specify if alarm should be propagated to the tenant entity",example="true")
@ApiModelProperty(position=19,value="Propagation flag to specify if alarm should be propagated to the tenant entity",example="true")
privatebooleanpropagateToTenant;
privatebooleanpropagateToTenant;
@ApiModelProperty(position=18,value="JSON array of relation types that should be used for propagation. "+
@ApiModelProperty(position=20,value="JSON array of relation types that should be used for propagation. "+
"By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. "+
"By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. "+
"This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.")
"This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.")
privateList<String>propagateRelationTypes;
privateList<String>propagateRelationTypes;
@ -98,10 +103,12 @@ public class Alarm extends BaseData<AlarmId> implements HasName, HasTenantId, Ha