Documentation
¶
Index ¶
- func CacheExpires(r *http.Response) time.Time
- func NewConfiguration(apiKey *ncloud.APIKey) *ncloud.Configuration
- type APIClient
- type APIResponse
- type DataPoint
- type DataPoints
- type GetListMetricsRequest
- type GetListMetricsResponse
- type GetMetricStatisticsRequest
- type GetMetricStatisticsResponse
- type Metric
- type Statistic
- 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 v2018-06-25T02:38:27Z 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 DataPoints ¶
type GetListMetricsRequest ¶
type GetListMetricsResponse ¶
type Statistic ¶
type Statistic struct { InstanceNo *string `json:"instanceNo,omitempty"` DataPointsList []*DataPoints `json:"dataPointsList,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) GetMetricStatistics ¶
func (a *V2ApiService) GetMetricStatistics(getMetricStatisticsRequest *GetMetricStatisticsRequest) (*GetMetricStatisticsResponse, error)
V2ApiService A.메트릭 통계 조회 @param getMetricStatisticsRequest getMetricStatisticsRequest @return *GetMetricStatisticsResponse