identifier

package
v3.0.8-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHandleInsts

func StartHandleInsts() error

StartHandleInsts handle the duplicate event queue

Types

type HostIdentifier

type HostIdentifier struct {
	// cache     *HostIdenCache
	HostID    int                `json:"bk_host_id" bson:"bk_host_id"`           // 主机ID(host_id)								数字
	HostName  string             `json:"bk_host_name" bson:"bk_host_name"`       // 主机名称
	CloudID   int                `json:"bk_cloud_id" bson:"bk_cloud_id"`         // 所属云区域id(bk_cloud_id)				数字
	CloudName string             `json:"bk_cloud_name" bson:"bk_cloud_name"`     // 所属云区域名称(bk_cloud_name)		字符串(最大长度25)
	InnerIP   string             `json:"bk_host_innerip" bson:"bk_host_innerip"` // 内网IP
	OuterIP   string             `json:"bk_host_outerip" bson:"bk_host_outerip"` // 外网IP
	OSType    string             `json:"bk_os_type" bson:"bk_os_type"`           // 操作系统类型
	OSName    string             `json:"bk_os_name" bson:"bk_os_name"`           // 操作系统名称
	Memory    string             `json:"bk_mem" bson:"bk_mem"`                   // 内存容量
	CPU       string             `json:"bk_cpu" bson:"bk_cpu"`                   // CPU逻辑核心数
	Disk      string             `json:"bk_disk" bson:"bk_disk"`                 // 磁盘容量
	Module    map[string]*Module `json:"associations" bson:"associations"`
}

HostIdentifier define

func NewHostIdentifier

func NewHostIdentifier(m map[string]interface{}) *HostIdentifier

func (*HostIdentifier) MarshalBinary

func (iden *HostIdentifier) MarshalBinary() (data []byte, err error)

type Inst

type Inst struct {
	// contains filtered or unexported fields
}

type Module

type Module struct {
	SupplierID      int    `json:"bk_supplier_id"`      // 开发商ID(bk_supplier_id)				数字
	SupplierAccount string `json:"bk_supplier_account"` // 开发商帐号(bk_supplier_account)	数字
	BizID           int    `json:"bk_biz_id"`           // 业务ID
	BizName         string `json:"bk_biz_name"`         // 业务名称
	SetID           int    `json:"bk_set_id"`           // 所属集群(bk_set_id):						数字
	SetName         string `json:"bk_set_name"`         // 所属集群名称(bk_set_name):			字符串(最大长度25)
	ModuleID        int    `json:"bk_module_id"`        // 所属模块(bk_module_id):				数字
	ModuleName      string `json:"bk_module_name"`      // 所属模块(bk_module_name):			字符串(最大长度25)
	SetStatus       string `json:"bk_service_status"`   // 集群服务状态(bk_set_status)			数字
	SetEnv          string `json:"bk_set_env"`          // 环境类型(bk_set_type)					数字
}

func NewModule

func NewModule(m map[string]interface{}) *Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL