guyue
2 天以前 d3b6555513c6c0e283bd6e891d4e080aefa6003a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.linghu.model.dto;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
 
import java.time.LocalDateTime;
 
@Data
public class ServerResourceResponse {
    private String cpu_usage_percent;
    private String memory_usage_percent;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "GMT+8")
    private LocalDateTime timestamp;
    private String message;
    public ServerResourceResponse(){
        super();
    }
    public ServerResourceResponse(String message) {
 
        this.message = message;
    }
}