c7n.output module¶
-
class
c7n.output.
BlobOutputRegistry
(plugin_type)[source]¶ Bases:
c7n.output.OutputRegistry
-
default_protocol
= 'file'¶
-
-
class
c7n.output.
DeltaStats
(ctx, config=None)[source]¶ Bases:
object
Capture stats (dictionary of string->integer) as a stack.
Popping the stack automatically creates a delta of the last stack element to the current stats.
-
class
c7n.output.
DirectoryOutput
(ctx, config)[source]¶ Bases:
object
-
permissions
= ()¶
-
type
= 'file'¶
-
-
class
c7n.output.
LogFile
(ctx, config=None)[source]¶ Bases:
c7n.output.LogOutput
-
log_path
¶
-
type
= 'default'¶
-
-
class
c7n.output.
LogMetrics
(ctx, config=None)[source]¶ Bases:
c7n.output.Metrics
Default metrics collection.
logs metrics, default handler should send to stderr
-
type
= 'default'¶
-
-
class
c7n.output.
LogOutput
(ctx, config=None)[source]¶ Bases:
object
-
log_format
= '%(asctime)s - %(name)s - %(levelname)s - %(message)s'¶
-
-
class
c7n.output.
LogOutputRegistry
(plugin_type)[source]¶ Bases:
c7n.output.OutputRegistry
-
default_protocol
= 'aws'¶
-
-
class
c7n.output.
Metrics
(ctx, config=None)[source]¶ Bases:
object
-
BUFFER_SIZE
= 20¶
-
namespace
= 'CloudMaid'¶
-
permissions
= ()¶
-
-
class
c7n.output.
MetricsRegistry
(plugin_type)[source]¶ Bases:
c7n.output.OutputRegistry
-
class
c7n.output.
NullStats
(ctx, config=None)[source]¶ Bases:
object
Execution statistics/metrics collection.
Encompasses concrete implementations over system stats (memory, cpu, cache size) and api calls.
The api supports stack nested snapshots, with delta consumption to support tracing metadata annotation across nested subsegments.
-
pop_snapshot
()[source]¶ Remove a snapshot from the snack and return a delta of the current stats to it.
-
type
= 'default'¶
-
-
class
c7n.output.
NullTracer
(ctx, config=None)[source]¶ Bases:
object
Tracing provides for detailed analytics of a policy execution.
Uses native cloud provider integration (xray, stack driver trace).
-
type
= 'default'¶
-
-
class
c7n.output.
OutputRegistry
(plugin_type)[source]¶ Bases:
c7n.registry.PluginRegistry
-
default_protocol
= None¶
-