OpenShot Video Editor  2.0.0
Functions | Variables
metrics Namespace Reference

Functions

def send_exception
 Send exception stacktrace over HTTP for tracking. More...
 
def send_metric
 Send anonymous metric over HTTP for tracking. More...
 
def track_exception_stacktrace
 Track an exception/stacktrace has occurred. More...
 
def track_metric_error
 Track an error has occurred. More...
 
def track_metric_event
 Track a GUI screen being shown. More...
 
def track_metric_screen
 Track a GUI screen being shown. More...
 
def track_metric_session
 Track a GUI screen being shown. More...
 

Variables

tuple libopenshot_version = openshot.GetVersion()
 
string linux_distro = "None"
 
string os_version = "X11; Linux %s"
 
dictionary params
 
tuple 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"
 
tuple v = platform.mac_ver()
 

Function Documentation

def metrics.send_exception (   stacktrace,
  source 
)

Send exception stacktrace over HTTP for tracking.

Definition at line 172 of file metrics.py.

def metrics.send_metric (   params)

Send anonymous metric over HTTP for tracking.

Definition at line 155 of file metrics.py.

def metrics.track_exception_stacktrace (   stacktrace,
  source 
)

Track an exception/stacktrace has occurred.

Definition at line 134 of file metrics.py.

def metrics.track_metric_error (   error_name,
  is_fatal = False 
)

Track an error has occurred.

Definition at line 121 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 107 of file metrics.py.

def metrics.track_metric_screen (   screen_name)

Track a GUI screen being shown.

Definition at line 96 of file metrics.py.

def metrics.track_metric_session (   is_start = True)

Track a GUI screen being shown.

Definition at line 140 of file metrics.py.

Variable Documentation

tuple metrics.libopenshot_version = openshot.GetVersion()

Definition at line 47 of file metrics.py.

string metrics.linux_distro = "None"

Definition at line 54 of file metrics.py.

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

Definition at line 53 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
Definition: language.py:158

Definition at line 77 of file metrics.py.

tuple metrics.s = settings.get_settings()

Definition at line 50 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 75 of file metrics.py.

tuple metrics.v = platform.mac_ver()

Definition at line 57 of file metrics.py.