types

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Result  bool        `json:"result"`
	Code    int         `json:"code"`
	Data    interface{} `json:"data"`
	Message string      `json:"message"`
}

type CmdbHostInfo

type CmdbHostInfo struct {
	ModuleName string `json:"ModuleName"`
	IDC        string `json:"IDC"`
	ServerRack string `json:"serverRack"`
	IDCUnit    string `json:"IDCUnit"`
}

type DeployDetection

type DeployDetection struct {
	//clusterid
	Clusterid string
	//deploy idc
	Idc string
	//idc unit
	IdcUnit string
	//deployment json
	Template commtypes.BcsDeployment
	//cluster nodes
	Nodes []*NodeInfo
	//created application info, include status
	//if Application!=nil, then the idc has deployed detection node
	//other else nothing
	Application *schedtypes.Application
	//application's taskgroup
	Pods []*schedtypes.TaskGroup
}

DeployDetection detection record

type DetectionPod

type DetectionPod struct {
	Ip        string
	Idc       string
	IdcUnit   string
	ClusterId string
}

type NodeInfo

type NodeInfo struct {
	//node ip, example 127.0.0.1
	Ip string
	//clusterid, example BCS-MESOS-10001
	Clusterid string
	//node module, distinguish between switches, example 上海-周浦-M3
	//scheduler detection container best locate different switches
	//so best locate different switches
	Module string
	//idc info, example 上海-周浦
	//every idc deploy three detection containers
	//when all(three) detection containers can't ping, then give an alarm
	Idc string
	//idc unit,对应cmdb机房管理单元
	IdcUnit string
}

NodeInfo mesos node information

Jump to

Keyboard shortcuts

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