<s> from libsaas . filters import auth <EOL> from libsaas . services import base <EOL> from . import actions , analysis , checks , contacts , credit , probes , reference <EOL> from . import reports , results , servertime , settings , summary <EOL> from . import single , traceroute <EOL> class Pingdom ( base . Resource ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def __init__ ( self , username , password , app_key ) : <EOL> """<STR_LIT>""" <EOL> self . apiroot = '<STR_LIT>' <EOL> self . app_key = app_key <EOL> self . add_filter ( auth . BasicAuth ( username , password ) ) <EOL> self . add_filter ( self . add_app_header ) <EOL> def add_app_header ( self , request ) : <EOL> request . headers [ '<STR_LIT>' ] = self . app_key <EOL> def get_url ( self ) : <EOL> return self . apiroot <EOL> @ base . resource ( actions . Actions ) <EOL> def actions ( self ) : <EOL> """<STR_LIT>""" <EOL> return actions . Actions ( self ) <EOL> @ base . resource ( analysis . Analysis ) <EOL> def analysis ( self , checkid ) : <EOL> """<STR_LIT>""" <EOL> return analysis . Analysis ( self , checkid ) <EOL> @ base . resource ( checks . Check ) <EOL> def check ( self , checkid ) : <EOL> """<STR_LIT>""" <EOL> return checks . Check ( self , checkid ) <EOL> @ base . resource ( checks . Checks ) <EOL> def checks ( self ) : <EOL> """<STR_LIT>""" <EOL> return checks . Checks ( self ) <EOL> @ base . resource ( contacts . Contact ) <EOL> def contact ( self , contactid ) : <EOL> """<STR_LIT>""" <EOL> return contacts . Contact ( self , contactid ) <EOL> @ base . resource ( contacts . Contacts ) <EOL> def contacts ( self ) : <EOL> """<STR_LIT>""" <EOL> return contacts . Contacts ( self ) <EOL> @ base . resource ( credit . Credits ) <EOL> def credits ( self ) : <EOL> """<STR_LIT>""" <EOL> return credit . Credits ( self ) <EOL> @ base . resource ( probes . Probes ) <EOL> def probes ( self ) : <EOL> """<STR_LIT>""" <EOL> return probes . Probes ( self ) <EOL> @ base . resource ( reference . Reference ) <EOL> def reference ( self ) : <EOL> """<STR_LIT>""" <EOL> return reference . Reference ( self ) <EOL> @ base . resource ( reports . ReportsEmail ) <EOL> def reports_email ( self ) : <EOL> """<STR_LIT>""" <EOL> return reports . ReportsEmail ( self ) <EOL> @ base . resource ( reports . ReportsEmail ) <EOL> def report_email ( self , reportid ) : <EOL> """<STR_LIT>""" <EOL> return reports . ReportsEmail ( self , reportid ) <EOL> @ base . resource ( reports . ReportsPublic ) <EOL> def reports_public ( self ) : <EOL> """<STR_LIT>""" <EOL> return reports . ReportsPublic ( self ) <EOL> @ base . resource ( reports . ReportsPublic ) <EOL> def report_public ( self , reportid ) : <EOL> """<STR_LIT>""" <EOL> return reports . ReportsPublic ( self , reportid ) <EOL> @ base . resource ( reports . ReportsShared ) <EOL> def reports_shared ( self ) : <EOL> """<STR_LIT>""" <EOL> return reports . ReportsShared ( self ) <EOL> @ base . resource ( reports . ReportsShared ) <EOL> def report_shared ( self , reportid ) : <EOL> """<STR_LIT>""" <EOL> return reports . ReportsShared ( self , reportid ) <EOL> @ base . resource ( results . Results ) <EOL> def results ( self , checkid ) : <EOL> """<STR_LIT>""" <EOL> return results . Results ( self , checkid ) <EOL> @ base . resource ( servertime . Servertime ) <EOL> def servertime ( self ) : <EOL> """<STR_LIT>""" <EOL> return servertime . Servertime ( self ) <EOL> @ base . resource ( settings . Settings ) <EOL> def settings ( self ) : <EOL> """<STR_LIT>""" <EOL> return settings . Settings ( self ) <EOL> @ base . resource ( summary . Summary ) <EOL> def summary ( self , checkid ) : <EOL> """<STR_LIT>""" <EOL> return summary . Summary ( self , checkid ) <EOL> @ base . resource ( single . Single ) <EOL> def single ( self ) : <EOL> """<STR_LIT>""" <EOL> return single . Single ( self ) <EOL> @ base . resource ( traceroute . Traceroute ) <EOL> def traceroute ( self ) : <EOL> """<STR_LIT>""" <EOL> return traceroute . Traceroute ( self ) </s>
