Skip to content

Instantly share code, notes, and snippets.

@vincent99
Created June 8, 2015 22:48
Show Gist options
  • Save vincent99/8f17efd30e91c67d257a to your computer and use it in GitHub Desktop.
Save vincent99/8f17efd30e91c67d257a to your computer and use it in GitHub Desktop.
{
"id": "ec934d81-0db9-42fa-a6da-82813db92461",
"name": "resource.change",
"replyTo": null,
"resourceId": "1lb2",
"resourceType": "loadBalancer",
"publisher": null,
"transitioning": null,
"transitioningMessage": null,
"transitioningInternalMessage": null,
"previousIds": null,
"previousNames": null,
"data": {
"resource": {
"id": "1lb2",
"type": "loadBalancer",
"links": {
"self": "http://localhost:8000/v1/loadbalancers/1lb2",
"account": "http://localhost:8000/v1/loadbalancers/1lb2/account",
"hosts": "http://localhost:8000/v1/loadbalancers/1lb2/hosts",
"loadBalancerConfig": "http://localhost:8000/v1/loadbalancers/1lb2/loadbalancerconfig",
"loadBalancerHostMaps": "http://localhost:8000/v1/loadbalancers/1lb2/loadbalancerhostmaps",
"loadBalancerTargets": "http://localhost:8000/v1/loadbalancers/1lb2/loadbalancertargets"
},
"actions": {
"update": "http://localhost:8000/v1/loadbalancers/1lb2/?action=update",
"sethosts": "http://localhost:8000/v1/loadbalancers/1lb2/?action=sethosts",
"addtarget": "http://localhost:8000/v1/loadbalancers/1lb2/?action=addtarget",
"removehost": "http://localhost:8000/v1/loadbalancers/1lb2/?action=removehost",
"remove": "http://localhost:8000/v1/loadbalancers/1lb2/?action=remove",
"addhost": "http://localhost:8000/v1/loadbalancers/1lb2/?action=addhost",
"removetarget": "http://localhost:8000/v1/loadbalancers/1lb2/?action=removetarget",
"settargets": "http://localhost:8000/v1/loadbalancers/1lb2/?action=settargets"
},
"name": "alb",
"state": "active",
"accountId": "1a5",
"created": "2015-06-08T22:08:17Z",
"createdTS": 1433801297000,
"description": null,
"globalLoadBalancerId": null,
"hosts": [
{
"id": "1h1",
"type": "host",
"links": {
"self": "http://localhost:8000/v1/hosts/1h1",
"account": "http://localhost:8000/v1/hosts/1h1/account",
"clusters": "http://localhost:8000/v1/hosts/1h1/clusters",
"containerEvents": "http://localhost:8000/v1/hosts/1h1/containerevents",
"hostLabels": "http://localhost:8000/v1/hosts/1h1/hostlabels",
"instances": "http://localhost:8000/v1/hosts/1h1/instances",
"ipAddresses": "http://localhost:8000/v1/hosts/1h1/ipaddresses",
"loadBalancerHostMaps": "http://localhost:8000/v1/hosts/1h1/loadbalancerhostmaps",
"loadBalancers": "http://localhost:8000/v1/hosts/1h1/loadbalancers",
"physicalHost": "http://localhost:8000/v1/hosts/1h1/physicalhost",
"serviceEvents": "http://localhost:8000/v1/hosts/1h1/serviceevents",
"storagePools": "http://localhost:8000/v1/hosts/1h1/storagepools",
"stats": "http://localhost:8000/v1/hosts/1h1/stats"
},
"actions": {
"update": "http://localhost:8000/v1/hosts/1h1/?action=update",
"deactivate": "http://localhost:8000/v1/hosts/1h1/?action=deactivate"
},
"name": "vincent2-10acre-1",
"state": "active",
"accountId": "1a5",
"computeTotal": 1000000,
"created": "2015-06-08T04:51:44Z",
"createdTS": 1433739104000,
"description": null,
"info": {
"osInfo": {
"versionDescription": "trusty",
"kernelVersion": "3.16.0-31-generic",
"distribution": "Ubuntu",
"version": "14.04",
"dockerVersion": "Docker version 1.6.0, build 4749651"
},
"cpuInfo": {
"count": 1,
"cpuCoresPercentages": [
3.279
],
"loadAvg": [
0,
0.04,
0.05
],
"mhz": 2500,
"modelName": "Intel(R) Xeon(R) CPU @ 2.50GHz"
},
"memoryInfo": {
"memTotal": 3701.258,
"swapTotal": 0,
"cached": 2629.906,
"swapCached": 0,
"swapFree": 0,
"memAvailable": 3236.66,
"memFree": 409.926,
"inactive": 1623.711,
"active": 1305.355,
"buffers": 172.84
},
"diskInfo": {
"mountPoints": {
"/dev/disk/by-uuid/d1dafa85-9814-47b2-82e2-7b96783380ec": {
"total": 10046.305,
"free": 6635.969,
"used": 3410.336,
"percentUsed": 33.95
}
}
}
},
"kind": "docker",
"labels": null,
"physicalHostId": "1ph1",
"removed": null,
"transitioning": "no",
"transitioningMessage": null,
"transitioningProgress": null,
"uuid": "4fe9c30f-98d9-413b-8640-e64b93fd16c0"
},
{
"id": "1h2",
"type": "host",
"links": {
"self": "http://localhost:8000/v1/hosts/1h2",
"account": "http://localhost:8000/v1/hosts/1h2/account",
"clusters": "http://localhost:8000/v1/hosts/1h2/clusters",
"containerEvents": "http://localhost:8000/v1/hosts/1h2/containerevents",
"hostLabels": "http://localhost:8000/v1/hosts/1h2/hostlabels",
"instances": "http://localhost:8000/v1/hosts/1h2/instances",
"ipAddresses": "http://localhost:8000/v1/hosts/1h2/ipaddresses",
"loadBalancerHostMaps": "http://localhost:8000/v1/hosts/1h2/loadbalancerhostmaps",
"loadBalancers": "http://localhost:8000/v1/hosts/1h2/loadbalancers",
"physicalHost": "http://localhost:8000/v1/hosts/1h2/physicalhost",
"serviceEvents": "http://localhost:8000/v1/hosts/1h2/serviceevents",
"storagePools": "http://localhost:8000/v1/hosts/1h2/storagepools",
"stats": "http://localhost:8000/v1/hosts/1h2/stats"
},
"actions": {
"update": "http://localhost:8000/v1/hosts/1h2/?action=update",
"deactivate": "http://localhost:8000/v1/hosts/1h2/?action=deactivate"
},
"name": "vincent2-10acre-2",
"state": "active",
"accountId": "1a5",
"computeTotal": 1000000,
"created": "2015-06-08T04:51:44Z",
"createdTS": 1433739104000,
"description": null,
"info": {
"osInfo": {
"versionDescription": "trusty",
"kernelVersion": "3.16.0-31-generic",
"distribution": "Ubuntu",
"version": "14.04",
"dockerVersion": "Docker version 1.6.0, build 4749651"
},
"cpuInfo": {
"count": 1,
"cpuCoresPercentages": [
3.207
],
"loadAvg": [
0.2,
0.11,
0.11
],
"mhz": 2499.998,
"modelName": "Intel(R) Xeon(R) CPU @ 2.50GHz"
},
"memoryInfo": {
"memTotal": 3701.258,
"swapTotal": 0,
"cached": 2631.016,
"swapCached": 0,
"swapFree": 0,
"memAvailable": 3236.367,
"memFree": 408.059,
"inactive": 1631.555,
"active": 1302.012,
"buffers": 172.887
},
"diskInfo": {
"mountPoints": {
"/dev/disk/by-uuid/d1dafa85-9814-47b2-82e2-7b96783380ec": {
"total": 10046.305,
"free": 6634.727,
"used": 3411.578,
"percentUsed": 33.96
}
}
}
},
"kind": "docker",
"labels": null,
"physicalHostId": "1ph2",
"removed": null,
"transitioning": "no",
"transitioningMessage": null,
"transitioningProgress": null,
"uuid": "d56c455a-9ba1-4b72-8872-70af8f7f0e3c"
}
],
"kind": "loadBalancer",
"loadBalancerConfig": {
"id": "1lbc2",
"type": "loadBalancerConfig",
"links": {
"self": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2",
"account": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/account",
"loadBalancerConfigListenerMaps": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/loadbalancerconfiglistenermaps",
"loadBalancerListeners": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/loadbalancerlisteners",
"loadBalancers": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/loadbalancers"
},
"actions": {
"removelistener": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/?action=removelistener",
"update": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/?action=update",
"remove": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/?action=remove",
"setlisteners": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/?action=setlisteners",
"addlistener": "http://localhost:8000/v1/loadbalancerconfigs/1lbc2/?action=addlistener"
},
"name": "alb",
"state": "active",
"accountId": "1a5",
"appCookieStickinessPolicy": null,
"created": "2015-06-08T22:08:15Z",
"createdTS": 1433801295000,
"description": null,
"healthCheck": {
"interval": 2000,
"responseTimeout": 2000,
"healthyThreshold": 2,
"unhealthyThreshold": 3,
"requestLine": "",
"port": null
},
"kind": "loadBalancerConfig",
"lbCookieStickinessPolicy": null,
"removed": null,
"serviceId": null,
"transitioning": "no",
"transitioningMessage": null,
"transitioningProgress": null,
"uuid": "4e1befb4-f184-4c8d-a04f-eee202ffd938"
},
"loadBalancerConfigId": "1lbc2",
"loadBalancerTargets": [
{
"id": "1lbt1",
"type": "loadBalancerTarget",
"links": {
"self": "http://localhost:8000/v1/loadbalancertargets/1lbt1",
"account": "http://localhost:8000/v1/loadbalancertargets/1lbt1/account",
"instance": "http://localhost:8000/v1/loadbalancertargets/1lbt1/instance",
"loadBalancer": "http://localhost:8000/v1/loadbalancertargets/1lbt1/loadbalancer"
},
"actions": {
"remove": "http://localhost:8000/v1/loadbalancertargets/1lbt1/?action=remove"
},
"name": null,
"state": "active",
"accountId": "1a5",
"created": "2015-06-08T22:08:18Z",
"createdTS": 1433801298000,
"description": null,
"instanceId": "1i1",
"ipAddress": null,
"kind": "loadBalancerTarget",
"loadBalancerId": "1lb2",
"removed": null,
"transitioning": "no",
"transitioningMessage": null,
"transitioningProgress": null,
"uuid": "3f8c2ec5-564d-4262-875e-62998f342f2f"
},
{
"id": "1lbt2",
"type": "loadBalancerTarget",
"links": {
"self": "http://localhost:8000/v1/loadbalancertargets/1lbt2",
"account": "http://localhost:8000/v1/loadbalancertargets/1lbt2/account",
"instance": "http://localhost:8000/v1/loadbalancertargets/1lbt2/instance",
"loadBalancer": "http://localhost:8000/v1/loadbalancertargets/1lbt2/loadbalancer"
},
"actions": {
"remove": "http://localhost:8000/v1/loadbalancertargets/1lbt2/?action=remove"
},
"name": null,
"state": "active",
"accountId": "1a5",
"created": "2015-06-08T22:08:18Z",
"createdTS": 1433801298000,
"description": null,
"instanceId": "1i3",
"ipAddress": null,
"kind": "loadBalancerTarget",
"loadBalancerId": "1lb2",
"removed": null,
"transitioning": "no",
"transitioningMessage": null,
"transitioningProgress": null,
"uuid": "382c7fee-7eb2-4bd5-a2f6-a98f10b85440"
}
],
"removed": null,
"serviceId": null,
"transitioning": "no",
"transitioningMessage": null,
"transitioningProgress": null,
"uuid": "63657f6a-7a59-4e37-a3a6-d0b296481bf2",
"weight": null
}
},
"time": 1433803520883,
"timeoutMillis": null,
"transitioningProgress": null,
"context": null
}
{
"id": "79ef616c-6c0b-47f1-8719-9e73e3427390",
"name": "resource.change",
"replyTo": null,
"resourceId": "1lbhm13",
"resourceType": "loadBalancerHostMap",
"publisher": null,
"transitioning": null,
"transitioningMessage": null,
"transitioningInternalMessage": null,
"previousIds": null,
"previousNames": null,
"data": {
"resource": {
"id": "1lbhm13",
"type": "loadBalancerHostMap",
"links": {
"self": "http://localhost:8000/v1/loadbalancerhostmaps/1lbhm13",
"account": "http://localhost:8000/v1/loadbalancerhostmaps/1lbhm13/account",
"host": "http://localhost:8000/v1/loadbalancerhostmaps/1lbhm13/host",
"loadBalancer": "http://localhost:8000/v1/loadbalancerhostmaps/1lbhm13/loadbalancer"
},
"actions": {},
"name": null,
"state": "removed",
"accountId": "1a5",
"created": "2015-06-08T22:38:59Z",
"createdTS": 1433803139000,
"description": null,
"hostId": "1h2",
"kind": "loadBalancerHostMap",
"loadBalancerId": "1lb2",
"removed": "2015-06-08T22:45:20Z",
"removedTS": 1433803520000,
"uuid": "88d6fc4a-aac4-4a37-b7f4-df5678c3f218"
}
},
"time": 1433803520883,
"timeoutMillis": null,
"transitioningProgress": null,
"context": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment