All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfdsl.cloudwatch.property.Metrics Maven / Gradle / Ivy

The newest version!
package cfdsl.cloudwatch.property;

public interface Metrics {
    /**
     * CloudWatch
     * AutoScaling metrics.
     */
    public static final class AutoScaling {
        private AutoScaling() {}
        public static final Metric GROUP_MIN_SIZE
                = new Metric("AWS/AutoScaling", "GroupMinSize");
        public static final Metric GROUP_MAX_SIZE
                = new Metric("AWS/AutoScaling", "GroupMaxSize");
        public static final Metric GROUP_DESIRED_CAPACITY
                = new Metric("AWS/AutoScaling", "GroupDesiredCapacity");
        public static final Metric GROUP_IN_SERVICE_INSTANCES
                = new Metric("AWS/AutoScaling", "GroupInServiceInstances");
        public static final Metric GROUP_PENDING_INSTANCES
                = new Metric("AWS/AutoScaling", "GroupPendingInstances");
        public static final Metric GROUP_STANDBY_INSTANCES
                = new Metric("AWS/AutoScaling", "GroupStandbyInstances");
        public static final Metric GROUP_TERMINATING_INSTANCES
                = new Metric("AWS/AutoScaling", "GroupTerminatingInstances");
        public static final Metric GROUP_TOTAL_INSTANCES
                = new Metric("AWS/AutoScaling", "GroupTotalInstances");
    }

    /**
     * CloudWatch
     * billing metrics.
     */
    public static final class Billing {
        private Billing() {}
        public static final Metric ESTIMATED_CHARGES
                = new Metric("AWS/Billing", "EstimatedCharges");
    }

    /**
     * CloudWatch
     * DynamoDB metrics.
     */
    public static final class DynamoDB {
        private DynamoDB() {}
        public static final Metric SUCCESSFUL_REQUEST_LATENCY
                = new Metric("AWS/DynamoDB", "SuccessfulRequestLatency");
        public static final Metric USER_ERRORS
                = new Metric("AWS/DynamoDB", "UserErrors");
        public static final Metric SYSTEM_ERRORS
                = new Metric("AWS/DynamoDB", "SystemErrors");
        public static final Metric THROTTLED_REQUESTS
                = new Metric("AWS/DynamoDB", "ThrottledRequests");
        public static final Metric READ_THROTTLED_REQUESTS
                = new Metric("AWS/DynamoDB", "ReadThrottledRequests");
        public static final Metric WRITE_THROTTLED_REQUESTS
                = new Metric("AWS/DynamoDB", "WriteThrottledRequests");
        public static final Metric PROVISIONED_READ_CAPACITY_UNITS
                = new Metric("AWS/DynamoDB", "ProvisionedReadCapacityUnits");
        public static final Metric PROVISIONED_WRITE_CAPACITY_UNITS
                = new Metric("AWS/DynamoDB", "ProvisionedWriteCapacityUnits");
        public static final Metric CONSUMED_READ_CAPACITY_UNITS
                = new Metric("AWS/DynamoDB", "ConsumedReadCapacityUnits");
        public static final Metric CONSUMED_WRITE_CAPACITY_UNITS
                = new Metric("AWS/DynamoDB", "ConsumedWriteCapacityUnits");
        public static final Metric RETURNED_ITEM_COUNT
                = new Metric("AWS/DynamoDB", "ReturnedItemCount");
    }

    /**
     * CloudWatch
     * ElastiCache metrics.
     */
    public static final class ElastiCache {
        private ElastiCache() {}
        public static final Metric CPU_UTILIZATION
                = new Metric("AWS/ElastiCache", "CPUUtilization");
        public static final Metric SWAP_USAGE
                = new Metric("AWS/ElastiCache", "SwapUsage");
        public static final Metric FREEABLE_MEMORY
                = new Metric("AWS/ElastiCache", "FreeableMemory");
        public static final Metric NETWORK_BYTES_IN
                = new Metric("AWS/ElastiCache", "NetworkBytesIn");
        public static final Metric NETWORK_BYTES_OUT
                = new Metric("AWS/ElastiCache", "NetworkBytesOut");
    }

