NotificationClient

DIRAC Notification Client class encapsulates the methods exposed by the Notification service.

class DIRAC.FrameworkSystem.Client.NotificationClient.NotificationClient(rpcFunctor=False)

Bases: object

addNotificationForUser(user, message, lifetime=604800, deferToMail=True)
deleteAlarmsById(alarmIdList)
deleteAlarmsByKey(alarmKeyList)
deleteAssigneeGroup(groupName)
getAlarmInfo(alarmId)
getAlarms(selectDict, sortList, startItem, maxItems)
getAssigneeGroups()
getAssigneeGroupsForUser(user)
getNotifications(selectDict, sortList, startItem, maxItems)
getUsersInAssigneeGroup(groupName)
markNotificationsAsNotRead(user, notIds=[])
markNotificationsAsRead(user, notIds=[])
newAlarm(subject, status, notifications, assignee, body, priority, alarmKey='')
removeNotificationsForUser(user, notIds)
sendMail(addresses, subject, body, fromAddress=None, localAttempt=True, html=False, avoidSpam=False)

Send an e-mail with subject and body to the specified address. Try to send from local area before central service by default.

sendSMS(userName, body, fromAddress=None)

Send an SMS with body to the specified DIRAC user name.

setAssigneeGroup(groupName, userList)
updateAlarm(id=-1, alarmKey='', comment=False, modDict={})