I have a datasource like this:
[ {key: {deviceType: "TestDevice1", status: "Online"}, doc_count: 1}, {key: {deviceType: "TestDevice2"