%PDF- %PDF-
| Direktori : /proc/self/root/proc/3522530/root/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/self/root/proc/3522530/root/lib/python2.7/site-packages/salt/modules/telemetry.pyo |
�
���^c @@ s2 d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l m
Z
e j e � Z
y d d l Z e Z Wn e k
r� e Z n Xd Z d � Z d � Z d d d � Z d � Z d d
� Z d d d d � Z d d � Z d d
� Z d d d � Z d d d � Z d d d d d � Z d S( uf
Connection module for Telemetry
.. versionadded:: 2016.3.0
https://github.com/mongolab/mongolab-telemetry-api-docs/blob/master/alerts.md
:configuration: This module accepts explicit telemetry credentials or
can also read api key credentials from a pillar. More Information available
here__.
.. __: https://github.com/mongolab/mongolab-telemetry-api-docs/blob/master/alerts.md
In the minion's config file:
.. code-block:: yaml
telemetry.telemetry_api_keys:
- abc123 # Key 1
- efg321 # Backup Key 1
telemetry_api_base_url: https://telemetry-api.mongolab.com/v0
:depends: requests
i ( t absolute_importt unicode_literalst print_functionN( t sixu telemetryc C@ s t s
t St S( N( t HAS_REQUESTSt Falset __virtualname__( ( ( s: /usr/lib/python2.7/site-packages/salt/modules/telemetry.pyt __virtual__2 s c C@ s t d | � } | j d � S( Nu
config.optionu telemetry_api_base_url( t __salt__t get( t profilet config( ( s: /usr/lib/python2.7/site-packages/salt/modules/telemetry.pyt _get_telemetry_base9 s c C@ s� | d k r'