provider

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillOperator

type BillOperator interface {
	PageQueryBill(*QueryBillRequest) pager.Pager
	QuerySummary(context.Context, *QueryBillSummaryRequeset) (*bill.SummaryRecordSet, error)
	PageQueryOrder(*QueryOrderRequest) pager.Pager
	DescribeOrder(context.Context, *DescribeRequest) (*order.Order, error)
}

type CmsOperator

type CmsOperator interface {
	DescribeMetricLast(context.Context, *DescribeMetricLastRequeset) (*DatapointSet, error)
}

type Datapoint

type Datapoint struct {
	Timestamp  int64   `json:"timestamp"`
	InstanceId string  `json:"instance_id"`
	Minimum    float64 `json:"minimum"`
	Maximum    float64 `json:"maximum"`
	Average    float64 `json:"average"`
}

func (*Datapoint) String

func (d *Datapoint) String() string

type DatapointSet

type DatapointSet struct {
	Items []*Datapoint
}

func NewDatapointSet

func NewDatapointSet() *DatapointSet

func (*DatapointSet) Add

func (s *DatapointSet) Add(item *Datapoint)

func (*DatapointSet) String

func (d *DatapointSet) String() string

type DescribeMetricLastRequeset

type DescribeMetricLastRequeset struct {
	// 云服务的命名空间
	Namespace string
	// 云服务的监控项名称
	MetricName string
	// 监控项的统计周期, 单位:秒
	Period int64
	// 查询监控项的开始时间
	StartTime time.Time
	// 查询监控项的结束时间
	EndTime time.Time
	// 维度Map
	Dimensions map[string]string
}

func NewDescribeMetricLastRequeset

func NewDescribeMetricLastRequeset(namespace, metricname string) *DescribeMetricLastRequeset

func (*DescribeMetricLastRequeset) PeriodToString

func (req *DescribeMetricLastRequeset) PeriodToString() string

type DescribeRequest

type DescribeRequest struct {
	Id string `json:"id"`
}

func NewDescribeRequest

func NewDescribeRequest(id string) *DescribeRequest

func (*DescribeRequest) Validate

func (req *DescribeRequest) Validate() error

type DnsOperator

type DnsOperator interface {
	QueryDomain(req *QueryDomainRequest) pager.Pager
	QueryRecord(req *QueryRecordRequest) pager.Pager
}

type EventOperator

type EventOperator interface {
	PageQueryEvent(req *QueryEventRequest) pager.Pager
}

type HostOperator

type HostOperator interface {
	PageQueryHost(req *QueryRequest) pager.Pager
	PageQueryDisk(req *QueryRequest) pager.Pager
	PageQueryEip(req *QueryRequest) pager.Pager
	DescribeHost(ctx context.Context, req *DescribeRequest) (*host.Host, error)
	DescribeDisk(ctx context.Context, req *DescribeRequest) (*disk.Disk, error)
}

type LoadBalancerOperator

type LoadBalancerOperator interface {
	DescribeLoadBalancer(context.Context, *DescribeRequest) (*lb.LoadBalancer, error)
	PageQueryLoadBalancer(*QueryRequest) pager.Pager
}

type MongoOperator

type MongoOperator interface {
	PageQueryMongo(req *QueryRequest) pager.Pager
}

type OssOperator

type OssOperator interface {
	QueryBucket(ctx context.Context, req *QueryRequest) pager.Pager
}

type QueryBillRequest

type QueryBillRequest struct {
	Rate float64
	// 格式为YYYY-MM-DD
	Month       string
	ProductCode string
	// 是否是分账账单
	IsSplite bool
}

func NewQueryBillRequest

func NewQueryBillRequest() *QueryBillRequest

func NewQueryBillRequestWithRate

func NewQueryBillRequestWithRate(rate int32) *QueryBillRequest

type QueryBillSummaryRequeset

type QueryBillSummaryRequeset struct {
	// 子账号ID, 设置可查看财务云子账号账单,不填默认查看当前调用账号
	OwnerId string
	// 账单月份
	Month string
}

func NewQueryBillSummaryRequeset

func NewQueryBillSummaryRequeset() *QueryBillSummaryRequeset

type QueryDomainRequest

type QueryDomainRequest struct {
	Rate float64 `json:"rate"`
}

func NewQueryDomainRequest

func NewQueryDomainRequest() *QueryDomainRequest

type QueryEventRequest

type QueryEventRequest struct {
	Rate      float64
	StartTime time.Time
	EndTime   time.Time
}

func NewQueryEventRequest

func NewQueryEventRequest() *QueryEventRequest

type QueryOrderRequest

type QueryOrderRequest struct {
	Rate      float64
	StartTime time.Time
	EndTime   time.Time
}

func NewQueryOrderRequest

func NewQueryOrderRequest() *QueryOrderRequest

type QueryRecordRequest

type QueryRecordRequest struct {
	Domain string  `json:"domain"`
	Rate   float64 `json:"rate"`
}

func NewQueryRecordRequest

func NewQueryRecordRequest(domain string) *QueryRecordRequest

type QueryRequest

type QueryRequest struct {
	Rate float64 `json:"rate"`
}

func NewQueryRequest

func NewQueryRequest() *QueryRequest

func NewQueryRequestWithRate

func NewQueryRequestWithRate(rate int32) *QueryRequest

type RdsOperator

type RdsOperator interface {
	PageQueryRds(req *QueryRequest) pager.Pager
	DescribeRds(ctx context.Context, req *DescribeRequest) (*rds.Rds, error)
}

type RedisOperator

type RedisOperator interface {
	PageQueryRedis(req *QueryRequest) pager.Pager
	DescribeRedis(context.Context, *DescribeRequest) (*redis.Redis, error)
}

Jump to

Keyboard shortcuts

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