OpenShot Video Editor  2.0.0
Functions | Variables
metrics Namespace Reference

Functions

def send_metric (params)
 Send anonymous metric over HTTP for tracking. More...
 
def track_metric_error (error_name, is_fatal=False)
 Track an error has occurred. More...
 
def track_metric_event (event_action, event_label, event_category="General", event_value=0)
 Track a GUI screen being shown. More...
 
def track_metric_screen (screen_name)
 Track a GUI screen being shown. More...
 
def track_metric_session (is_start=True)
 Track a GUI screen being shown. More...
 

Variables

 libopenshot_version = openshot.GetVersion()
 
string linux_distro = "None"
 
string os_version = "X11; Linux %s"
 
dictionary params
 
 s = settings.get_settings()
 
string user_agent = "Mozilla/5.0 (%s) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
 
 v = platform.mac_ver()
 

Function Documentation

def metrics.send_metric (   params)

Send anonymous metric over HTTP for tracking.

Definition at line 144 of file metrics.py.

def metrics.track_metric_error (   error_name,
  is_fatal = False 
)

Track an error has occurred.

Definition at line 117 of file metrics.py.

def metrics.track_metric_event (   event_action,
  event_label,
  event_category = "General",
  event_value = 0 
)

Track a GUI screen being shown.

Definition at line 104 of file metrics.py.

def metrics.track_metric_screen (   screen_name)

Track a GUI screen being shown.

Definition at line 94 of file metrics.py.

def metrics.track_metric_session (   is_start = True)

Track a GUI screen being shown.

Definition at line 130 of file metrics.py.

Variable Documentation

metrics.libopenshot_version = openshot.GetVersion()

Definition at line 45 of file metrics.py.

string metrics.linux_distro = "None"

Definition at line 52 of file metrics.py.

string metrics.os_version = "X11; Linux %s"

Definition at line 51 of file metrics.py.

dictionary metrics.params
Initial value:
1 = {
2  "cid" : s.get("unique_install_id"), # Unique install ID
3  "v" : 1, # Google Measurement API version
4  "tid" : "UA-4381101-5", # Google Analytic Tracking ID
5  "an" : info.PRODUCT_NAME, # App Name
6  "aip" : 1, # Anonymize IP
7  "aid" : "org.openshot.%s" % info.NAME, # App ID
8  "av" : info.VERSION, # App Version
9  "ul" : language.get_current_locale().replace('_','-').lower(), # Current Locale
10  "ua" : user_agent, # Custom User Agent (for OS, Processor, and OS version)
11  "cd1" : libopenshot_version.ToString(), # Dimension 1: libopenshot version
12  "cd2" : platform.python_version(), # Dimension 2: python version (i.e. 3.4.3)
13  "cd3" : QT_VERSION_STR, # Dimension 3: qt5 version (i.e. 5.2.1)
14  "cd4" : PYQT_VERSION_STR, # Dimension 4: pyqt5 version (i.e. 5.2.1)
15  "cd5" : linux_distro
16 }
def get_current_locale()
Get the current locale name from the current system.
Definition: language.py:110

Definition at line 75 of file metrics.py.

metrics.s = settings.get_settings()

Definition at line 48 of file metrics.py.

string metrics.user_agent = "Mozilla/5.0 (%s) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"

Definition at line 73 of file metrics.py.

metrics.v = platform.mac_ver()

Definition at line 55 of file metrics.py.