Documentation
¶
Index ¶
- Constants
- func FetchDailyInstancesStats(ctx context.Context, awsAccount taws.AwsAccount) error
- func PutElastiCacheMonthlyReport(ctx context.Context, costs []utils.CostPerResource, aa taws.AwsAccount, ...) (bool, error)
- type Cpu
- type Instance
- type InstanceBase
- type InstanceReport
- type Network
- type Node
- type Stats
Constants ¶
View Source
const IndexPrefixElastiCacheReport = "elasticache-reports"
View Source
const MonitorInstanceStsSessionName = "monitor-instance"
View Source
const TemplateElastiCacheReport = `` /* 1758-byte string literal not displayed */
View Source
const TemplateNameElastiCacheReport = "elasticache-reports"
View Source
const TypeElastiCacheReport = "elasticache-report"
Variables ¶
This section is empty.
Functions ¶
func FetchDailyInstancesStats ¶
func FetchDailyInstancesStats(ctx context.Context, awsAccount taws.AwsAccount) error
FetchDailyInstancesStats fetches the stats of the ElastiCache instances of an AwsAccount to import them in ElasticSearch. The stats are fetched from the last hour. In this way, FetchInstancesStats should be called every hour.
func PutElastiCacheMonthlyReport ¶
func PutElastiCacheMonthlyReport(ctx context.Context, costs []utils.CostPerResource, aa taws.AwsAccount, startDate, endDate time.Time) (bool, error)
PutElastiCacheMonthlyReport puts a monthly report of ElastiCache instance in ES
Types ¶
type Instance ¶
type Instance struct { InstanceBase Tags []utils.Tag `json:"tags"` Costs map[string]float64 `json:"costs"` Stats Stats `json:"stats"` }
Instance contains all the information of an ElastiCache instance
type InstanceBase ¶
type InstanceBase struct { Id string `json:"id"` Status string `json:"status"` Region string `json:"region"` NodeType string `json:"nodeType"` Nodes []Node `json:"nodes"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` }
InstanceBase contains basics information of an ElastiCache instance
type InstanceReport ¶
type InstanceReport struct { utils.ReportBase Instance Instance `json:"instance"` }
InstanceReport is saved in ES to have all the information of an ElastiCache instance
Click to show internal directories.
Click to hide internal directories.