falcon_portal

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	ID                 int64  `json:"id" gorm:"column:id"`
	UIC                string `json:"uic" gorm:"column:uic"`
	URL                string `json:"url" gorm:"column:url"`
	Callback           int    `json:"callback" orm:"column:callback"`
	BeforeCallbackSMS  int    `json:"before_callback_sms" orm:"column:before_callback_sms"`
	BeforeCallbackMail int    `json:"before_callback_mail" orm:"column:before_callback_mail"`
	AfterCallbackSMS   int    `json:"after_callback_sms" orm:"column:after_callback_sms"`
	AfterCallbackMail  int    `json:"after_callback_mail" orm:"column:after_callback_mail"`
}

////////////////////////////////////////////////////////////////////////////////// |id | int(10) unsigned | NO | PRI | NULL | auto_increment | | uic | varchar(255) | NO | | | | | url | varchar(255) | NO | | | | | callback | tinyint(4) | NO | | 0 | | | before_callback_sms | tinyint(4) | NO | | 0 | | | before_callback_mail | tinyint(4) | NO | | 0 | | | after_callback_sms | tinyint(4) | NO | | 0 | | | after_callback_mail | tinyint(4) | NO | | 0 | | //////////////////////////////////////////////////////////////////////////////////

func (Action) TableName

func (this Action) TableName() string

type Cluster

type Cluster struct {
	ID          int64  `json:"id" gorm:"column:id"`
	GrpId       int64  `json:"grp_id" gorm:"column:grp_id"`
	Numerator   string `json:"numerator" gorm:"column:numerator"`
	Denominator string `json:"denominator" gorm:"denominator"`
	Endpoint    string `json:"endpoint" gorm:"endpoint"`
	Metric      string `json:"metric" gorm:"metric"`
	Tags        string `json:"tags" gorm:"tags"`
	DsType      string `json:"ds_type" gorm:"ds_type"`
	Step        int    `json:"step" gorm:"step"`
	Creator     string `json:"creator" gorm:"creator"`
}

func (Cluster) HostGroupName

func (this Cluster) HostGroupName() (name string, err error)

func (Cluster) TableName

func (this Cluster) TableName() string

type Expression

type Expression struct {
	ID         int64  `json:"id" gorm:"column:id"`
	Expression string `json:"expression" gorm:"column:expression"`
	Func       string `json:"func" gorm:"column:func"`
	Op         string `json:"op" gorm:"column:op"`
	RightValue string `json:"right_value" gorm:"column:right_value"`
	MaxStep    int    `json:"max_step" gorm:"column:max_step"`
	Priority   int    `json:"priority" gorm:"column:priority"`
	Note       string `json:"note" gorm:"column:note"`
	ActionId   int64  `json:"action_id" gorm:"column:action_id"`
	CreateUser string `json:"create_user" gorm:"column:create_user"`
	Pause      int    `json:"pause" gorm:"column:pause"`
}

type GrpHost

type GrpHost struct {
	GrpID  int64 `json:"grp_id" gorm:"column:grp_id"`
	HostID int64 `json:"host_id" gorm:"column:host_id"`
}

func (GrpHost) TableName

func (this GrpHost) TableName() string

type GrpTpl

type GrpTpl struct {
	GrpID    int64  `json:"grp_id" gorm:"column:grp_id"`
	TplID    int64  `json:"tpl_id" gorm:"column:tpl_id"`
	BindUser string `json:"bind_user" gorm:"column:bind_user"`
}

func (GrpTpl) TableName

func (this GrpTpl) TableName() string

type Host

type Host struct {
	ID            int64  `json:"id" gorm:"column:id"`
	Hostname      string `json:"hostname" gorm:"column:hostname"`
	Ip            string `json:"ip" gorm:"column:ip"`
	AgentVersion  string `json:"agent_version"  gorm:"column:agent_version"`
	PluginVersion string `json:"plugin_version"  gorm:"column:plugin_version"`
	MaintainBegin int64  `json:"maintain_begin"  gorm:"column:maintain_begin"`
	MaintainEnd   int64  `json:"maintain_end"  gorm:"column:maintain_end"`
}

func (Host) Existing

func (this Host) Existing() (int64, bool)

func (Host) RelatedGrp

func (this Host) RelatedGrp() (Grps []HostGroup)

func (Host) RelatedTpl

func (this Host) RelatedTpl() (tpls []Template)

func (Host) TableName

func (this Host) TableName() string

type HostGroup

type HostGroup struct {
	ID         int64  `json:"id" gorm:"column:id"`
	Name       string `json:"grp_name" gorm:"column:grp_name"`
	CreateUser string `json:"create_user" gorm:"column:create_user"`
	ComeFrom   int    `json:"-"  gorm:"column:come_from"`
}

func (HostGroup) TableName

func (this HostGroup) TableName() string

type Mockcfg

type Mockcfg struct {
	ID   int64  `json:"id" gorm:"column:id"`
	Name string `json:"name" gorm:"column:name"`
	Obj  string `json:"obj" gorm:"column:obj"`
	//group, host, other
	ObjType string  `json:"obj_type" gorm:"column:obj_type"`
	Metric  string  `json:"metric" gorm:"column:metric"`
	Tags    string  `json:"tags" gorm:"column:tags"`
	DsType  string  `json:"dstype" gorm:"column:dstype"`
	Step    int     `json:"step" gorm:"column:step"`
	Mock    float64 `json:"mock" gorm:"column:mock"`
	Creator string  `json:"creator" gorm:"column:creator"`
}

no_data

func (Mockcfg) TableName

func (this Mockcfg) TableName() string

type Plugin

type Plugin struct {
	ID         int64  `json:"id" gorm:"column:id"`
	GrpId      int64  `json:"grp_id" gorm:"column:grp_id"`
	Dir        string `json:"dir" gorm:"column:dir"`
	CreateUser string `json:"create_user" gorm:"column:create_user"`
}

func (Plugin) TableName

func (this Plugin) TableName() string

type Strategy

type Strategy struct {
	ID         int64  `json:"id" gorm:"column:id"`
	Metric     string `json:"metric" gorm:"column:metric"`
	Tags       string `json:"tags" gorm:"column:tags"`
	MaxStep    int    `json:"max_step" gorm:"column:max_step"`
	Priority   int    `json:"priority" gorm:"column:priority"`
	Func       string `json:"func" gorm:"column:func"`
	Op         string `json:"op" gorm:"column:op"`
	RightValue string `json:"right_value" gorm:"column:right_value"`
	Note       string `json:"note" gorm:"column:note"`
	RunBegin   string `json:"run_begin" gorm:"column:run_begin"`
	RunEnd     string `json:"run_end" gorm:"column:run_end"`
	TplId      int64  `json:"tpl_id" gorm:"column:tpl_id"`
}

func (Strategy) TableName

func (this Strategy) TableName() string

type Template

type Template struct {
	ID         int64  `json:"id" gorm:"column:id"`
	Name       string `json:"tpl_name" gorm:"column:tpl_name"`
	ParentID   int64  `json:"parent_id" orm:"column:parent_id"`
	ActionID   int64  `json:"action_id" orm:"column:action_id"`
	CreateUser string `json:"create_user" orm:"column:create_user"`
}

func (Template) FindParentName

func (this Template) FindParentName() (name string, err error)

func (Template) FindUserName

func (this Template) FindUserName() (name string, err error)

func (Template) TableName

func (this Template) TableName() string

Jump to

Keyboard shortcuts

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