    /**
     * CloudWatch
     * EBS metrics.
     */
    public static final class EBS {
        private EBS() {}
        public static final Metric VOLUME_READ_BYTES
                = new Metric("AWS/EBS", "VolumeReadBytes", Unit.BYTES);
        public static final Metric VOLUME_WRITE_BYTES
                = new Metric("AWS/EBS", "VolumeWriteBytes", Unit.BYTES);
        public static final Metric VOLUME_READ_OPS
                = new Metric("AWS/EBS", "VolumeReadOps", Unit.SECONDS);
        public static final Metric VOLUME_WRITE_OPS
                = new Metric("AWS/EBS", "VolumeWriteOps", Unit.SECONDS);
        public static final Metric VOLUME_TOTAL_READ_TIME
                = new Metric("AWS/EBS", "VolumeTotalReadTime", Unit.SECONDS);
        public static final Metric VOLUME_TOTAL_WRITE_TIME
                = new Metric("AWS/EBS", "VolumeTotalWriteTime", Unit.SECONDS);
        public static final Metric VOLUME_IDLE_TIME
                = new Metric("AWS/EBS", "VolumeIdleTime", Unit.SECONDS);
        public static final Metric VOLUME_QUEUE_LENGTH
                = new Metric("AWS/EBS", "VolumeQueueLength", Unit.COUNT);
        public static final Metric VOLUME_THROUGHPUT_PERCENTAGE
                = new Metric("AWS/EBS", "VolumeThroughputPercentage", Unit.PERCENT);
        public static final Metric VOLUME_CONSUMED_READ_WRITE_OPS
                = new Metric("AWS/EBS", "VolumeConsumedReadWriteOps", Unit.COUNT);
    }

    /**
     * CloudWatch
     * EC2 metrics.
     */
    public static final class EC2 {
        private EC2() {}
        public static final Metric CPU_CREDIT_USAGE
                = new Metric("AWS/EC2", "CPUCreditUsage", Unit.COUNT);
        public static final Metric CPU_CREDIT_BALANCE
                = new Metric("AWS/EC2", "CPUCreditBalance", Unit.COUNT);
        public static final Metric CPU_UTILIZATION
                = new Metric("AWS/EC2", "CPUUtilization", Unit.PERCENT);
        public static final Metric DISK_READ_OPS
                = new Metric("AWS/EC2", "DiskReadOps", Unit.COUNT);
        public static final Metric DISK_WRITE_OPS
                = new Metric("AWS/EC2", "DiskWriteOps", Unit.COUNT);
        public static final Metric DISK_READ_BYTES
                = new Metric("AWS/EC2", "DiskReadBytes", Unit.COUNT);
        public static final Metric DISK_WRITE_BYTES
                = new Metric("AWS/EC2", "DiskWriteBytes", Unit.COUNT);
        public static final Metric NETWORK_IN
                = new Metric("AWS/EC2", "NetworkIn", Unit.BYTES);
        public static final Metric NETWORK_OUT
                = new Metric("AWS/EC2", "NetworkOut", Unit.BYTES);
        public static final Metric STATUS_CHECK_FAILED
                = new Metric("AWS/EC2", "StatusCheckFailed", Unit.COUNT);
        public static final Metric STATUS_CHECK_FAILED_INSTANCE
                = new Metric("AWS/EC2", "StatusCheckFailed_Instance", Unit.COUNT);
        public static final Metric STATUS_CHECK_FAILED_SYSTEM
                = new Metric("AWS/EC2", "StatusCheckFailed_System", Unit.COUNT);
    }

    /**
     * CloudWatch
     * Elastic Load Balancing metrics.
     */
    public static final class ELB {
        private ELB() {}
        public static final Metric HEALTHY_HOST_COUNT
                = new Metric("AWS/ELB", "HealthyHostCount");
        public static final Metric UNHEALTHY_HOST_COUNT
                = new Metric("AWS/ELB", "UnhealthyHostCount");
        public static final Metric REQUEST_COUNT
                = new Metric("AWS/ELB", "RequestCount");
        public static final Metric LATENCY
                = new Metric("AWS/ELB", "Latency");
        public static final Metric BACKEND_CONNECTION_ERRORS
                = new Metric("AWS/ELB", "BackendConnectionErrors");
        public static final Metric SURGE_QUEUE_LENGTH
                = new Metric("AWS/ELB", "SurgeQueueLength");
        public static final Metric SPILLOVER_COUNT
                = new Metric("AWS/ELB", "SpilloverCount");

