diff --git a/doc/notification_samples/common_payloads/ServiceStatusPayload.json b/doc/notification_samples/common_payloads/ServiceStatusPayload.json new file mode 100644 index 000000000000..e3b12e235a45 --- /dev/null +++ b/doc/notification_samples/common_payloads/ServiceStatusPayload.json @@ -0,0 +1,19 @@ +{ + "nova_object.name": "ServiceStatusPayload", + "nova_object.namespace": "nova", + "nova_object.version": "1.1", + "nova_object.data": { + "host": "host2", + "disabled": false, + "binary": "nova-compute", + "topic": "compute", + "disabled_reason": null, + "forced_down": false, + "version": 23, + "availability_zone": null, + "uuid": "fa69c544-906b-4a6a-a9c6-c1f7a8078c73", + "last_seen_up": null, + "report_count": 0 + } +} + diff --git a/doc/notification_samples/service-create.json b/doc/notification_samples/service-create.json index 3855b1e5a15c..982bc93dd434 100644 --- a/doc/notification_samples/service-create.json +++ b/doc/notification_samples/service-create.json @@ -1,23 +1,9 @@ { "priority": "INFO", "payload": { - "nova_object.namespace": "nova", - "nova_object.name": "ServiceStatusPayload", - "nova_object.version": "1.1", - "nova_object.data": { - "host": "host2", - "disabled": false, - "last_seen_up": null, - "binary": "nova-compute", - "topic": "compute", - "disabled_reason": null, - "report_count": 0, - "forced_down": false, - "version": 23, - "availability_zone": null, - "uuid": "fa69c544-906b-4a6a-a9c6-c1f7a8078c73" - } + "$ref": "common_payloads/ServiceStatusPayload.json#" }, "event_type": "service.create", "publisher_id": "nova-compute:host2" } + diff --git a/doc/notification_samples/service-delete.json b/doc/notification_samples/service-delete.json index 02d2623d5c89..c17d2ad7c9fa 100644 --- a/doc/notification_samples/service-delete.json +++ b/doc/notification_samples/service-delete.json @@ -1,23 +1,9 @@ { "priority": "INFO", "payload": { - "nova_object.namespace": "nova", - "nova_object.name": "ServiceStatusPayload", - "nova_object.version": "1.1", - "nova_object.data": { - "host": "host2", - "disabled": false, - "last_seen_up": null, - "binary": "nova-compute", - "topic": "compute", - "disabled_reason": null, - "report_count": 0, - "forced_down": false, - "version": 23, - "availability_zone": null, - "uuid": "32887c0a-5063-4d39-826f-4903c241c376" - } + "$ref": "common_payloads/ServiceStatusPayload.json#" }, "event_type": "service.delete", "publisher_id": "nova-compute:host2" } + diff --git a/doc/notification_samples/service-update.json b/doc/notification_samples/service-update.json index dedb9389f4b4..7f95e3b8d1ca 100644 --- a/doc/notification_samples/service-update.json +++ b/doc/notification_samples/service-update.json @@ -1,23 +1,14 @@ { "priority": "INFO", "payload": { - "nova_object.namespace": "nova", - "nova_object.name": "ServiceStatusPayload", - "nova_object.version": "1.1", + "$ref": "common_payloads/ServiceStatusPayload.json#", "nova_object.data": { "host": "host1", - "disabled": false, "last_seen_up": "2012-10-29T13:42:05Z", - "binary": "nova-compute", - "topic": "compute", - "disabled_reason": null, - "report_count": 1, - "forced_down": false, - "version": 23, - "availability_zone": null, - "uuid": "fa69c544-906b-4a6a-a9c6-c1f7a8078c73" + "report_count": 1 } }, "event_type": "service.update", "publisher_id": "nova-compute:host1" } +