Interface

getUrlToDashboardByName(name,hostname) 
  • obtain the url of a dashboards whose name is name

 

Usage

  • First you have to create/refresh the dictionnary. You can use the fonction
    recreateDashboardsDictionnary() 
    from any dashboards or execute the script by itself :
C:\Program Files (x86)\Tango04\Dashboards\t04custom>python.exe dashboards.py 
  • It will load look at the configuration of the dashboard to build a dictionary of the Uuid of the dashboards by their name.
Updating cached Dashboards dictionary Name->Uuid Processing file Solaris_Long_Term.t04panel Processing file _1d9042ca_2bab_41a6_a924_b35fdb88d21e.t04panel Processing file _24b3e84c_d2ca_4353_8d7e_ef72c457065e.t04panel Processing file _2bc9d166_6030_4fb3_9f5a_dc14deb9e186.t04panel Processing file _2df2426f_7223_4547_b7ec_665abfba93ce.t04panel Processing file _2f3633cf_edd0_40a4_993c_65f1d418f230.t04panel ... 
  • Afterwards you can use in the python of the Dashboards
import sys sys.path.append(r"C:\Program Files (x86)\Tango04\Dashboards") from t04custom import dashboards Url= dashboards.getUrlToDashboardByName("t04custom.dashboards",'toto') 

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: October 23, 2018