Skip to content

Instantly share code, notes, and snippets.

@veyalla
Created May 15, 2019 17:54
Show Gist options
  • Save veyalla/0677e769cb4090c887d5dd93225d901b to your computer and use it in GitHub Desktop.
Save veyalla/0677e769cb4090c887d5dd93225d901b to your computer and use it in GitHub Desktop.
{
"id": "tempsensor-5bc6db6876-mzz6z",
"schemaVersion": "1.0",
"labels": {
"app": "tempSensor",
"pod-template-hash": "5bc6db6876"
},
"content": {
"modulesContent": {
"$edgeAgent": {
"properties.desired": {
"schemaVersion": "1.0",
"runtime": {
"type": "docker",
"settings": {
"registryCredentials": {},
"minDockerVersion": "v1.25",
"loggingOptions": ""
}
},
"systemModules": {
"edgeAgent": {
"type": "docker",
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "mcr.microsoft.com/azureiotedge-agent:1.0",
"createOptions": "{}"
}
},
"edgeHub": {
"env": {},
"type": "docker",
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "mcr.microsoft.com/azureiotedge-hub:1.0",
"createOptions": "{}"
}
}
},
"modules": {
"tempsensor": {
"type": "docker",
"status": "running",
"version": "1.0",
"restartPolicy": "on-unhealthy",
"settings": {
"image": "mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0",
"createOptions": "{}"
}
}
}
}
},
"$edgeHub": {
"properties.desired": {
"schemaVersion": "1.0",
"routes": {
"route": "FROM /* INTO $upstream"
},
"storeAndForwardConfiguration": {
"timeToLiveSecs": 7200
}
}
},
"tempsensor": {
"properties.desired": {
"kaa": "raaa"
}
}
}
},
"targetCondition": "tags.building='b43'",
"createdTimeUtc": "2019-05-10T23:52:03.388Z",
"lastUpdatedTimeUtc": "2019-05-10T23:52:03.388Z",
"priority": 15,
"systemMetrics": {
"results": {
"appliedCount": 0,
"reportedSuccessfulCount": 0,
"reportedFailedCount": 0,
"targetedCount": 0
},
"queries": {
"Targeted": "select deviceId from devices where capabilities.iotEdge = true and tags.building='b43'",
"Applied": "select deviceId from devices.modules where moduleId = '$edgeAgent' and configurations.[[tempsensor-5bc6db6876-mzz6z]].status = 'Applied'",
"Reporting Success": "select deviceId from devices.modules where moduleId = '$edgeAgent' and configurations.[[tempsensor-5bc6db6876-mzz6z]].status = 'Applied' and properties.desired.$version = properties.reported.lastDesiredVersion and properties.reported.lastDesiredStatus.code = 200",
"Reporting Failure": "select deviceId from devices.modules where moduleId = '$edgeAgent' and configurations.[[tempsensor-5bc6db6876-mzz6z]].status = 'Applied' and properties.desired.$version = properties.reported.lastDesiredVersion and properties.reported.lastDesiredStatus.code != 200"
}
},
"metrics": {
"results": {},
"queries": {}
},
"etag": "MQ=="
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment