|
1 | | -# `com.adobe.aio.aem.event.management` |
| 1 | +# `aio-aem-events-mgmt` |
2 | 2 |
|
3 | | -`com.adobe.aio.aem.event.management` is a Java OSGI bundle hosting OSGI Components |
4 | | -wrapping [`aio-lib-java-events-mgmt`](../../events_mgmt_aem) |
| 3 | +`aio-aem-events-mgmt` is a Java OSGI bundle hosting OSGI Components |
| 4 | +wrapping [`aio-lib-java-events-mgmt`](../../events_mgmt) |
5 | 5 |
|
| 6 | +It hosts the services to |
| 7 | +* register the AEM instance/cluster on which is is deployed as an Adobe I/O Events Provider |
| 8 | + * by default it will use the `author` [Externalizer](https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/commons/Externalizer.html) configuration to compute the AEM rootUrl, |
| 9 | +Adobe I/O Events provider instanceId, label and description |
| 10 | +* register its various event metadata (see configuration below) against Adobe I/O Events |
| 11 | + |
| 12 | +## Configuration |
| 13 | + |
| 14 | +This bundle leverages [aio-aem-core](../core_aem) which expects a Workspace Adobe Developer Console `Workspace` Configuration |
| 15 | + |
| 16 | +This bundle will look up [Adobe I/O Event Metadata OSGI configuration](src/main/java/com/adobe/aio/aem/event/management/ocd/EventMetadataConfig.java): |
| 17 | +to drive the event metadata registration against Adobe I/O Events. |
| 18 | + |
| 19 | +Confer the [aem-io-events](../aio_aem_events) package, |
| 20 | +where we added a [`ping` Event Metadata configuration](../aio_aem_events/src/cs/content/jcr_root/apps/aio-aem-events/osgiconfig/config/com.adobe.aio.aem.event.management.internal.EventMetadataSupplierImpl-ping.cfg.json) |
| 21 | + |
| 22 | + { |
| 23 | + "aio.event.code": "ping", |
| 24 | + "aio.event.label": "ping", |
| 25 | + "aio.event.description": "ping event" |
| 26 | + } |
| 27 | + |
| 28 | +For advanced use case you may also tune various other configurations: set for instance the externalizer name to `publish` instead of `author`. |
| 29 | + |
| 30 | +## Status Check |
| 31 | + |
| 32 | +This bundle comes with a few status endpoints: |
| 33 | + |
| 34 | +### Adobe I/O Events Provider configuration check |
| 35 | + |
| 36 | +From [bin/aio/events/provider_config.json](http://localhost:4502/bin/aio/events/provider_config.json) |
| 37 | +you can `GET` the status of your Adobe I/O Events provider configuration. |
| 38 | + |
| 39 | +The response json payload should like this: |
| 40 | + |
| 41 | + { |
| 42 | + "status": "up", |
| 43 | + "details": { |
| 44 | + "root_url": "https://author-p1234-e5678.adobeaemcloud.com/", |
| 45 | + "provider_input_model": { |
| 46 | + "label": "author-p1234-e5678", |
| 47 | + "description": "AEM author-p1234-e5678", |
| 48 | + "instance_id": "author-p1234-e5678", |
| 49 | + "provider_metadata": "aem", |
| 50 | + "docs_url": "https://developer.adobe.com/events/docs/guides/using/aem/" |
| 51 | + }, |
| 52 | + "externalizer_name": "author" |
| 53 | + }, |
| 54 | + "error": null |
| 55 | + } |
| 56 | + |
| 57 | +### Adobe I/O Events Provider registration check |
| 58 | + |
| 59 | +From [bin/aio/events/provider.json](http://localhost:4502/bin/aio/events/provider.json) |
| 60 | +you can `GET` the status of your Adobe I/O Events provider registration. |
| 61 | + |
| 62 | +The response json payload should like this: |
| 63 | + |
| 64 | + { |
| 65 | + "status": "up", |
| 66 | + "details": { |
| 67 | + "provider_already_registered": true, |
| 68 | + "registered_provider": { |
| 69 | + "id": "...", |
| 70 | + ... |
| 71 | + }, |
| 72 | + ... |
| 73 | + }, |
| 74 | + "error": null |
| 75 | + } |
| 76 | + |
| 77 | +### Adobe I/O Events Event Metadata registration check |
| 78 | + |
| 79 | +From [bin/aio/events/event_metadata.json](http://localhost:4502/bin/aio/events/event_metadata.json) |
| 80 | +you can `GET` the status of your Adobe I/O Events Event Metadata registration. |
| 81 | + |
| 82 | +The response json payload should like this: |
| 83 | + |
| 84 | + { |
| 85 | + "status": "up", |
| 86 | + "details": { |
| 87 | + "size": "12", |
| 88 | + "event_metadata": { |
| 89 | + "ping": { |
| 90 | + "configuredEventMetadata": { |
| 91 | + "event_code": "ping", |
| 92 | + ... |
| 93 | + }, |
| 94 | + "registeredEventMetadata": { |
| 95 | + "event_code": "ping", |
| 96 | + ... |
| 97 | + }, |
| 98 | + "error": null, |
| 99 | + "up": true |
| 100 | + }, |
| 101 | + ... |
| 102 | + } |
| 103 | + "error": null |
| 104 | + } |
| 105 | + |
6 | 106 | ## Builds |
7 | 107 |
|
8 | 108 | This Library is build with [maven](https://maven.apache.org/) |
|
0 commit comments