Documentation ¶
Index ¶
- type BillOperator
- type CmsOperator
- type Datapoint
- type DatapointSet
- type DescribeMetricLastRequeset
- type DescribeRequest
- type DnsOperator
- type EventOperator
- type HostOperator
- type LoadBalancerOperator
- type MongoOperator
- type OssOperator
- type QueryBillRequest
- type QueryBillSummaryRequeset
- type QueryDomainRequest
- type QueryEventRequest
- type QueryOrderRequest
- type QueryRecordRequest
- type QueryRequest
- type RdsOperator
- type RedisOperator
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 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 ¶
func NewQueryEventRequest ¶
func NewQueryEventRequest() *QueryEventRequest
type QueryOrderRequest ¶
func NewQueryOrderRequest ¶
func NewQueryOrderRequest() *QueryOrderRequest
type QueryRecordRequest ¶
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) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.