Merge branch 'feature/swagger-alarm-controller' of https://github.com/ShvaykaD/thingsboard into feature/swagger
This commit is contained in:
		
						commit
						2e187df448
					
				@ -221,7 +221,7 @@ public class AlarmController extends BaseController {
 | 
			
		||||
            @RequestParam int page,
 | 
			
		||||
            @ApiParam(value = ALARM_QUERY_TEXT_SEARCH_DESCRIPTION)
 | 
			
		||||
            @RequestParam(required = false) String textSearch,
 | 
			
		||||
            @ApiParam(value = SORT_PROPERTY_DESCRIPTION, allowableValues = SORT_PROPERTY_ALLOWABLE_VALUES)
 | 
			
		||||
            @ApiParam(value = SORT_PROPERTY_DESCRIPTION, allowableValues = ALARM_SORT_PROPERTY_ALLOWABLE_VALUES)
 | 
			
		||||
            @RequestParam(required = false) String sortProperty,
 | 
			
		||||
            @ApiParam(value = SORT_ORDER_DESCRIPTION, allowableValues = SORT_ORDER_ALLOWABLE_VALUES)
 | 
			
		||||
            @RequestParam(required = false) String sortOrder,
 | 
			
		||||
@ -270,7 +270,7 @@ public class AlarmController extends BaseController {
 | 
			
		||||
            @RequestParam int page,
 | 
			
		||||
            @ApiParam(value = ALARM_QUERY_TEXT_SEARCH_DESCRIPTION)
 | 
			
		||||
            @RequestParam(required = false) String textSearch,
 | 
			
		||||
            @ApiParam(value = SORT_PROPERTY_DESCRIPTION, allowableValues = SORT_PROPERTY_ALLOWABLE_VALUES)
 | 
			
		||||
            @ApiParam(value = SORT_PROPERTY_DESCRIPTION, allowableValues = ALARM_SORT_PROPERTY_ALLOWABLE_VALUES)
 | 
			
		||||
            @RequestParam(required = false) String sortProperty,
 | 
			
		||||
            @ApiParam(value = SORT_ORDER_DESCRIPTION, allowableValues = SORT_ORDER_ALLOWABLE_VALUES)
 | 
			
		||||
            @RequestParam(required = false) String sortOrder,
 | 
			
		||||
 | 
			
		||||
@ -184,6 +184,7 @@ public abstract class BaseController {
 | 
			
		||||
    protected final String CUSTOMER_SORT_PROPERTY_ALLOWABLE_VALUES = "createdTime, title, email, country, city";
 | 
			
		||||
    protected final String DEVICE_SORT_PROPERTY_ALLOWABLE_VALUES = "createdTime, name, deviceProfileName, label, customerTitle";
 | 
			
		||||
    protected final String ASSET_SORT_PROPERTY_ALLOWABLE_VALUES = "createdTime, name, type, label, customerTitle";
 | 
			
		||||
    protected final String ALARM_SORT_PROPERTY_ALLOWABLE_VALUES = "createdTime, startTs, endTs, type, ackTs, clearTs, severity, status";
 | 
			
		||||
    protected final String SORT_ORDER_DESCRIPTION = "Sort order. ASC (ASCENDING) or DESC (DESCENDING)";
 | 
			
		||||
    protected final String SORT_ORDER_ALLOWABLE_VALUES = "ASC, DESC";
 | 
			
		||||
    protected final String DEVICE_INFO_DESCRIPTION = "Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. ";
 | 
			
		||||
 | 
			
		||||
@ -17,6 +17,7 @@ package org.thingsboard.server.common.data.alarm;
 | 
			
		||||
 | 
			
		||||
import com.fasterxml.jackson.annotation.JsonProperty;
 | 
			
		||||
import com.fasterxml.jackson.databind.JsonNode;
 | 
			
		||||
import io.swagger.annotations.ApiModel;
 | 
			
		||||
import io.swagger.annotations.ApiModelProperty;
 | 
			
		||||
import lombok.AllArgsConstructor;
 | 
			
		||||
import lombok.Builder;
 | 
			
		||||
@ -35,6 +36,7 @@ import java.util.List;
 | 
			
		||||
/**
 | 
			
		||||
 * Created by ashvayka on 11.05.17.
 | 
			
		||||
 */
 | 
			
		||||
@ApiModel
 | 
			
		||||
@Data
 | 
			
		||||
@Builder
 | 
			
		||||
@AllArgsConstructor
 | 
			
		||||
 | 
			
		||||
@ -15,8 +15,10 @@
 | 
			
		||||
 */
 | 
			
		||||
package org.thingsboard.server.common.data.alarm;
 | 
			
		||||
 | 
			
		||||
import io.swagger.annotations.ApiModel;
 | 
			
		||||
import io.swagger.annotations.ApiModelProperty;
 | 
			
		||||
 | 
			
		||||
@ApiModel
 | 
			
		||||
public class AlarmInfo extends Alarm {
 | 
			
		||||
 | 
			
		||||
    private static final long serialVersionUID = 2807343093519543363L;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user