ukafka

package
v0.0.0-...-f85cf53 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: LGPL-3.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 ClusterSet

type ClusterSet struct {
	Zone string

	ClusterInstanceId string

	ClusterInstanceName string

	Framework string

	FrameworkVersion string

	Remark string

	CreateTime int

	RunningTime int
	ExpireTime  int

	AutoRenew string

	ChargeType string

	UHostCount int

	RedundantCount int

	State string

	Tag string

	NewMessage string
	// 所在的VPC的ID
	VPCId string

	// 为 InnerMode 时,ULB 所属的子网ID,默认为空
	SubnetId string

	// 所属的业务组ID
	BusinessId string
}

type ConsumersGroups

type ConsumersGroups struct {
	GroupName string

	Type string

	NumOfTopics int
}

type GetShockwaveMetricRequest

type GetShockwaveMetricRequest struct {
	request.CommonBase

	// 资源类型
	ResourceType *string `required:"true"`

	// 指标名称(不同ResourceType对应不同的MetricName)
	MetricName []string `required:"true"`

	// 资源Id(目前除sharebandwidth可以不传入ResourceId外,其他资源必须传入,sharebandwidth不传入会默认使用获取到的第一个资源Id)
	ResourceId []string `required:"true"`

	// 拉取最近多少秒的监控数据,默认1小时,即3600;最大1个月
	TimeRange *int `required:"false"`

	DistrictType *string `required:"true"`

	PublicIP []string `required:"true"`
}

GetMetricRequest is request schema for GetMetric action

type GetShockwaveMetricResponse

type GetShockwaveMetricResponse struct {
	response.CommonBase

	DataSet []MetricItemSet
}

type ListUKafkaConsumers

type ListUKafkaConsumers struct {
	request.CommonBase

	ClusterInstanceId *string `required:"true"`
}

DescribeULBRequest is request schema for DescribeULB action

type ListUKafkaConsumersResponse

type ListUKafkaConsumersResponse struct {
	response.CommonBase

	TotalCount int

	Groups []ConsumersGroups
}

type ListUKafkaInstance

type ListUKafkaInstance struct {
	request.CommonBase

	// 数据偏移量,默认为0
	Offset *int `required:"false"`

	// 数据分页值,默认为20
	Limit *int `required:"false"`

	ClusterInstanceId *string `required:"true"`

	Filter *string `required:"false"`
	VPCId  *string `required:"false"`

	SubnetId *string `required:"false"`

	BusinessId *string `required:"false"`
}

DescribeULBRequest is request schema for DescribeULB action

type ListUKafkaInstanceResponse

type ListUKafkaInstanceResponse struct {
	response.CommonBase

	TotalCount int

	ClusterSet []ClusterSet
}

type MetricItem

type MetricItem struct {
	Value interface{}

	Timestamp    int
	DistrictName string
	IspName      string
}

MetricItem - GetMetricInfo-监控项信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type MetricItemSet

type MetricItemSet struct {
	MetricName  string
	Granularity int
	MetricData  []MetricItem
}

type PartitionsInfo

type PartitionsInfo struct {
	Consumer      string
	CurrentOffset int64

	LogEndOffset int64
	Lag          int
	// contains filtered or unexported fields
}

type TopicsInfo

type TopicsInfo struct {
	TotalLag   int
	Partitions map[string]*PartitionsInfo
	//LogPer               float64
	//PartitionAssignedPer int
	LastUpdateTime int
	TopicName      string
}

type UKafkaClient

type UKafkaClient struct {
	*ucloud.Client
}

UMonClient is the client of UMon

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UKafkaClient

NewClient will return a instance of USocketMonClient

func (*UKafkaClient) DescribeUKafkaConsumers

func (c *UKafkaClient) DescribeUKafkaConsumers(req *UKafkaConsumers) (*UKafkaConsumersResponse, error)

func (*UKafkaClient) GetShockwaveMetric

GetMetric - 获取监控数据

func (*UKafkaClient) ListUKafka

func (*UKafkaClient) ListUKafkaConsumers

func (c *UKafkaClient) ListUKafkaConsumers(req *ListUKafkaConsumers) (*ListUKafkaConsumersResponse, error)

func (*UKafkaClient) NewDescribeUKafkaConsumers

func (c *UKafkaClient) NewDescribeUKafkaConsumers() *UKafkaConsumers

func (*UKafkaClient) NewGetShockwaveMetric

func (c *UKafkaClient) NewGetShockwaveMetric() *GetShockwaveMetricRequest

NewGetMetricRequest will create request of GetMetric action.

func (*UKafkaClient) NewListUKafkaConsumers

func (c *UKafkaClient) NewListUKafkaConsumers() *ListUKafkaConsumers

func (*UKafkaClient) NewListUKafkaInstance

func (c *UKafkaClient) NewListUKafkaInstance() *ListUKafkaInstance

type UKafkaConsumers

type UKafkaConsumers struct {
	request.CommonBase

	ClusterInstanceId *string `required:"true"`

	ConsumerGroup *string `required:"true"`

	Type *string `required:"true"`
}

DescribeULBRequest is request schema for DescribeULB action

type UKafkaConsumersResponse

type UKafkaConsumersResponse struct {
	response.CommonBase

	GroupName string
	Type      string

	Topics []*TopicsInfo
}

Jump to

Keyboard shortcuts

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