apis

package
v0.0.0-...-02b5080 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentTaskData

type ContentTaskData struct {
	TaskList []ContentTaskObject `json:"task_list"`
}

type ContentTaskObject

type ContentTaskObject struct {
	TaskId string `json:"task_id"`
	Url    string `json:"url"`
	State  int8   `json:"state"`
}

type CreatePreloadConditions

type CreatePreloadConditions struct {
	Urls      []string `json:"urls"`
	StartTime int64    `json:"start_time"`
}

type CreatePreloadContentResponse

type CreatePreloadContentResponse struct {
	Ok      bool               `json:"ok"`
	Msg     string             `json:"msg"`
	Data    PreloadContentData `json:"data,omitempty"`
	TrackID string             `json:"track_id"`
}

type CreatePreloadRequest

type CreatePreloadRequest struct {
	core.NCloudRequest
	CreatePreloadConditions
}

func NewCreatePreloadContent

func NewCreatePreloadContent(urls []string) *CreatePreloadRequest

func NewCreatePreloadContentWithParams

func NewCreatePreloadContentWithParams(urls []string, startTime int64) *CreatePreloadRequest

type CreateRefreshConditions

type CreateRefreshConditions struct {
	Urls []string `json:"urls"`
	Type string   `json:"type"`
}

type CreateRefreshContentResponse

type CreateRefreshContentResponse struct {
	Ok      bool               `json:"ok"`
	Msg     string             `json:"msg"`
	Data    PreloadContentData `json:"data,omitempty"`
	TrackID string             `json:"track_id"`
}

type CreateRefreshRequest

type CreateRefreshRequest struct {
	core.NCloudRequest
	CreateRefreshConditions
}

func NewCreateRefreshContent

func NewCreateRefreshContent(urls []string, refreshType string) *CreateRefreshRequest

type DomainData

type DomainData struct {
	DomainList []string `json:"domain_list"`
}

type FLowData

type FLowData struct {
	Interval int64        `json:"interval"`
	FlowList []FlowObject `json:"flow_list,omitempty"`
}

type FlowObject

type FlowObject struct {
	Time                     uint64 `json:"time"`
	Domain                   string `json:"domain"`
	Flow                     uint64 `json:"flow"`
	NetLayerProtocol         string `json:"net_layer_protocol"`
	ApplicationLayerProtocol string `json:"application_layer_protocol"`
	Isp                      string `json:"isp"`
	Region                   string `json:"region"`
}

type IspData

type IspData struct {
	IspList []string `json:"isp_list"`
}

type MetricData

type MetricData struct {
	Interval   int64          `json:"interval"`
	MetricList []MetricObject `json:"metric_list,omitempty"`
}

type MetricObject

type MetricObject struct {
	Time     uint64            `json:"time"`
	Domain   string            `json:"domain"`
	Province string            `json:"province"`
	Isp      string            `json:"isp"`
	Flow     uint64            `json:"flow"`
	PV       uint64            `json:"pv"`
	Qps      float64           `json:"qps"`
	HttpCode map[string]uint64 `json:"http_code"`
}

type PreloadContentData

type PreloadContentData struct {
	TaskID string `json:"task_id"`
}

type QueryContentConditions

type QueryContentConditions struct {
	TaskID    string `json:"task_id"`
	StartTime int64  `json:"start_time"`
	EndTime   int64  `json:"end_time"`
}

type QueryContentRequest

type QueryContentRequest struct {
	core.NCloudRequest
	QueryContentConditions
}

func NewQueryContentRequestWithTaskID

func NewQueryContentRequestWithTaskID(taskID string) *QueryContentRequest

func NewQueryContentRequestWithTime

func NewQueryContentRequestWithTime(startTime, endTime int64) *QueryContentRequest

func (*QueryContentRequest) GetPath

func (q *QueryContentRequest) GetPath() string

type QueryContentTaskResponse

type QueryContentTaskResponse struct {
	Ok      bool            `json:"ok"`
	Msg     string          `json:"msg"`
	Data    ContentTaskData `json:"data,omitempty"`
	TrackID string          `json:"track_id"`
}

type QueryDomainRequest

type QueryDomainRequest struct {
	core.NCloudRequest
}

func NewQueryDomainsRequest

func NewQueryDomainsRequest() *QueryDomainRequest

type QueryDomainResponse

type QueryDomainResponse struct {
	Ok      bool       `json:"ok"`
	Msg     string     `json:"msg"`
	Data    DomainData `json:"data,omitempty"`
	TrackID string     `json:"track_id"`
}

type QueryFlowConditions

type QueryFlowConditions struct {
	StartTime                int64    `json:"start_time"`
	EndTime                  int64    `json:"end_time"`
	Interval                 int64    `json:"interval"`
	DomainList               []string `json:"domain_list"`
	IspList                  []string `json:"isp_list"`
	RegionList               []string `json:"region_list"`
	NetLayerProtocol         string   `json:"net_layer_protocol"`
	ApplicationLayerProtocol string   `json:"application_layer_protocol"`
}

