mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Adding the response object for alerts, initially created as part of the listAlerts refactoring.
This commit is contained in:
		
							parent
							
								
									187d89fce5
								
							
						
					
					
						commit
						f30e0dc383
					
				
							
								
								
									
										41
									
								
								server/src/com/cloud/api/response/AlertResponse.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								server/src/com/cloud/api/response/AlertResponse.java
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,41 @@ | ||||
| package com.cloud.api.response; | ||||
| 
 | ||||
| import java.util.Date; | ||||
| 
 | ||||
| import com.cloud.api.ResponseObject; | ||||
| import com.cloud.serializer.Param; | ||||
| 
 | ||||
| public class AlertResponse implements ResponseObject { | ||||
|     @Param(name="type") | ||||
|     private Short alertType; | ||||
| 
 | ||||
|     @Param(name="description") | ||||
|     private String description; | ||||
| 
 | ||||
|     @Param(name="sent") | ||||
|     private Date lastSent; | ||||
| 
 | ||||
|     public Short getAlertType() { | ||||
|         return alertType; | ||||
|     } | ||||
| 
 | ||||
|     public void setAlertType(Short alertType) { | ||||
|         this.alertType = alertType; | ||||
|     } | ||||
| 
 | ||||
|     public String getDescription() { | ||||
|         return description; | ||||
|     } | ||||
| 
 | ||||
|     public void setDescription(String description) { | ||||
|         this.description = description; | ||||
|     } | ||||
| 
 | ||||
|     public Date getLastSent() { | ||||
|         return lastSent; | ||||
|     } | ||||
| 
 | ||||
|     public void setLastSent(Date lastSent) { | ||||
|         this.lastSent = lastSent; | ||||
|     } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user