Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricAlarmTables = []interface{}{ &MetricAlarm{}, &MetricAlarmActions{}, &MetricAlarmMetric{}, }
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectResource ¶
type MetricAlarm ¶
type MetricAlarm struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
ActionsEnabled *bool
AlarmActions []*MetricAlarmActions `gorm:"constraint:OnDelete:CASCADE;"`
AlarmArn *string
AlarmConfigurationUpdatedTimestamp *time.Time
AlarmDescription *string
AlarmName *string
ComparisonOperator *string
DatapointsToAlarm *int64
EvaluateLowSampleCountPercentile *string
EvaluationPeriods *int64
ExtendedStatistic *string
MetricName *string
Metrics []*MetricAlarmMetric `gorm:"constraint:OnDelete:CASCADE;"`
Namespace *string
Period *int64
StateReason *string
StateReasonData *string
StateUpdatedTimestamp *time.Time
StateValue *string
Statistic *string
Threshold *float64
ThresholdMetricId *string
TreatMissingData *string
Unit *string
}
func (MetricAlarm) TableName ¶
func (MetricAlarm) TableName() string
type MetricAlarmActions ¶
type MetricAlarmActions struct {
ID uint `gorm:"primarykey"`
AccountID string `gorm:"-"`
Region string `gorm:"-"`
MetricAlarmID uint `neo:"ignore"`
Value *string
}
func (MetricAlarmActions) TableName ¶
func (MetricAlarmActions) TableName() string
type MetricAlarmConfig ¶
type MetricAlarmConfig struct {
Filter string
}
type MetricAlarmMetric ¶
type MetricAlarmMetric struct {
ID uint `gorm:"primarykey"`
AccountID string `gorm:"-"`
Region string `gorm:"-"`
MetricAlarmID uint `neo:"ignore"`
Expression *string
ResourceID *string
Label *string
Name *string
Namespace *string
StatPeriod *int64
StatStat *string
StatUnit *string
Period *int64
ReturnData *bool
}
func (MetricAlarmMetric) TableName ¶
func (MetricAlarmMetric) TableName() string
Click to show internal directories.
Click to hide internal directories.