monitorv5

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ServiceName = "monitor-2023-07-12" // Name of service.
	EndpointsID = "monitor"            // ID to lookup a service endpoint with.
	ServiceID   = "monitor-2023-07-12" // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitorv5

type Monitorv5 struct {
	*client.Client
}

Monitorv5 provides the API operation methods for making requests to monitorv5. See this package's package overview docs for details on the service.

Monitorv5 methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func ExtraNew

func ExtraNew(info *utils.UrlInfo, p client.ConfigProvider, cfgs ...*aws.Config) *Monitorv5

extraNew create int can support ssl or region locate set

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Monitorv5

New creates a new instance of the Monitorv5 client with a session. If additional configuration is needed for the client instance use the optional ksc.Config parameter to add your extra config.

Example:

// Create a Monitorv5 client from just a session.
svc := monitorv5.New(mySession)

// Create a Monitorv5 client with additional configuration
svc := monitorv5.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func SdkNew

func SdkNew(p client.ConfigProvider, cfgs *ksc.Config, info ...*utils.UrlInfo) *Monitorv5

SdkNew create int can support ssl or region locate set

func (*Monitorv5) DescribeInstances

func (c *Monitorv5) DescribeInstances(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeInstances API operation for monitorv5.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for monitorv5's API operation DescribeInstances for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/DescribeInstances

func (*Monitorv5) DescribeInstancesRequest

func (c *Monitorv5) DescribeInstancesRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DescribeInstancesRequest generates a "ksc/request.Request" representing the client's request for the DescribeInstances operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeInstances for more information on using the DescribeInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeInstancesRequest method.
req, resp := client.DescribeInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/DescribeInstances

func (*Monitorv5) DescribeInstancesWithContext

func (c *Monitorv5) DescribeInstancesWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DescribeInstancesWithContext is the same as DescribeInstances with the addition of the ability to pass a context and additional request options.

See DescribeInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Monitorv5) GetMetricStatistics

func (c *Monitorv5) GetMetricStatistics(input *map[string]interface{}) (*map[string]interface{}, error)

GetMetricStatistics API operation for monitorv5.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for monitorv5's API operation GetMetricStatistics for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/GetMetricStatistics

func (*Monitorv5) GetMetricStatisticsBatch

func (c *Monitorv5) GetMetricStatisticsBatch(input *map[string]interface{}) (*map[string]interface{}, error)

GetMetricStatisticsBatch API operation for monitorv5.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for monitorv5's API operation GetMetricStatisticsBatch for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/GetMetricStatisticsBatch

func (*Monitorv5) GetMetricStatisticsBatchRequest

func (c *Monitorv5) GetMetricStatisticsBatchRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetMetricStatisticsBatchRequest generates a "ksc/request.Request" representing the client's request for the GetMetricStatisticsBatch operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetMetricStatisticsBatch for more information on using the GetMetricStatisticsBatch API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetMetricStatisticsBatchRequest method.
req, resp := client.GetMetricStatisticsBatchRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/GetMetricStatisticsBatch

func (*Monitorv5) GetMetricStatisticsBatchWithContext

func (c *Monitorv5) GetMetricStatisticsBatchWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetMetricStatisticsBatchWithContext is the same as GetMetricStatisticsBatch with the addition of the ability to pass a context and additional request options.

See GetMetricStatisticsBatch for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Monitorv5) GetMetricStatisticsRequest

func (c *Monitorv5) GetMetricStatisticsRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetMetricStatisticsRequest generates a "ksc/request.Request" representing the client's request for the GetMetricStatistics operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetMetricStatistics for more information on using the GetMetricStatistics API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetMetricStatisticsRequest method.
req, resp := client.GetMetricStatisticsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/GetMetricStatistics

func (*Monitorv5) GetMetricStatisticsWithContext

func (c *Monitorv5) GetMetricStatisticsWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetMetricStatisticsWithContext is the same as GetMetricStatistics with the addition of the ability to pass a context and additional request options.

See GetMetricStatistics for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Monitorv5) ListMetrics

func (c *Monitorv5) ListMetrics(input *map[string]interface{}) (*map[string]interface{}, error)

ListMetrics API operation for monitorv5.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for monitorv5's API operation ListMetrics for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/ListMetrics

func (*Monitorv5) ListMetricsRequest

func (c *Monitorv5) ListMetricsRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ListMetricsRequest generates a "ksc/request.Request" representing the client's request for the ListMetrics operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListMetrics for more information on using the ListMetrics API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListMetricsRequest method.
req, resp := client.ListMetricsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/monitor-2023-07-12/ListMetrics

func (*Monitorv5) ListMetricsWithContext

func (c *Monitorv5) ListMetricsWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ListMetricsWithContext is the same as ListMetrics with the addition of the ability to pass a context and additional request options.

See ListMetrics for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

Directories

Path Synopsis
Package monitorv5iface provides an interface to enable mocking the monitorv5 service client for testing your code.
Package monitorv5iface provides an interface to enable mocking the monitorv5 service client for testing your code.

Jump to

Keyboard shortcuts

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