Skip to content

Instantly share code, notes, and snippets.

@pcn
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save pcn/6332225463d86597e7fa to your computer and use it in GitHub Desktop.

Select an option

Save pcn/6332225463d86597e7fa to your computer and use it in GitHub Desktop.
sandesh data converted from xml to json
{
"sandesh": {
"@length": "0000001565",
"SandeshCtrlClientToServer": {
"@type": "sandesh",
"http_port": 8091,
"instance_id_name": {
"#text": "0",
"@identifier": "8",
"@type": "string"
},
"module_name": {
"#text": "QueryEngine",
"@identifier": "2",
"@type": "string"
},
"node_type_name": {
"#text": "Analytics",
"@identifier": "7",
"@type": "string"
},
"pid": 3512,
"source": {
"#text": "kvm-openstack-5",
"@identifier": "1",
"@type": "string"
},
"sucessful_connections": 129,
"uve_types": {
"@identifier": "4",
"@type": "list",
"list": {
"@size": "6",
"@type": "string",
"element": [
"AnalyticsCpuState",
"ModuleClientState",
"ModuleCpuState",
"NodeStatus",
"QueryPerfInfo",
"StatTestState"
]
}
}
},
"SandeshHeader": {
"Category": {
"@identifier": "11",
"@type": "string"
},
"Context": {
"#text": "ctrl",
"@identifier": "5",
"@type": "string"
},
"Hints": 2,
"InstanceId": {
"#text": "0",
"@identifier": "13",
"@type": "string"
},
"Level": 2147483647,
"Module": {
"#text": "QueryEngine",
"@identifier": "3",
"@type": "string"
},
"Namespace": {
"@identifier": "1",
"@type": "string"
},
"NodeType": {
"#text": "Analytics",
"@identifier": "12",
"@type": "string"
},
"SequenceNum": 129,
"Source": {
"#text": "kvm-openstack-5",
"@identifier": "4",
"@type": "string"
},
"Timestamp": 1421785749578350,
"Type": 2,
"VersionSig": -340245130
}
}
}
{
"sandesh": {
"@length": "0000001565",
"SandeshCtrlClientToServer": {
"@type": "sandesh",
"http_port": {
"#text": "8091",
"@identifier": "6",
"@type": "u32"
},
"instance_id_name": {
"#text": "0",
"@identifier": "8",
"@type": "string"
},
"module_name": {
"#text": "QueryEngine",
"@identifier": "2",
"@type": "string"
},
"node_type_name": {
"#text": "Analytics",
"@identifier": "7",
"@type": "string"
},
"pid": {
"#text": "3512",
"@identifier": "5",
"@type": "u32"
},
"source": {
"#text": "kvm-openstack-5",
"@identifier": "1",
"@type": "string"
},
"sucessful_connections": {
"#text": "129",
"@identifier": "3",
"@type": "u32"
},
"uve_types": {
"@identifier": "4",
"@type": "list",
"list": {
"@size": "6",
"@type": "string",
"element": [
"AnalyticsCpuState",
"ModuleClientState",
"ModuleCpuState",
"NodeStatus",
"QueryPerfInfo",
"StatTestState"
]
}
}
},
"SandeshHeader": {
"Category": {
"@identifier": "11",
"@type": "string"
},
"Context": {
"#text": "ctrl",
"@identifier": "5",
"@type": "string"
},
"Hints": {
"#text": "2",
"@identifier": "9",
"@type": "i32"
},
"InstanceId": {
"#text": "0",
"@identifier": "13",
"@type": "string"
},
"Level": {
"#text": "2147483647",
"@identifier": "10",
"@type": "i32"
},
"Module": {
"#text": "QueryEngine",
"@identifier": "3",
"@type": "string"
},
"Namespace": {
"@identifier": "1",
"@type": "string"
},
"NodeType": {
"#text": "Analytics",
"@identifier": "12",
"@type": "string"
},
"SequenceNum": {
"#text": "129",
"@identifier": "6",
"@type": "i32"
},
"Source": {
"#text": "kvm-openstack-5",
"@identifier": "4",
"@type": "string"
},
"Timestamp": {
"#text": "1421785749578350",
"@identifier": "2",
"@type": "i64"
},
"Type": {
"#text": "2",
"@identifier": "8",
"@type": "i32"
},
"VersionSig": {
"#text": "-340245130",
"@identifier": "7",
"@type": "i32"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment