dashboard

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountNumOfHost

func CountNumOfHost() (c int, err error)

func CountNumOfHostGroup

func CountNumOfHostGroup() (c int, err error)

func QueryConfig

func QueryConfig(key string) (c model.Config, err error)

func QueryCounterByEndpoints

func QueryCounterByEndpoints(endpoints []string, limit int, metricQuery string) (counters []string, err error)

func QueryCounterByNameRegx

func QueryCounterByNameRegx(queryStr string, limit int) (counters []string, err error)

func QueryEndpointIDByCounters

func QueryEndpointIDByCounters(counters []string) (endpointID []string, err error)

func QueryEndpointNamesByID

func QueryEndpointNamesByID(endpointIDs []string, limit int, filter string) (endpointNames []string, err error)

func QueryEndpointsByCounter

func QueryEndpointsByCounter(counters []string, limit int, filter string) (endpoints []string, err error)

Types

type Endpoint

type Endpoint struct {
	Id       int64     `json:"id"`
	Endpoint string    `json:"endpoint"`
	Ts       int64     `json:"ts"`
	TCreate  time.Time `json:"-"`
	TModify  time.Time `json:"-"`
	Ipv4     string    `json:"-"`
}

graph

func QueryEndpintByNameRegx

func QueryEndpintByNameRegx(queryStr string, limit int) (enp []Endpoint, err error)

func QueryEndpointidbyNames

func QueryEndpointidbyNames(endpoints []string, limit int) (enp []Endpoint, err error)

type EndpointCounter

type EndpointCounter struct {
	Id         int64     `json:"id"`
	EndpointID int64     `json:"endpoint_id"`
	Counter    string    `json:"counter"`
	Step       int64     `json:"step"`
	Type       string    `json:"type"`
	Ts         int64     `json:"ts"`
	TCreate    time.Time `json:"-"`
	TModify    time.Time `json:"-"`
}

type GitInfo

type GitInfo struct {
	Hostname      string    `json:"hostname"`
	Ip            string    `json:"ip"`
	AgentVersion  string    `json:"agent_version"`
	PluginVersion string    `json:"plugin_version"`
	Title         string    `json:"title"`
	Date          time.Time `json:"commit_at"`
	Valid         bool      `json:"valid"`
}

type HostGroup

type HostGroup struct {
	Id         int64     `json:"id"`
	GrpName    string    `json:"grp_name"`
	CreateUser string    `json:"create_user"`
	CreateAt   time.Time `json:"create_at"`
	ComeFrom   int       `json:"come_from"`
}

falcon_portal

func QueryHostGroupByNameRegx

func QueryHostGroupByNameRegx(queryStr string, limit int) (hostgroup []HostGroup, err error)

type HostGroupMapping

type HostGroupMapping struct {
	GrpId  int64 `json:"grp_id"`
	HostId int64 `json:"host_id"`
}

type Hosts

type Hosts struct {
	Id            int64     `json:"id" `
	Hostname      string    `json:"hostname"`
	Ip            string    `json:"ip"`
	AgentVersion  string    `json:"agent_version"`
	PluginVersion string    `json:"plugin_version"`
	MaintainBegin int       `json:"maintain_begin"`
	MaintainEnd   int       `json:"maintain_end"`
	UpdateAt      time.Time `json:"update_at"`
}

func GetHostsByHostGroupName

func GetHostsByHostGroupName(hostGroupName []string) (hosts []Hosts, err error)

func QueryEndpintByNameRegxForOps

func QueryEndpintByNameRegxForOps(queryStr string) (enp []Hosts, err error)

Jump to

Keyboard shortcuts

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