Difference between revisions of "stoney cloud: Notification Architecture"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(OpenLDAP directory)
(OpenLDAP directory)
Line 31: Line 31:
 
dn: ou=settings,uid=2000000,ou=reseller,ou=configuration,ou=backup,ou=services,o=stepping-stone,c=ch
 
dn: ou=settings,uid=2000000,ou=reseller,ou=configuration,ou=backup,ou=services,o=stepping-stone,c=ch
 
description: This sub tree stores the information about what can be modified in which scope.
 
description: This sub tree stores the information about what can be modified in which scope.
objectclass: top
+
objectClass: top
objectclass: organizationalUnit
+
objectClass: organizationalUnit
objectclass: sstServiceSettingsObjectClass
+
objectClass: sstServiceSettingsObjectClass
 
ou: settings
 
ou: settings
preferredlanguage: de-CH
+
preferredLanguage: de-CH
sstmailfrom: Support stepping stone GmbH <support@stepping-stone.ch>
+
sstMailFrom: Support stepping stone GmbH <support@stepping-stone.ch>
sstnotificationwarningmediumadd: TRUE
+
sstNotificationWarningMediumAdd: TRUE
sstnotificationwarningmediumchange: FALSE
+
sstNotificationWarningMediumChange: FALSE
sstquotachange: TRUE
+
sstQuotaChange: TRUE
sstsendcredentialsto: login
+
sstSendCredentialsTo: login
sstvolumecapacitydefault: 1073741824
+
sstVolumeCapacityDefault: 1073741824
sstvolumecapacitymax: 536870912000
+
sstVolumeCapacityMax: 536870912000
sstvolumecapacitymin: 1073741824
+
sstVolumeCapacityMin: 1073741824
sstvolumecapacitystep: 1073741824
+
sstVolumeCapacityStep: 1073741824
 
</pre>
 
</pre>
 +
Where
 +
* '''sstMailFrom''' is the e-mail address where the notification mail comes from
 +
* '''preferredLanguage''' the language in which the mail will be sent to the reseller
  
 
= Source Code =
 
= Source Code =

Revision as of 10:33, 5 December 2013

Overview

The pages describes the notification architecture.

Requirements

OpenLDAP directory

Each service needs a notification entry in the form of:

dn: ou=notifications,uid=<RESELLER>,ou=reseller,ou=configuration,ou=<SERVICE>,ou=services,dc=stoney-cloud,dc=org

and a settings entry in the form of:

dn: ou=settings,uid=<RESELLER>,ou=reseller,ou=configuration,ou=<SERVICE>,ou=services,dc=stoney-cloud,dc=org

The following example shows the backup service notification entry for the reseller with the uid 4000000:

dn: ou=notifications,uid=4000000,ou=reseller,ou=configuration,ou=backup,ou=services,dc=stoney-cloud,dc=org
objectclass: top
objectclass: organizationalUnit
objectclass: sstNotificationObjectClass
ou: notifications
description: The sub tree stores the notification information for the (online) backup service for the reseller Reseller Ltd. with the uid 4000000. This information is used independently of the notification settings of the users.
sstMailTo: Support stepping stone GmbH <support@stepping-stone.ch>
sstNotificationWarning: quota
sstNotificationWarning: schedule
sstNotificationWarning: unsuccessful

Where

  • sstMailTo is the e-mail address to which the reseller notifications are sent
  • sstNotificationWarning indicates which notifications should be sent to the specified address (sstMailTo), in this the, the reseller would receive notifications concerning:
    • backup quota
    • backup schedule
    • backup unseccessful

The following example shows the backup service settings entry for the reseller with the uid 4000000:

dn: ou=settings,uid=2000000,ou=reseller,ou=configuration,ou=backup,ou=services,o=stepping-stone,c=ch
description: This sub tree stores the information about what can be modified in which scope.
objectClass: top
objectClass: organizationalUnit
objectClass: sstServiceSettingsObjectClass
ou: settings
preferredLanguage: de-CH
sstMailFrom: Support stepping stone GmbH <support@stepping-stone.ch>
sstNotificationWarningMediumAdd: TRUE
sstNotificationWarningMediumChange: FALSE
sstQuotaChange: TRUE
sstSendCredentialsTo: login
sstVolumeCapacityDefault: 1073741824
sstVolumeCapacityMax: 536870912000
sstVolumeCapacityMin: 1073741824
sstVolumeCapacityStep: 1073741824

Where

  • sstMailFrom is the e-mail address where the notification mail comes from
  • preferredLanguage the language in which the mail will be sent to the reseller

Source Code

The source code is located in our GitHub Repository:

https://github.com/stepping-stone/notification