All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.baidu.discovery.client.model.Instance Maven / Gradle / Ivy

package com.baidu.discovery.client.model;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Bowu Dong ([email protected])
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class Instance {
    public static final int STATUS_UP = 1;
    public static final int STATUS_DOWN = 0;

    private String instanceId;
    private String productName;
    private String environment;
    private String region;
    private String appName;

    @NotNull
    private String scheme;
    private String host;
    private Integer port;
    private String path;

    @NotNull
    private String type;

    /**
     * 扩展字段
     */
    private Map customs = new LinkedHashMap<>();
    private Integer status;

    /**
     * 实例API中的idc
     */
    private String zone;

    private List tags;

    private Date startTime;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy