Revision 2a36ca49
b/doc/manual/source/devguide.rst | ||
---|---|---|
423 | 423 |
|
424 | 424 |
.. code-block:: javascript |
425 | 425 |
|
426 |
{ |
|
427 |
id: "<SHA-1>", |
|
428 |
occurredMillis: 1321020852, |
|
429 |
receivedMillis: 1321020852, |
|
430 |
clientID: "platform-wide-unique-ID", |
|
431 |
userID: "administrator@admin.grnet.gr", |
|
432 |
isActive: "true", |
|
433 |
role: "STUDENT", |
|
434 |
eventVersion: "1", |
|
435 |
eventType: "ACTIVE", |
|
436 |
details: { } |
|
437 |
} |
|
438 |
|
|
439 |
The meaning of the fields is as follows: |
|
426 | 440 |
|
441 |
- *id:* As above. |
|
442 |
- *occurredMillis:* As above. |
|
443 |
- *receivedMillis:* As above. |
|
444 |
- *clientID:* ``string`` A unique name for each message producer. |
|
445 |
- *userID:* ``string`` The ID of the user whom this event concerns |
|
446 |
- *isActive* ``boolean`` Whether the user is active or not (allowed values are |
|
447 |
``true`` or ``false``) |
|
448 |
- *eventVersion* ``string`` The event version. Currently fixed to "1". |
|
449 |
- *role* ``string`` The role of the user. If different than the role currently |
|
450 |
stored, the role will be changed. |
|
451 |
- *eventType* ``string (ACTIVE/SUSPENDED)`` The requested change to the user |
|
452 |
profile. |
|
453 |
- *details*: ``map[string, string]`` A map/dictionary indicating extra metadata for this resource event. Aquarium does not process this metadata. The field must always be present, even if it is empty. |
|
427 | 454 |
|
428 | 455 |
|
429 | 456 |
The charging algorithm |
430 | 457 |
---------------------- |
431 | 458 |
|
432 |
The |
|
433 | 459 |
|
434 | 460 |
The Aquarium REST API |
435 | 461 |
--------------------- |
Also available in: Unified diff