Class: CloudWatchMetrics::Linux
- Inherits:
-
Object
- Object
- CloudWatchMetrics::Linux
- Includes:
- Base
- Defined in:
- lib/cloud_watch_metrics/linux.rb,
lib/cloud_watch_metrics/linux/builder.rb,
lib/cloud_watch_metrics/linux/loadavg.rb,
lib/cloud_watch_metrics/linux/meminfo.rb,
lib/cloud_watch_metrics/linux/version.rb
Defined Under Namespace
Classes: Builder, LoadAvg, MemInfo
Constant Summary collapse
- DEFAULT_NAMESPACE =
'System/Linux'- DEFAULT_METRICS =
{ memory_used: true, memory_utilization: true, swap_used: true, swap_utilization: true, load_average_1min: false, load_average_5min: true, load_average_15min: false, }.freeze
- VERSION =
'0.2.0'
Instance Method Summary collapse
-
#initialize(namespace: DEFAULT_NAMESPACE, dimensions: {}, metrics: {}, interval: nil, dry_run: false) ⇒ Linux
constructor
A new instance of Linux.
Methods included from Base
Constructor Details
#initialize(namespace: DEFAULT_NAMESPACE, dimensions: {}, metrics: {}, interval: nil, dry_run: false) ⇒ Linux
Returns a new instance of Linux.
54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/cloud_watch_metrics/linux.rb', line 54 def initialize( namespace: DEFAULT_NAMESPACE, dimensions: {}, metrics: {}, interval: nil, dry_run: false ) @namespace = namespace @dimensions = dimensions @metrics = DEFAULT_METRICS.merge(metrics) @interval = interval @dry_run = dry_run end |