        public static Metric forHttpCode(int httpCode) {
            return new Metric("AWS/ELB", String.format("HTTPCode_ELB_%d", httpCode));
        }

        public static Metric forHttpCodeBackend(int httpCode) {
            return new Metric("AWS/ELB", String.format("HTTPCode_Backend_%d", httpCode));
        }
    }

    /**
     * CloudWatch
     * Elastic MapReduce metrics.
     */
    public static final class ElasticMapReduce {
        private ElasticMapReduce() {}
        private static final class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/ElasticMapReduce", metricName, units);
            }
        }

        public static final Metric CORE_NODES_PENDING
                = new Metric_("CoreNodesPending", Unit.COUNT);
        public static final Metric CORE_NODES_RUNNING
                = new Metric_("CoreNodesRunning", Unit.COUNT);
        public static final Metric HBASE_BACKUP_FAILED
                = new Metric_("HBaseBackupFailed", Unit.COUNT);
        public static final Metric HBASE_MOST_RECENT_BACKUP_DURATION
                = new Metric_("HBaseMostRecentBackupDuration", Unit.MINUTES);
        public static final Metric HBASE_TIME_SINCE_LAST_SUCCESSFUL_BACKUP
                = new Metric_("HBaseTimeSinceLastSuccessfulBackup", Unit.MINUTES);
        public static final Metric HDFS_BYTES_READ
                = new Metric_("HDFSBytesRead", Unit.BYTES);
        public static final Metric HDFS_BYTES_WRITTEN
                = new Metric_("HDFSBytesWritten", Unit.BYTES);
        public static final Metric HDFS_UTILIZATION
                = new Metric_("HDFSUtilization", Unit.PERCENT);
        public static final Metric IS_IDLE
                = new Metric_("IsIdle", Unit.COUNT);
        public static final Metric JOBS_FAILED
                = new Metric_("JobsFailed", Unit.COUNT);
        public static final Metric JOBS_RUNNING
                = new Metric_("JobsRunning", Unit.COUNT);
        public static final Metric LIVE_DATA_NODES
                = new Metric_("LiveDataNodes", Unit.PERCENT);
        public static final Metric LIVE_TASK_TRACKERS
                = new Metric_("LiveTaskTrackers", Unit.PERCENT);
        public static final Metric MAP_SLOTS_OPEN
                = new Metric_("MapSlotsOpen", Unit.COUNT);
        public static final Metric MISSING_BLOCKS
                = new Metric_("MissingBlocks", Unit.COUNT);
        public static final Metric REDUCE_SLOTS_OPEN
                = new Metric_("ReduceSlotsOpen", Unit.COUNT);
        public static final Metric REMAINING_MAP_TASKS
                = new Metric_("RemainingMapTasks", Unit.COUNT);
        public static final Metric REMAINING_MAP_TASKS_PER_SLOT
                = new Metric_("CoreNodesPending", Unit.RATIO);
        public static final Metric REMAINING_REDUCE_TASKS
                = new Metric_("RemainingReduceTasks", Unit.COUNT);
        public static final Metric RUNNING_MAP_TASKS
                = new Metric_("RunningMapTasks", Unit.COUNT);
        public static final Metric RUNNING_REDUCE_TASKS
                = new Metric_("RunningReduceTasks", Unit.COUNT);
        public static final Metric S3_BYTES_READ
                = new Metric_("S3BytesRead", Unit.BYTES);
        public static final Metric S3_BYTES_WRITTEN
                = new Metric_("S3BytesWritten", Unit.COUNT);
        public static final Metric TASK_NODES_PENDING
                = new Metric_("TaskNodesPending", Unit.COUNT);
        public static final Metric TASK_NODES_RUNNING
                = new Metric_("TaskNodesRunning", Unit.COUNT);
        public static final Metric TOTAL_LOAD
                = new Metric_("TotalLoad", Unit.COUNT);
    }

    /**
     * CloudWatch
     * Kinesis metrics.
     */
    public static final class Kinesis {
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/Kinesis", metricName, units);
            }
        }
        private Kinesis() {}
        public static final Metric PUT_RECORD_BYTES
                = new Metric_("PutRecord.Bytes", Unit.BYTES);
        public static final Metric PUT_RECORD_LATENCY
                = new Metric_("PutRecord.Latency", Unit.MILLISECONDS);
        public static final Metric PUT_RECORD_SUCCESS
                = new Metric_("PutRecord.Success", Unit.COUNT);
        public static final Metric GET_RECORDS_BYTES
                = new Metric_("GetRecords.Bytes", Unit.BYTES);
        public static final Metric GET_RECORDS_ITERATOR_AGE_MILLISECONDS
                = new Metric_("GetRecords.IteratorAgeMilliseconds", Unit.MILLISECONDS);
        public static final Metric GET_RECORDS_LATENCY
                = new Metric_("GetRecords.Latency", Unit.MILLISECONDS);
        public static final Metric GET_RECORDS_SUCCESS
                = new Metric_("GetRecords.Success", Unit.COUNT);
    }

    /**
     * CloudWatch
     * OpsWorks metrics.
     */
    public static final class OpsWorks {
        private OpsWorks() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/OpsWorks", metricName, units);
            }
        }
        public static final Metric CPU_IDLE
                = new Metric_("cpu_idle", Unit.PERCENT);
        public static final Metric CPU_NICE
                = new Metric_("cpu_nice", Unit.PERCENT);
        public static final Metric CPU_SYSTEM
                = new Metric_("cpu_system", Unit.PERCENT);
        public static final Metric CPU_USER
                = new Metric_("cpu_user", Unit.PERCENT);
        public static final Metric CPU_WAITIO
                = new Metric_("cpu_waitio", Unit.PERCENT);
        public static final Metric ONE_MINUTE_LOAD
                = new Metric_("load_1" /* TODO bl unit? */);
        public static final Metric FIVE_MINUTE_LOAD
                = new Metric_("load_5" /* TODO bl unit? */);
        public static final Metric FIFTEEN_MINUTE_LOAD
                = new Metric_("load_15" /* TODO bl unit? */);
        public static final Metric MEMORY_BUFFERS
                = new Metric_("memory_buffers", Unit.KILOBYTES);
        public static final Metric MEMORY_CACHED
                = new Metric_("memory_cached", Unit.KILOBYTES);
        public static final Metric MEMORY_FREE
                = new Metric_("memory_free", Unit.KILOBYTES);
        public static final Metric MEMORY_SWAP
                = new Metric_("memory_swap", Unit.KILOBYTES);
        public static final Metric MEMORY_TOTAL
                = new Metric_("memory_total", Unit.KILOBYTES);
        public static final Metric MEMORY_USED
                = new Metric_("memory_used", Unit.KILOBYTES);
        public static final Metric PROCS
                = new Metric_("procs", Unit.COUNT);
    }

    /**
     * CloudWatch
     * Redshift metrics.
     */
    public static final class Redshift {
        private Redshift() {}
        private static final class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/Redshift", metricName, units);
            }
        }
        public static final Metric CPU_UTILIZATION
                = new Metric_("CPUUtilization", Unit.PERCENT);
        public static final Metric DATABBASE_CONNECTIONS
                = new Metric_("DatabaseConnections", Unit.COUNT);
        public static final Metric HEALTH_STATUS
                = new Metric_("HealthStatus" /* TODO bl binary (1/0) unit? */);
        public static final Metric MAINTENANCE_MODE
                = new Metric_("MaintenanceMode" /* TODO bl binary (1/0) unit? */);
        public static final Metric NETWORK_RECEIVE_THROUGHPUT
                = new Metric_("NetworkReceiveThroughput", Unit.BYTES_PER_SECOND);
        public static final Metric NETWORK_TRANSMIT_THROUGHPUT
                = new Metric_("NetworkTransmitThroughput", Unit.BYTES_PER_SECOND);
        public static final Metric PERCENTAGE_DISK_SPACE_USED
                = new Metric_("PercentageDiskSpaceUsed", Unit.PERCENT);
        public static final Metric READ_IO_PER_SECOND
                = new Metric_("ReadIOPS", Unit.COUNT_PER_SECOND);
        public static final Metric READ_LATENCY
                = new Metric_("ReadLatency", Unit.SECONDS /* ! */);
        public static final Metric READ_THROUGHPUT
                = new Metric_("ReadThroughput", Unit.BYTES);
        public static final Metric WRITE_IO_PER_SECOND
                = new Metric_("WriteIOPS", Unit.COUNT_PER_SECOND);
        public static final Metric WRITE_LATENCY
                = new Metric_("WriteLatency", Unit.SECONDS /* ! */);
        public static final Metric WRITE_THROUGHPUT
                = new Metric_("WriteThroughput", Unit.BYTES);

    }

    /**
     * CloudWatch
     * RDS metrics.
     */
    public static final class RDS {
        private RDS() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/RDS", metricName, units);
            }
        }
        public static final Metric BIN_LOG_DISK_USAGE
                = new Metric_("BinLogDiskUsage", Unit.BYTES);
        public static final Metric CPU_UTILIZATION
                = new Metric_("CPUUtilization", Unit.PERCENT);
        public static final Metric DATABASE_CONNECTIONS
                = new Metric_("DatabaseConnections", Unit.COUNT);
        public static final Metric DISK_QUEUE_DEPTH
                = new Metric_("DiskQueueDepth", Unit.BYTES);
        public static final Metric FREEABLE_MEMORY
                = new Metric_("FreeableMemory", Unit.BYTES);
        public static final Metric FREE_STORAGE_SPACE
                = new Metric_("FreeStorageSpace", Unit.BYTES);
        public static final Metric REPLICA_LAG
                = new Metric_("ReplicaLag", Unit.SECONDS);
        public static final Metric SWAP_USAGE
                = new Metric_("SwapUsage", Unit.BYTES);
        public static final Metric READ_IO_PER_SECOND
                = new Metric_("ReadIOPS", Unit.COUNT_PER_SECOND);
        public static final Metric WRITE_IO_PER_SECOND
                = new Metric_("WriteIOPS", Unit.COUNT_PER_SECOND);
        public static final Metric READ_LATENCY
                = new Metric_("ReadLatency", Unit.SECONDS);
        public static final Metric WRITE_LATENCY
                = new Metric_("WriteLatency", Unit.SECONDS);
        public static final Metric READ_THROUGHPUT
                = new Metric_("ReadThroughput", Unit.BYTES_PER_SECOND);
        public static final Metric WRITE_THROUGHPUT
                = new Metric_("WriteThroughput", Unit.BYTES_PER_SECOND);
        public static final Metric NETWORK_RECEIVE_THROUGHPUT
                = new Metric_("NetworkReceiveThroughput", Unit.BYTES);
        public static final Metric NETWORK_TRANSMIT_THROUGHPUT
                = new Metric_("NetworkTransmitThroughput", Unit.BYTES);
    }

    /**
     * CloudWatch
     * Route53 metrics.
     */
    public static final class Route53 {
        private Route53() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/Route53", metricName, units);
            }
        }
        public static final Metric HEALTH_CHECK_STATUS
                = new Metric_("HealthCheckStatus" /* TODO bl binary (1/0) units? */);
        public static final Metric HEALTH_CHECK_PERCENTAGE_HEALTHY
                = new Metric_("HealthCheckPercentageHealthy", Unit.PERCENT);
    }

    /**
     * CloudWatch
     * SNS metrics.
     */
    public static final class SNS {
        private SNS() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/SNS", metricName, units);
            }
        }
        public static final Metric NUMBER_OF_MESSAGES_PUBLISHED
                = new Metric_("NumberOfMessagesPublished", Unit.COUNT);
        public static final Metric PUBLISH_SIZE
                = new Metric_("PublishSize", Unit.BYTES);
        public static final Metric NUMBER_OF_NOTIFICATIONS_DELIVERED
                = new Metric_("NumberOfNotificationsDelivered", Unit.COUNT);
        public static final Metric NUMBER_OF_NOTIFICATIONS_FAILED
                = new Metric_("NumberOfMessagesFailed", Unit.COUNT);
    }

    /**
     * CloudWatch
     * SQS metrics.
     */
    public static final class SQS {
        private SQS() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/SQS", metricName, units);
            }
        }
        public static final Metric NUMBER_OF_MESSAGES_SENT
                = new Metric_("NumberOfMessagesSent", Unit.COUNT);
        public static final Metric SENT_MESSAGE_SIZE
                = new Metric_("SentMessageSize", Unit.BYTES);
        public static final Metric NUMBER_OF_MESSAGES_RECEIVED
                = new Metric_("NumberOfMessagesReceived", Unit.COUNT);
        public static final Metric NUMBER_OF_EMPTY_RECEIVES
                = new Metric_("NumberOfEmptyReceives", Unit.COUNT);
        public static final Metric NUMBER_OF_MESSAGES_DELETED
                = new Metric_("NumberOfMessagesDeleted", Unit.COUNT);
        public static final Metric APPROXIMATE_NUMBER_OF_MESSAGES_DELAYED
                = new Metric_("ApproximateNumberOfMessagesDelayed", Unit.COUNT);
        public static final Metric APPROXIMATE_NUMBER_OF_MESSAGES_VISIBLE
                = new Metric_("ApproximateNumberOfMessagesVisible", Unit.COUNT);
        public static final Metric APPROXIMATE_NUMBER_OF_MESSAGES_NOT_VISIBLE
                = new Metric_("ApproximateNumberOfMessagesNotVisible", Unit.COUNT);
    }

    /**
     * CloudWatch
     * SWF metrics.
     */
    public static final class SWF {
        private SWF() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/SWF", metricName, units);
            }
        }
        public static final Metric DECISION_TASK_SCHEDULE_TO_START_TIME
                = new Metric_("DecisionTaskScheduleToStartTime", Unit.MILLISECONDS);
        public static final Metric DECISION_TASK_SCHEDULE_TO_CLOSE_TIME
                = new Metric_("DecisionTaskScheduleToCloseTime", Unit.MILLISECONDS);
        public static final Metric DECISION_TASKS_COMPLETED
                = new Metric_("DecisionTasksCompleted", Unit.COUNT);
        public static final Metric STARTED_DECISION_TASKS_TIMED_OUT_ON_CLOSE
                = new Metric_("StartedDecisionTasksTimedOutOnClose", Unit.COUNT);
        public static final Metric WORKFLOW_START_TO_CLOSE_TIME
                = new Metric_("WorkflowStartToCloseTime", Unit.MILLISECONDS);
        public static final Metric WORKFLOWS_CANCELED
                = new Metric_("WorkflowsCanceled", Unit.COUNT);
        public static final Metric WORKFLOWS_COMPLETED
                = new Metric_("WorkflowsCompleted", Unit.COUNT);
        public static final Metric WORKFLOWS_CONTINUED_AS_NEW
                = new Metric_("WorkflowsContinuedAsNew", Unit.COUNT);
        public static final Metric WORKFLOWS_FAILED
                = new Metric_("WorkflowsFailed", Unit.COUNT);
        public static final Metric WORKFLOWS_TERMINATED
                = new Metric_("WorkflowsTerminated", Unit.COUNT);
        public static final Metric WORKFLOWS_TIMED_OUT
                = new Metric_("WorkflowsTimedOut", Unit.COUNT);

        public static final Metric ACTIVITY_TASK_SCHEDULE_TO_CLOSE_TIME
                = new Metric_("ActivityTaskScheduleToCloseTime", Unit.MILLISECONDS);
        public static final Metric ACTIVITY_TASK_SCHEDULE_TO_START_TIME
                = new Metric_("ActivityTaskScheduleToStartTime", Unit.MILLISECONDS);
        public static final Metric ACTIVITY_TASK_START_TO_CLOSE_TIME
                = new Metric_("ActivityTaskStartToCloseTime", Unit.MILLISECONDS);
        public static final Metric ACTIVITY_TASKS_CANCELED
                = new Metric_("ActivityTasksCanceled", Unit.COUNT);
        public static final Metric ACTIVITY_TASKS_COMPLETED
                = new Metric_("ActivityTasksCompleted", Unit.COUNT);
        public static final Metric ACTIVITY_TASKS_FAILED
                = new Metric_("ActivityTasksFailed", Unit.COUNT);
        public static final Metric SCHEDULED_ACTIVITY_TASKS_TIMED_OUT_ON_CLOSE
                = new Metric_("ScheduledActivityTasksTimedOutOnClose", Unit.COUNT);
        public static final Metric SCHEDULED_ACTIVITY_TASKS_TIMED_OUT_ON_START
                = new Metric_("ScheduledActivityTasksTimedOutOnStart", Unit.COUNT);
        public static final Metric STARED_ACTIVITY_TASKS_TIMED_OUT_ON_CLOSE
                = new Metric_("StartedActivityTasksTimedOutOnClose", Unit.COUNT);
        public static final Metric STARTED_ACTIVITY_TASKS_TIMED_ON_ON_HEARTBEAT
                = new Metric_("StartedActivityTasksTimedOutOnHeartbeat", Unit.COUNT);
    }

    /**
     * CloudWatch
     * Storage Gateway metrics.
     */
    public static final class StorageGateway {
        private StorageGateway() {}
        private static class Metric_ extends Metric {
            private Metric_(String metricName, Unit... units) {
                super("AWS/StorageGateway", metricName, units);
            }
        }
        public static final Metric READ_BYTES
                = new Metric_("ReadBytes", Unit.BYTES);
        public static final Metric WRITE_BYTES
                = new Metric_("WriteBytes", Unit.BYTES);
        public static final Metric READ_TIME
                = new Metric_("ReadTime", Unit.MILLISECONDS);
        public static final Metric WRITE_TIME
                = new Metric_("WriteTime", Unit.MILLISECONDS);
        public static final Metric QUEUED_WRITES
                = new Metric_("QueuedWrites", Unit.BYTES);
        public static final Metric CLOUD_BYTES_DOWNLOADED
                = new Metric_("CloudBytesDownloaded", Unit.BYTES);
        public static final Metric CLOUD_BYTES_UPLOADED
                = new Metric_("CloudBytesUploaded", Unit.BYTES);
        public static final Metric CLOUD_DOWNLOAD_LATENCY
                = new Metric_("CloudDownloadLatency", Unit.MILLISECONDS);
        public static final Metric WORKING_STORAGE_PERCENT_USED
                = new Metric_("WorkingStoragePercentUsed", Unit.PERCENT);
        public static final Metric WORKING_STORAGE_USED
                = new Metric_("WorkingStorageUsed", Unit.BYTES);
        public static final Metric WORKING_STORAGE_FREE
                = new Metric_("WorkingStorageFree", Unit.BYTES);
        public static final Metric CACHE_HIT_PERCENT
                = new Metric_("CacheHitPercent", Unit.PERCENT);
        public static final Metric CACHE_PERCENT_USED
                = new Metric_("CachePercentUsed", Unit.PERCENT);
        public static final Metric CACHE_PERCENT_DIRTY
                = new Metric_("CachePercentDirty", Unit.PERCENT);
        public static final Metric UPLOAD_BUFFER_FREE
                = new Metric_("UploadBufferFree", Unit.BYTES);
        public static final Metric UPLOAD_BUFFER_PERCENT_USED
                = new Metric_("UploadBufferPercentUsed", Unit.PERCENT);
        public static final Metric UPLOAD_BUFFER_USED
                = new Metric_("UploadBufferUsed", Unit.BYTES);
        public static final Metric TOTAL_CACHE_SIZE
                = new Metric_("TotalCacheSize", Unit.BYTES);
        public static final Metric WORKING_STORAGE_PERCENTAGE_USED
                = new Metric_("WorkingStoragePercentageUsed", Unit.PERCENT);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy