Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Return IfExp Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Str Str Assign NameStore Call SubscriptLoad NameLoad Index Str Str Num Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad If CompareEq SubscriptLoad NameLoad Index Str Num body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Str body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad If BoolOpAnd NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A 
Kapacitor execution 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 json N/A logging N/A salt.utils N/A salt.utils.http 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 N/A N/A salt utils which kapacitor kapacitor False N/A get_task N/A N/A name N/A N/A N/A 
    Get a dict of data on a task.

    name
        Name of the task to get information about.

    CLI Example:

    .. code-block:: bash

        salt '*' kapacitor.get_task cpu
     N/A host N/A N/A __salt__ N/A config.option kapacitor.host localhost N/A port N/A N/A __salt__ N/A config.option kapacitor.port 9092 N/A url N/A N/A http://{0}:{1}/task?name={2} format host port name N/A response N/A N/A N/A N/A salt utils http query url status True N/A N/A N/A response N/A status 404 N/A N/A None N/A data N/A N/A json loads N/A response N/A body N/A data N/A _run_cmd N/A N/A cmd N/A N/A N/A 
    Run a Kapacitor task and return a dictionary of info.
     N/A ret N/A N/A result N/A N/A __salt__ N/A cmd.run_all cmd N/A N/A N/A result get stdout N/A N/A N/A ret N/A stdout N/A result N/A stdout N/A N/A N/A result get stderr N/A N/A N/A ret N/A stderr N/A result N/A stderr N/A N/A ret N/A success N/A N/A result N/A retcode 0 N/A ret N/A define_task N/A N/A name tick_script task_type database retention_policy N/A stream None default N/A N/A 
    Define a task. Serves as both create/update.

    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'.

    CLI Example:

    .. code-block:: bash

        salt '*' kapacitor.define_task cpu salt://kapacitor/cpu.tick database=telegraf
     N/A cmd N/A N/A kapacitor define -name {0} -tick {1} format name tick_script N/A N/A N/A tick_script startswith salt:// N/A N/A tick_script N/A N/A __salt__ N/A cp.cache_file tick_script __env__ N/A task_type N/A N/A cmd N/A N/A  -type {0} format task_type N/A N/A database retention_policy N/A N/A cmd N/A N/A  -dbrp {0}.{1} format database retention_policy N/A N/A _run_cmd cmd N/A delete_task N/A N/A name N/A N/A N/A 
    Delete a kapacitor task.

    name
        Name of the task to delete.

    CLI Example:

    .. code-block:: bash

        salt '*' kapacitor.delete_task cpu
     N/A N/A _run_cmd N/A N/A kapacitor delete tasks {0} format name N/A enable_task N/A N/A name N/A N/A N/A 
    Enable a kapacitor task.

    name
        Name of the task to enable.

    CLI Example:

    .. code-block:: bash

        salt '*' kapacitor.enable_task cpu
     N/A N/A _run_cmd N/A N/A kapacitor enable {0} format name N/A disable_task N/A N/A name N/A N/A N/A 
    Disable a kapacitor task.

    name
        Name of the task to disable.

    CLI Example:

    .. code-block:: bash

        salt '*' kapacitor.disable_task cpu
     N/A N/A _run_cmd N/A N/A kapacitor disable {0} format name N/A