"Fossies" - the Fresh Open Source Software Archive

Member "monasca-events-api-2.0.0/doc/api-samples/v1/req_multiple_events.json" (14 Oct 2020, 6626 Bytes) of package /linux/misc/openstack/monasca-events-api-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "timestamp": "2012-10-29T13:42:11Z+0200",
    3   "events": [
    4     {
    5       "dimensions": {
    6         "service": "compute",
    7         "topic": "notification.sample",
    8         "hostname": "nova-compute:compute"
    9       },
   10       "project_id": "6f70656e737461636b20342065766572",
   11       "event": {
   12         "event_type": "instance.reboot.end",
   13         "payload": {
   14           "nova_object.data": {
   15             "architecture": "x86_64",
   16             "availability_zone": "nova",
   17             "created_at": "2012-10-29T13:42:11Z",
   18             "deleted_at": null,
   19             "display_name": "some-server",
   20             "display_description": "some-server",
   21             "fault": null,
   22             "host": "compute",
   23             "host_name": "some-server",
   24             "ip_addresses": [
   25               {
   26                 "nova_object.name": "IpPayload",
   27                 "nova_object.namespace": "nova",
   28                 "nova_object.version": "1.0",
   29                 "nova_object.data": {
   30                   "mac": "fa:16:3e:4c:2c:30",
   31                   "address": "192.168.1.3",
   32                   "port_uuid": "ce531f90-199f-48c0-816c-13e38010b442",
   33                   "meta": {},
   34                   "version": 4,
   35                   "label": "private-network",
   36                   "device_name": "tapce531f90-19"
   37                 }
   38               }
   39             ],
   40             "key_name": "my-key",
   41             "auto_disk_config": "MANUAL",
   42             "kernel_id": "",
   43             "launched_at": "2012-10-29T13:42:11Z",
   44             "image_uuid": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
   45             "metadata": {},
   46             "locked": false,
   47             "node": "fake-mini",
   48             "os_type": null,
   49             "progress": 0,
   50             "ramdisk_id": "",
   51             "reservation_id": "r-npxv0e40",
   52             "state": "active",
   53             "task_state": null,
   54             "power_state": "running",
   55             "tenant_id": "6f70656e737461636b20342065766572",
   56             "terminated_at": null,
   57             "flavor": {
   58               "nova_object.name": "FlavorPayload",
   59               "nova_object.data": {
   60                 "flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
   61                 "name": "test_flavor",
   62                 "projects": null,
   63                 "root_gb": 1,
   64                 "vcpus": 1,
   65                 "ephemeral_gb": 0,
   66                 "memory_mb": 512,
   67                 "disabled": false,
   68                 "rxtx_factor": 1.0,
   69                 "extra_specs": {
   70                   "hw:watchdog_action": "disabled"
   71                 },
   72                 "swap": 0,
   73                 "is_public": true,
   74                 "vcpu_weight": 0
   75               },
   76               "nova_object.version": "1.3",
   77               "nova_object.namespace": "nova"
   78             },
   79             "user_id": "fake",
   80             "uuid": "178b0921-8f85-4257-88b6-2e743b5a975c"
   81           },
   82           "nova_object.name": "InstanceActionPayload",
   83           "nova_object.namespace": "nova",
   84           "nova_object.version": "1.3"
   85         },
   86         "priority": "INFO",
   87         "publisher_id": "nova-compute:compute"
   88       }
   89     },
   90     {
   91       "dimensions": {
   92         "service": "compute",
   93         "topic": "notification.error",
   94         "hostname": "nova-compute:compute"
   95       },
   96       "project_id": "6f70656e737461636b20342065766572",
   97       "event": {
   98         "priority": "ERROR",
   99         "payload": {
  100           "nova_object.name": "InstanceActionPayload",
  101           "nova_object.data": {
  102             "state": "active",
  103             "availability_zone": "nova",
  104             "key_name": "my-key",
  105             "kernel_id": "",
  106             "host_name": "some-server",
  107             "progress": 0,
  108             "task_state": "rebuilding",
  109             "deleted_at": null,
  110             "architecture": null,
  111             "auto_disk_config": "MANUAL",
  112             "ramdisk_id": "",
  113             "locked": false,
  114             "created_at": "2012-10-29T13:42:11Z",
  115             "host": "compute",
  116             "display_name": "some-server",
  117             "os_type": null,
  118             "metadata": {},
  119             "ip_addresses": [
  120               {
  121                 "nova_object.name": "IpPayload",
  122                 "nova_object.data": {
  123                   "device_name": "tapce531f90-19",
  124                   "port_uuid": "ce531f90-199f-48c0-816c-13e38010b442",
  125                   "address": "192.168.1.3",
  126                   "version": 4,
  127                   "meta": {},
  128                   "label": "private-network",
  129                   "mac": "fa:16:3e:4c:2c:30"
  130                 },
  131                 "nova_object.version": "1.0",
  132                 "nova_object.namespace": "nova"
  133               }
  134             ],
  135             "power_state": "running",
  136             "display_description": "some-server",
  137             "uuid": "5fafd989-4043-44b4-8acc-907e847f4b70",
  138             "flavor": {
  139               "nova_object.name": "FlavorPayload",
  140               "nova_object.data": {
  141                 "disabled": false,
  142                 "ephemeral_gb": 0,
  143                 "extra_specs": {
  144                   "hw:watchdog_action": "disabled"
  145                 },
  146                 "flavorid": "a22d5517-147c-4147-a0d1-e698df5cd4e3",
  147                 "is_public": true,
  148                 "memory_mb": 512,
  149                 "name": "test_flavor",
  150                 "projects": null,
  151                 "root_gb": 1,
  152                 "rxtx_factor": 1.0,
  153                 "swap": 0,
  154                 "vcpu_weight": 0,
  155                 "vcpus": 1
  156               },
  157               "nova_object.version": "1.3",
  158               "nova_object.namespace": "nova"
  159             },
  160             "reservation_id": "r-pfiic52h",
  161             "terminated_at": null,
  162             "tenant_id": "6f70656e737461636b20342065766572",
  163             "node": "fake-mini",
  164             "launched_at": "2012-10-29T13:42:11Z",
  165             "user_id": "fake",
  166             "image_uuid": "a2459075-d96c-40d5-893e-577ff92e721c",
  167             "fault": {
  168               "nova_object.name": "ExceptionPayload",
  169               "nova_object.data": {
  170                 "module_name": "nova.tests.functional.notification_sample_tests.test_instance",
  171                 "exception_message": "Insufficient compute resources: fake-resource.",
  172                 "function_name": "_compute_resources_unavailable",
  173                 "exception": "ComputeResourcesUnavailable"
  174               },
  175               "nova_object.version": "1.0",
  176               "nova_object.namespace": "nova"
  177             }
  178           },
  179           "nova_object.version": "1.3",
  180           "nova_object.namespace": "nova"
  181         },
  182         "publisher_id": "nova-compute:compute",
  183         "event_type": "instance.rebuild.error"
  184       }
  185     }
  186   ]
  187 }