Module Expr Str ImportFrom alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Return IfExp CompareIn Str NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Str NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Str Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad orelse Assign NameStore NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str If NameLoad body If BoolOpAnd NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Dict Str Str NameLoad NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If NameLoad body If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Str If Call AttributeLoad NameLoad attr Str body AugAssignAdd SubscriptStore NameLoad Index Str BinOpAdd Str SubscriptLoad NameLoad Index Str Return NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Str orelse Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list
N/A N/A 
Kapacitor state module.

:configuration: This module accepts connection configuration details either as
    parameters or as configuration settings in /etc/salt/minion on the relevant
    minions::

        kapacitor.host: 'localhost'
        kapacitor.port: 9092

    This data can also be passed into pillar. Options passed into opts will
    overwrite options passed into pillar.

.. versionadded:: Carbon
 __future__ absolute_import N/A difflib N/A logging N/A salt.utils N/A LOG N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A N/A N/A kapacitor.get_task __salt__ kapacitor False N/A task_present N/A N/A name tick_script task_type database retention_policy enable N/A stream None default True N/A N/A 
    Ensure that a task is present and up-to-date in Kapacitor.

    name
        Name of the task.

    tick_script
        Path to the TICK script for the task. Can be a salt:// source.

    task_type
        Task type. Defaults to 'stream'

    database
        Which database to fetch data from. Defaults to None, which will use the
        default database in InfluxDB.

    retention_policy
        Which retention policy to fetch data from. Defaults to 'default'.

    enable
        Whether to enable the task or not. Defaults to True.
     N/A comments N/A N/A changes N/A N/A ret N/A name changes result comment name N/A True N/A task N/A N/A __salt__ N/A kapacitor.get_task name N/A old_script N/A task N/A task N/A TICKscript N/A N/A N/A tick_script startswith salt:// N/A N/A script_path N/A N/A __salt__ N/A cp.cache_file tick_script __env__ N/A N/A script_path tick_script N/A N/A N/A N/A salt utils fopen script_path r file N/A N/A new_script N/A N/A file read N/A N/A old_script new_script N/A N/A N/A N/A comments append Task script is already up-to-date N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result None N/A N/A N/A comments append Task would have been updated N/A N/A result N/A N/A __salt__ N/A kapacitor.define_task name script_path task_type task_type database database retention_policy retention_policy N/A N/A ret N/A result N/A result N/A success N/A N/A N/A ret N/A result N/A N/A N/A N/A comments append Could not define task N/A N/A N/A result get stderr N/A N/A N/A N/A comments append N/A result N/A stderr N/A N/A ret N/A comment N/A N/A join comments N/A ret N/A N/A N/A ret N/A changes N/A TICKscript diff N/A N/A join N/A N/A difflib unified_diff N/A N/A old_script splitlines N/A N/A new_script splitlines N/A N/A N/A comments append Task script updated N/A enable N/A N/A N/A task N/A task N/A Enabled N/A N/A N/A N/A comments append Task is already enabled N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result None N/A N/A N/A comments append Task would have been enabled N/A N/A result N/A N/A __salt__ N/A kapacitor.enable_task name N/A N/A ret N/A result N/A result N/A success N/A N/A N/A ret N/A result N/A N/A N/A N/A comments append Could not enable task N/A N/A N/A result get stderr N/A N/A N/A N/A comments append N/A result N/A stderr N/A N/A ret N/A comment N/A N/A join comments N/A ret N/A N/A N/A comments append Task was enabled N/A N/A N/A ret N/A changes N/A enabled N/A old new False True N/A N/A N/A task N/A N/A task N/A Enabled N/A N/A N/A N/A comments append Task is already disabled N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result None N/A N/A N/A comments append Task would have been disabled N/A N/A result N/A N/A __salt__ N/A kapacitor.disable_task name N/A N/A ret N/A result N/A result N/A success N/A N/A N/A ret N/A result N/A N/A N/A N/A comments append Could not disable task N/A N/A N/A result get stderr N/A N/A N/A N/A comments append N/A result N/A stderr N/A N/A ret N/A comment N/A N/A join comments N/A ret N/A N/A N/A comments append Task was disabled N/A N/A N/A ret N/A changes N/A enabled N/A old new True False N/A N/A ret N/A comment N/A N/A join comments N/A ret N/A task_absent N/A N/A name N/A N/A N/A 
    Ensure that a task is absent from Kapacitor.

    name
        Name of the task.
     N/A ret N/A name changes result comment name N/A True N/A task N/A N/A __salt__ N/A kapacitor.get_task name N/A task N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result None N/A N/A ret N/A comment Task would have been deleted N/A N/A result N/A N/A __salt__ N/A kapacitor.delete_task name N/A N/A ret N/A result N/A result N/A success N/A N/A N/A ret N/A result N/A N/A N/A ret N/A comment Could not disable task N/A N/A N/A result get stderr N/A N/A N/A ret N/A comment N/A N/A result N/A stderr N/A ret N/A N/A ret N/A comment Task was deleted N/A N/A N/A ret N/A changes N/A name deleted N/A N/A N/A ret N/A comment Task does not exist N/A ret N/A