type QueryFlowRequest

type QueryFlowRequest struct {
	core.NCloudRequest
	QueryFlowConditions
}

func NewQueryFlowRequest

func NewQueryFlowRequest(startTime, endTime, interval int64) *QueryFlowRequest

func NewQueryFlowRequestWithDomains

func NewQueryFlowRequestWithDomains(startTime, endTime, interval int64, list []string) *QueryFlowRequest

func (*QueryFlowRequest) SetApplicationLayerProtocol

func (q *QueryFlowRequest) SetApplicationLayerProtocol(protocol string)

func (*QueryFlowRequest) SetIspList

func (q *QueryFlowRequest) SetIspList(list []string)

func (*QueryFlowRequest) SetNetworkLayerProtocol

func (q *QueryFlowRequest) SetNetworkLayerProtocol(protocol string)

func (*QueryFlowRequest) SetRegionList

func (q *QueryFlowRequest) SetRegionList(list []string)

type QueryFlowResponse

type QueryFlowResponse struct {
	Ok      bool     `json:"ok"`
	Msg     string   `json:"msg"`
	TrackID string   `json:"track_id"`
	Data    FLowData `json:"data"`
}

type QueryIspRequest

type QueryIspRequest struct {
	core.NCloudRequest
}

func NewQueryIspRequest

func NewQueryIspRequest() *QueryIspRequest

type QueryIspResponse

type QueryIspResponse struct {
	Ok      bool    `json:"ok"`
	Msg     string  `json:"msg"`
	Data    IspData `json:"data,omitempty"`
	TrackID string  `json:"track_id"`
}

type QueryMetricConditions

type QueryMetricConditions struct {
	StartTime  int64    `json:"start_time"`
	EndTime    int64    `json:"end_time"`
	Interval   int64    `json:"interval"`
	DomainList []string `json:"domain_list"`
}

type QueryMetricRequest

type QueryMetricRequest struct {
	core.NCloudRequest
	QueryMetricConditions
}

func NewQueryMetricRequest

func NewQueryMetricRequest(startTime, endTime, interval int64) *QueryMetricRequest

func NewQueryMetricRequestWithDomains

func NewQueryMetricRequestWithDomains(startTime, endTime, interval int64, list []string) *QueryMetricRequest

type QueryMetricResponse

type QueryMetricResponse struct {
	Ok      bool       `json:"ok"`
	Msg     string     `json:"msg"`
	TrackID string     `json:"track_id"`
	Data    MetricData `json:"data"`
}

type QueryRegionRequest

type QueryRegionRequest struct {
	core.NCloudRequest
}

func NewQueryRegionRequest

func NewQueryRegionRequest() *QueryRegionRequest

type QueryRegionResponse

type QueryRegionResponse struct {
	Ok      bool       `json:"ok"`
	Msg     string     `json:"msg"`
	Data    RegionData `json:"data,omitempty"`
	TrackID string     `json:"track_id"`
}

type QuerySrcConditions

type QuerySrcConditions struct {
	StartTime  int64    `json:"start_time"`
	EndTime    int64    `json:"end_time"`
	Interval   int64    `json:"interval"`
	DomainList []string `json:"domain_list"`
}

type QuerySrcRequest

type QuerySrcRequest struct {
	core.NCloudRequest
	QuerySrcConditions
}

func NewQuerySrcRequest

func NewQuerySrcRequest(startTime, endTime, interval int64) *QuerySrcRequest

func NewQuerySrcRequestWithDomains

func NewQuerySrcRequestWithDomains(startTime, endTime, interval int64, list []string) *QuerySrcRequest

type QuerySrcResponse

type QuerySrcResponse struct {
	Ok      bool    `json:"ok"`
	Msg     string  `json:"msg"`
	TrackID string  `json:"track_id"`
	Data    SrcData `json:"data"`
}

type RefreshContentData

type RefreshContentData struct {
	TaskID string `json:"task_id"`
}

type RegionData

type RegionData struct {
	RegionList []string `json:"region_list"`
}

type SrcData

type SrcData struct {
	Interval   int64       `json:"interval"`
	MetricList []SrcObject `json:"metric_list,omitempty"`
}

type SrcObject

type SrcObject struct {
	Time   uint64  `json:"time"`
	Domain string  `json:"domain"`
	Flow   uint64  `json:"flow"`
	PV     uint64  `json:"pv"`
	Qps    float64 `json:"qps"`
}

Source Files

  • createContent.go
  • queryContent.go
  • queryDomains.go
  • queryFlow.go
  • queryIsp.go
  • queryMetric.go
  • queryRegion.go
  • querySrc.go

Jump to

Keyboard shortcuts

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