WebAppClient
Module that contains client access to the WebApp handler.
- class DIRAC.MonitoringSystem.Client.WebAppClient.WebAppClient(url=None, **kwargs)
Bases:
ClientWebAppClient sets url for the WebAppHandler.
- __init__(url=None, **kwargs)
Sets URL for WebApp handler
- Parameters:
self – self reference
url – url of the WebAppHandler
kwargs – forwarded to the Base Client class
- property call
To be removed once we’re sure self.call has been removed
- Type:
Deprecated
- executeRPC(*parms, **kws)
This method extracts some parameters from kwargs that are used as parameter of the constructor or RPCClient. Unfortunately, only a few of all the available parameters of BaseClient are exposed.
- Parameters:
rpc – if an RPC client is passed, use that one
timeout – we can change the timeout on a per call bases. Default is self.timeout
url – We can specify which url to use
- getApplicationStates(cls, condDict, older, newer, **kwargs)
Return Distinct Values of ApplicationStatus job Attribute in WMS
Automatically created for the service function
export_getApplicationStates()- Parameters:
condDict – condDict
older – older
newer – newer
- getClientKWArgs()
Returns a copy of the connection arguments
- getDistinctAttributeValues(cls, attribute, selectDict, **kwargs)
Automatically created for the service function
export_getDistinctAttributeValues()- Parameters:
attribute – attribute
selectDict – selectDict
- getJobGroups(cls, condDict, older, cutDate, **kwargs)
Return Distinct Values of ProductionId job Attribute in WMS
Automatically created for the service function
export_getJobGroups()- Parameters:
condDict – condDict
older – older
cutDate – cutDate
- getJobPageSummaryWeb(self, selectDict, sortList, startItem, maxItems, selectJobs, **kwargs)
Get the summary of the job information for a given page in the job monitor in a generic format
Automatically created for the service function
export_getJobPageSummaryWeb()- Parameters:
selectDict – selectDict
sortList – sortList
startItem – startItem
maxItems – maxItems
selectJobs – selectJobs
- getJobStats(cls, attribute, selectDict, **kwargs)
Get job statistics distribution per attribute value with a given selection
Automatically created for the service function
export_getJobStats()- Parameters:
attribute – attribute
selectDict – selectDict
- getJobTypes(cls, condDict, older, newer, **kwargs)
Return Distinct Values of JobType job Attribute in WMS
Automatically created for the service function
export_getJobTypes()- Parameters:
condDict – condDict
older – older
newer – newer
- getJobsCounters(cls, attrList, attrDict, cutDate, **kwargs)
Retrieve list of distinct attributes values from attrList with attrDict as condition. For each set of distinct values, count number of occurences. Return a list. Each item is a list with 2 items, the list of distinct attribute values and the counter
Automatically created for the service function
export_getJobsCounters()- Parameters:
attrList – attrList
attrDict – attrDict
cutDate – cutDate
- getMinorStates(cls, condDict, older, newer, **kwargs)
Return Distinct Values of Minor Status job Attribute in WMS
Automatically created for the service function
export_getMinorStates()- Parameters:
condDict – condDict
older – older
newer – newer
- getOwnerGroup(cls, **kwargs)
Return Distinct Values of OwnerGroup from the JobDB
Automatically created for the service function
export_getOwnerGroup()
- getOwners(cls, condDict, older, newer, **kwargs)
Return Distinct Values of Owner job Attribute in WMS
Automatically created for the service function
export_getOwners()- Parameters:
condDict – condDict
older – older
newer – newer
- getPilotMonitorSelectors(cls, **kwargs)
Get all the distinct selector values for the Pilot Monitor web portal page
Automatically created for the service function
export_getPilotMonitorSelectors()
- getPilotMonitorWeb(cls, selectDict, sortList, startItem, maxItems, **kwargs)
Get the summary of the pilot information for a given page in the pilot monitor in a generic format
Automatically created for the service function
export_getPilotMonitorWeb()- Parameters:
selectDict – selectDict
sortList – sortList
startItem – startItem
maxItems – maxItems
- getPilotStatistics(cls, attribute, selectDict, **kwargs)
Get pilot statistics distribution per attribute value with a given selection
Automatically created for the service function
export_getPilotStatistics()- Parameters:
attribute – attribute
selectDict – selectDict
- getPilotSummaryWeb(cls, selectDict, sortList, startItem, maxItems, **kwargs)
Get the summary of the pilot information for a given page in the pilot monitor in a generic format
Automatically created for the service function
export_getPilotSummaryWeb()- Parameters:
selectDict – selectDict
sortList – sortList
startItem – startItem
maxItems – maxItems
- getPilotsCounters(cls, table, keys, condDict, newer, timeStamp, **kwargs)
Set the pilot agent status
Automatically created for the service function
export_getPilotsCounters()- Parameters:
table – table
keys – keys
condDict – condDict
newer – newer
timeStamp – timeStamp
- getServer()
Getter for the server url. Useful ?
- getSiteSummarySelectors(cls, **kwargs)
Get all the distinct selector values for the site summary web portal page
- Returns:
S_OK(dict)/S_ERROR()
Automatically created for the service function
export_getSiteSummarySelectors()
- getSiteSummaryWeb(cls, selectDict, sortList, startItem, maxItems, **kwargs)
Get the summary of the jobs running on sites in a generic format
- Parameters:
- Returns:
S_OK(dict)/S_ERROR()
Automatically created for the service function
export_getSiteSummaryWeb()
- getSites(cls, condDict, older, newer, **kwargs)
Return Distinct Values of Site job Attribute in WMS
Automatically created for the service function
export_getSites()- Parameters:
condDict – condDict
older – older
newer – newer
- getStates(cls, condDict, older, newer, **kwargs)
Return Distinct Values of Status job Attribute in WMS
Automatically created for the service function
export_getStates()- Parameters:
condDict – condDict
older – older
newer – newer
- getTransformationFilesSummaryWeb(cls, selectDict, sortList, startItem, maxItems, **kwargs)
Automatically created for the service function
export_getTransformationFilesSummaryWeb()- Parameters:
selectDict – selectDict
sortList – sortList
startItem – startItem
maxItems – maxItems
- getTransformationSummaryWeb(cls, selectDict, sortList, startItem, maxItems, **kwargs)
Get the summary of the transformation information for a given page in the generic format
Automatically created for the service function
export_getTransformationSummaryWeb()- Parameters:
selectDict – selectDict
sortList – sortList
startItem – startItem
maxItems – maxItems
- httpsClient
alias of
TornadoClient
- setServer(url)
Set the server URL used by default
- Parameters:
url – url of the service