comman_function

package
v1.17.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchData added in v1.13.7

func FetchData(url string) (string, error)

func FiltercloudWatchLogs

func FiltercloudWatchLogs(clientAuth *model.Auth, startTime, endTime *time.Time, logGroupName string, query string) ([]*cloudwatchlogs.GetQueryResultsOutput, error)

func GetCloudWatchAlarms

func GetCloudWatchAlarms(clientAuth *model.Auth, startTime, endTime *time.Time) ([]*cloudwatch.MetricAlarm, error)

func GetCmdbData

func GetCmdbData(cmd *cobra.Command) (string, error)

func GetCmdbLogsData

func GetCmdbLogsData(cmd *cobra.Command) (string, error)

func GetLogsData

func GetLogsData(clientAuth *model.Auth, startTime, endTime *time.Time, logGroupName string, query string, cloudWatchLogs *cloudwatchlogs.CloudWatchLogs) ([]*cloudwatchlogs.GetQueryResultsOutput, error)

func GetMetricData

func GetMetricData(clientAuth *model.Auth, instanceID, elementType string, metricName string, startTime, endTime *time.Time, statistic string, dimensionsName string, cloudWatchClient *cloudwatch.CloudWatch) (*cloudwatch.GetMetricDataOutput, error)

func InitAwsCmdFlags added in v1.11.3

func InitAwsCmdFlags(cmd *cobra.Command)

func ParseTimes

func ParseTimes(cmd *cobra.Command) (*time.Time, *time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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