Documentation ¶
Index ¶
- func CacheExpires(r *http.Response) time.Time
- func NewConfiguration(apiKey *ncloud.APIKey) *ncloud.Configuration
- type APIClient
- type APIResponse
- type DataPoint
- type GetListMetricsRequest
- type GetListMetricsResponse
- type GetMetricStatisticListRequest
- type GetMetricStatisticListResponse
- type Metric
- type MetricData
- type MetricStatistic
- type V2ApiService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration(apiKey *ncloud.APIKey) *ncloud.Configuration
Types ¶
type APIClient ¶
type APIClient struct { // API Services V2Api *V2ApiService // contains filtered or unexported fields }
APIClient manages communication with the monitoring API v2020-05-22T09:10:03Z In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *ncloud.Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type GetListMetricsRequest ¶
type GetListMetricsResponse ¶
type GetMetricStatisticListRequest ¶ added in v1.1.6
type GetMetricStatisticListResponse ¶ added in v1.1.6
type GetMetricStatisticListResponse struct { RequestId *string `json:"requestId,omitempty"` ReturnCode *string `json:"returnCode,omitempty"` ReturnMessage *string `json:"returnMessage,omitempty"` MetricStatisticList []*MetricStatistic `json:"metricStatisticList,omitempty"` }
type MetricData ¶ added in v1.1.6
type MetricStatistic ¶ added in v1.1.6
type MetricStatistic struct { InstanceNo *string `json:"instanceNo,omitempty"` MetricDataList []*MetricData `json:"metricDataList,omitempty"` }
type V2ApiService ¶
type V2ApiService service
func (*V2ApiService) GetListMetrics ¶
func (a *V2ApiService) GetListMetrics(getListMetricsRequest *GetListMetricsRequest) (*GetListMetricsResponse, error)
V2ApiService B.메트릭 리스트 조회 @param getListMetricsRequest getListMetricsRequest @return *GetListMetricsResponse
func (*V2ApiService) GetMetricStatisticList ¶ added in v1.1.6
func (a *V2ApiService) GetMetricStatisticList(getMetricStatisticListRequest *GetMetricStatisticListRequest) (*GetMetricStatisticListResponse, error)
V2ApiService A.메트릭 통계 조회 @param getMetricStatisticListRequest getMetricStatisticListRequest @return *GetMetricStatisticListResponse