cost

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdleDBInstancesCheckId                  = "ckia:aws:cost:IdleDBInstances"
	IdleDBInstancesCheckName                = "RDS Idle DB Instances"
	IdleDBInstancesCheckDescription         = "" /* 443-byte string literal not displayed */
	IdleDBInstancesCheckCriteria            = "Any RDS DB instance that has not had a connection in the last 7 days is considered idle."
	IdleDBInstancesCheckRecommendedAction   = "" /* 417-byte string literal not displayed */
	IdleDBInstancesCheckAdditionalResources = "" /* 152-byte string literal not displayed */
)
View Source
const (
	IdleLoadBalancersCheckId                  = "ckia:aws:cost:IdleLoadBalancers"
	IdleLoadBalancersCheckName                = "Idle Load Balancers"
	IdleLoadBalancersCheckDescription         = "" /* 456-byte string literal not displayed */
	IdleLoadBalancersCheckCriteria            = "" /* 176-byte string literal not displayed */
	IdleLoadBalancersCheckRecommendedAction   = "" /* 357-byte string literal not displayed */
	IdleLoadBalancersCheckAdditionalResources = "" /* 142-byte string literal not displayed */

	IdleLoadBalancerReasonNoActiveInstances  = "no active back-end instances"
	IdleLoadBalancerReasonNoHealthyInstances = "no healthy back-end instances"
	IdleLoadBalancerReasonLowRequestCount    = "low request count"
)
View Source
const (
	UnassociatedElasticIPAddressesCheckId                  = "ckia:aws:cost:UnassociatedElasticIPAddresses"
	UnassociatedElasticIPAddressesCheckName                = "Unassociated Elastic IP Addresses"
	UnassociatedElasticIPAddressesCheckDescription         = "" /* 451-byte string literal not displayed */
	UnassociatedElasticIPAddressesCheckCriteria            = "An allocated Elastic IP address (EIP) is not associated with a running Amazon EC2 instance."
	UnassociatedElasticIPAddressesCheckRecommendedAction   = "Associate the EIP with a running active instance, or release the unassociated EIP. "
	UnassociatedElasticIPAddressesCheckAdditionalResources = "" /* 156-byte string literal not displayed */
)
View Source
const (
	UnderutilizedEBSVolumesCheckId                  = "ckia:aws:cost:UnderutilizedEBSVolumes"
	UnderutilizedEBSVolumesCheckName                = "Underutilized Amazon EBS Volumes"
	UnderutilizedEBSVolumesCheckDescription         = "" /* 365-byte string literal not displayed */
	UnderutilizedEBSVolumesCheckCriteria            = "A volume is unattached or had less than 1 IOPS per day for the past 7 days."
	UnderutilizedEBSVolumesCheckRecommendedAction   = "Consider creating a snapshot and deleting the volume to reduce costs."
	UnderutilizedEBSVolumesCheckAdditionalResources = "" /* 155-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IdleDBInstance

type IdleDBInstance struct {
	Region                  string `json:"region"`
	DBInstanceName          string `json:"dbInstanceName"`
	MultiAZ                 bool   `json:"multiAZ"`
	InstanceType            string `json:"instanceType"`
	StorageProvisionedInGB  int    `json:"storageProvisionedInGB"`
	DaysSinceLastConnection int    `json:"daysSinceLastConnection"`
	EstimatedMonthlySavings int    `json:"estimatedMonthlySavings"`
}

type IdleDBInstancesCheck added in v0.1.0

type IdleDBInstancesCheck struct {
	common.Check
	IdleDBInstances []IdleDBInstance `json:"idleDBInstances"`
}

func (IdleDBInstancesCheck) List added in v0.1.0

func (IdleDBInstancesCheck) Run added in v0.1.0

type IdleLoadBalancer added in v0.1.0

type IdleLoadBalancer struct {
	Region                  string `json:"region"`
	LoadBalancerName        string `json:"loadBalancerName"`
	Reason                  string `json:"reason"`
	EstimatedMonthlySavings int    `json:"estimatedMonthlySavings"`
}

type IdleLoadBalancersCheck added in v0.1.0

type IdleLoadBalancersCheck struct {
	common.Check
	IdleLoadBalancers []IdleLoadBalancer `json:"idleLoadBalancers"`
}

func (IdleLoadBalancersCheck) List added in v0.1.0

func (IdleLoadBalancersCheck) Run added in v0.1.0

type UnassociatedElasticIPAddress added in v0.1.0

type UnassociatedElasticIPAddress struct {
	Region    string `json:"region"`
	IPAddress string `json:"IPAddress"`
}

type UnassociatedElasticIPAddressesCheck added in v0.1.0

type UnassociatedElasticIPAddressesCheck struct {
	common.Check
	UnassociatedElasticIPAddresses []UnassociatedElasticIPAddress `json:"unassociatedAddresses"`
}

func (UnassociatedElasticIPAddressesCheck) List added in v0.1.0

func (UnassociatedElasticIPAddressesCheck) Run added in v0.1.0

type UnderutilizedEBSVolume added in v0.1.0

type UnderutilizedEBSVolume struct {
	Region             string `json:"region"`
	VolumeId           string `json:"volumeId"`
	VolumeName         string `json:"volumeName"`
	VolumeType         string `json:"volumeType"`
	VolumeSize         int    `json:"volumeSize"`
	MonthlyStorageCost int    `json:"monthlyStorageCost"`
	SnapshotId         string `json:"snapshotId"`
	SnapshotName       string `json:"snapshotName"`
	SnapshotAge        int    `json:"snapshotAge"`
}

type UnderutilizedEBSVolumesCheck

type UnderutilizedEBSVolumesCheck struct {
	common.Check
	UnderutilizedEBSVolumes []UnderutilizedEBSVolume `json:"underutilizedVolumes"`
}

func (UnderutilizedEBSVolumesCheck) List

func (UnderutilizedEBSVolumesCheck) Run

Jump to

Keyboard shortcuts

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