resources

package
v0.0.0-testrgm3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id                  string `json:"id"`
	Arn                 string `json:"arn"`
	Label               string `json:"label"`
	IsMonitoringAccount bool   `json:"isMonitoringAccount"`
}

type Dimension

type Dimension struct {
	Name  string
	Value string
}

type DimensionKeysRequest

type DimensionKeysRequest struct {
	*ResourceRequest
	Namespace       string
	MetricName      string
	DimensionFilter []*Dimension
}

func GetDimensionKeysRequest

func GetDimensionKeysRequest(parameters url.Values) (DimensionKeysRequest, error)

func (*DimensionKeysRequest) Type

type DimensionKeysRequestType

type DimensionKeysRequestType uint32
const (
	StandardDimensionKeysRequest DimensionKeysRequestType = iota
	FilterDimensionKeysRequest
)

type DimensionValuesRequest

type DimensionValuesRequest struct {
	*ResourceRequest
	Namespace       string
	MetricName      string
	DimensionKey    string
	DimensionFilter []*Dimension
}

func GetDimensionValuesRequest

func GetDimensionValuesRequest(parameters url.Values) (DimensionValuesRequest, error)

type LogGroup

type LogGroup struct {
	Arn  string `json:"arn"`
	Name string `json:"name"`
}

type LogGroupField

type LogGroupField struct {
	Percent int64  `json:"percent"`
	Name    string `json:"name"`
}

type LogGroupFieldsRequest

type LogGroupFieldsRequest struct {
	ResourceRequest
	LogGroupName string
	LogGroupARN  string
}

func ParseLogGroupFieldsRequest

func ParseLogGroupFieldsRequest(parameters url.Values) (LogGroupFieldsRequest, error)

type LogGroupsRequest

type LogGroupsRequest struct {
	ResourceRequest
	Limit                                   int64
	LogGroupNamePrefix, LogGroupNamePattern *string
	ListAllLogGroups                        bool
}

func ParseLogGroupsRequest

func ParseLogGroupsRequest(parameters url.Values) (LogGroupsRequest, error)

func (LogGroupsRequest) IsTargetingAllAccounts

func (r LogGroupsRequest) IsTargetingAllAccounts() bool

type LogsRequest

type LogsRequest struct {
	Limit                                              int64
	AccountId, LogGroupNamePrefix, LogGroupNamePattern *string
	IsCrossAccountQueryingEnabled                      bool
}

func (LogsRequest) IsTargetingAllAccounts

func (r LogsRequest) IsTargetingAllAccounts() bool

type Metric

type Metric struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type MetricResponse

type MetricResponse struct {
	*cloudwatch.Metric
	AccountId *string `json:"accountId,omitempty"`
}

type MetricsRequest

type MetricsRequest struct {
	*ResourceRequest
	Namespace string
}

func GetMetricsRequest

func GetMetricsRequest(parameters url.Values) (MetricsRequest, error)

func (*MetricsRequest) Type

type MetricsRequestType

type MetricsRequestType uint32
const (
	MetricsByNamespaceRequestType MetricsRequestType = iota
	AllMetricsRequestType
	CustomNamespaceRequestType
)

type ResourceRequest

type ResourceRequest struct {
	Region    string
	AccountId *string
}

func (*ResourceRequest) ShouldTargetAllAccounts

func (r *ResourceRequest) ShouldTargetAllAccounts() bool

type ResourceResponse

type ResourceResponse[T any] struct {
	AccountId *string `json:"accountId,omitempty"`
	Value     T       `json:"value"`
}

Jump to

Keyboard shortcuts

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