protectedstaticfinalStringRELATION_TYPE_PARAM_DESCRIPTION="A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value.";
protectedstaticfinalStringRELATION_TYPE_GROUP_PARAM_DESCRIPTION="A string value representing relation type group. For example, 'COMMON'";
protectedstaticfinalStringADMINISTRATOR_AUTHORITY_ONLY="Available for users with 'Tenant Administrator' authority only.";
@ -174,7 +174,19 @@ public class DeviceProfileController extends BaseController {
"The newly created device profile id will be present in the response. "+
"Specify existing device profile id to update the device profile. "+
"Referencing non-existing device profile Id will cause 'Not Found' error. "+
"\n\nDevice profile name is unique in the scope of tenant. Only one 'default' device profile may exist in scope of tenant."+TENANT_AUTHORITY_PARAGRAPH,
"\n\nDevice profile name is unique in the scope of tenant. Only one 'default' device profile may exist in scope of tenant."+TENANT_AUTHORITY_PARAGRAPH+
NEW_LINE+"See the object example below for createRules field:"+NEW_LINE+DEVICE_PROFILE_ALARM_CREATE_RULES_EXAMPLE+
NEW_LINE+"See alarm schedule objects examples below. Note,"+NEW_LINE+DEVICE_PROFILE_ALARM_SCHEDULE_ALWAYS_EXAMPLE+NEW_LINE+" means alarm rule is active all the time. "+
"'daysOfWeek' field represents Monday as 1, Tuesday as 2 and so on. 'startsOn' and 'endsOn' represent hours in millis. "+
"'enabled' flag represents if custom rule is active for specific day of the week:"+NEW_LINE+
"Alarm condition type ('spec') can be either simple, duration, or repeating. For example, 5 times in a row or during 5 minutes. See examples below. "+NEW_LINE+
"Note, 'userValue' field is not used, 'dynamicValue' is used for condition appliance from the 'sourceAttribute' or else 'defaultValue' is used. "+
"'sourceType' of the 'sourceAttribute' can be CURRENT_DEVICE/CURRENT_CUSTOMER/CURRENT_TENANT or inherited from the owner if set to true (for device and customer)."+
NEW_LINE+"Condition array examples for alarm rule activation:"+NEW_LINE+DEVICE_PROFILE_CONDITIONS_TIME_SERIES_NUMERIC_EXAMPLE+NEW_LINE+
"Note, see description of predicate fields above for 'spec' object. Navigate to Docs or Alarm Rules on ThingsBoard UI for more details and examples of fields possible values. ",
@ApiModelProperty(position=1,value="JSON object for specifying alarm condition by specific key")
privateAlarmConditionFilterKeykey;
@ApiModelProperty(position=2,value="String representation of the type of the value",example="NUMERIC")
privateEntityKeyValueTypevalueType;
@NoXss
@ApiModelProperty(position=3,value="Value used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is used")
@ApiModelProperty(position=1,value="JSON object representing the alarm rule condition")
privateAlarmConditioncondition;
@ApiModelProperty(position=2,value="JSON object representing time interval during which the rule is active")
privateAlarmScheduleschedule;
// Advanced
@NoXss
@ApiModelProperty(position=3,value="String value representing the additional details for an alarm rule")
privateStringalarmDetails;
@ApiModelProperty(position=4,value="JSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile application")
@ApiModelProperty(position=1,value="String value representing the alarm rule id",example="highTemperatureAlarmID")
privateStringid;
@NoXss
@ApiModelProperty(position=2,value="String value representing type of the Alarm",example="High Temperature Alarm")
privateStringalarmType;
@Valid
@ApiModelProperty(position=3,value="Complex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. "+
"There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more details")
@ApiModelProperty(position=1,value="String value representing the secret key used to verify provisioning of the device defined in the device profile",example="bjrj9172va82hvwqtp5b")
StringgetProvisionDeviceSecret();
@JsonIgnore
@ApiModelProperty(position=2,value="Device provisioning strategy for device profile",example="ALLOW_CREATE_NEW_DEVICES")
@ApiModelProperty(position=1,value="String value representing filter predicate type. See method implementation notes for more examples",example="BOOLEAN")