コード例 #1
0
 def _get_pickle_path(cls):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'Datamonitor')
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return os.path.join(path, cls.__name__ + '.pickle')
コード例 #2
0
ファイル: check_status.py プロジェクト: 7040210/dd-agent
 def _get_pickle_path(cls):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'Datadog')
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return os.path.join(path, cls.__name__ + '.pickle')
コード例 #3
0
ファイル: jmx.py プロジェクト: darron/dd-agent
 def _get_dir(cls):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'Datadog')
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return path
コード例 #4
0
ファイル: jmx.py プロジェクト: chr0n1x/dd-agent
 def _get_dir(cls):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'Datadog')
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return path
コード例 #5
0
ファイル: check_status.py プロジェクト: vishalxebia/sts-agent
 def _get_pickle_path(cls, prefix=""):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'StackState')
         if not os.path.isdir(path):
             path = tempfile.gettempdir()
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return os.path.join(path, prefix + cls.__name__ + '.pickle')
コード例 #6
0
ファイル: jmx.py プロジェクト: ufou/sd-agent
 def _get_dir(cls):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'Server Density')
         if not os.path.isdir(path):
             path = tempfile.gettempdir()
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return path
コード例 #7
0
ファイル: jmx.py プロジェクト: serverdensity/sd-agent
 def _get_dir(cls):
     if Platform.is_win32():
         path = os.path.join(_windows_commondata_path(), 'Server Density')
         if not os.path.isdir(path):
             path = tempfile.gettempdir()
     elif os.path.isdir(PidFile.get_dir()):
         path = PidFile.get_dir()
     else:
         path = tempfile.gettempdir()
     return path