RssConfiguration

mod:RssConfiguration

Module that collects utility functions.

class DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.RssConfiguration

RssConfiguration:

{
  Config:
  {
    State        : Active | InActive,
    Cache        : 300,
    FromAddress  : 'email@site.domain'
    StatusType   :
    {
      default       : all,
      StorageElement: ReadAccess, WriteAccess, CheckAccess, RemoveAccess
    }
  }
}
__init__()
getConfigCache(default=300)

Gets from <pathToRSSConfiguration>/Config the value of Cache

getConfigFromAddress(default=None)

Gets from <pathToRSSConfiguration>/Config the value of FromAddress

getConfigState(default='InActive')

Gets from <pathToRSSConfiguration>/Config the value of State

getConfigStatusType(elementType=None)

Gets all the status types per elementType, if not given, it takes default from CS. If not, hardcoded variable DEFAULT.

DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.getNotifications()

Returns from the OperationsHelper: <_rssConfigPath>/Notification

DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.getPolicies()

Returns from the OperationsHelper: <_rssConfigPath>/Policies

DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.getPolicyActions()

Returns from the OperationsHelper: <_rssConfigPath>/PolicyActions

DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.getValidElements()

Returns from the OperationsHelper: <_rssConfigPath>/GeneralConfig/ValidElements

DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.getValidStatus()

Returns a list of statuses as were defined on the RSS(State)Machine

DIRAC.ResourceStatusSystem.Utilities.RssConfiguration.getnotificationGroups()

Returns from the OperationsHelper: <_rssConfigPath>/PolicyActions