event

package
v0.0.0-...-87bbc8a Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventAction = "DescribeServiceEvent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventResult

type EventResult struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	CodeDesc string `json:"codedesc"`
	Data     struct {
		Events []SEvent `json:"eventList"`
	} `json:"data"`
}

type SEvent

type SEvent struct {
	FirstSeen string `json:"firstseen"`
	LastSeen  string `json:"lastseen"`
	Count     int    `json:"count"`
	Level     string `json:"level"`
	ObjType   string `json:"objtype"`
	ObjName   string `json:"objname"`
	Reason    string `json:"reason"`
	Message   string `json:"message"`
}

Write by zhangtao<ztao8607@gmail.com> . In 2018/4/24. 获取服务事件数据

type ServiceEventRequest

type ServiceEventRequest struct {
	Svcname   string        `json:"svcname"`
	Namespace string        `json:"namespace"`
	ClusterId string        `json:"cluster_id"`
	Pub       public.Public `json:"pub"`
	SecretKey string        `json:"secret_key"`

	Debug bool
	// contains filtered or unexported fields
}

func (*ServiceEventRequest) GetServiceEvent

func (this *ServiceEventRequest) GetServiceEvent() (events []SEvent, err error)

Jump to

Keyboard shortcuts

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