If you look at the results for a specific DTCI in the results of the function fn_AppDeploymentAssetDetails(1033), you'll notice the 'Start Time' is always the same for the collection in question. If you've created more than one deployment off that deployment type, you can have more than one Start Time, but it will be the same for every deployment event on record that happened due to membership in that collection.
Despite that, a MachineName is returned and details are provided about the status of the deployment per-device. In fact, if more than one deployment occurred against that device, it will show up twice (or however many deployments of that DTCI occurred).
Based on this, can I use any of the data from the query to link to a 'time of deployment' against a specific device - that is, when that client received a notification about the available package, downloaded it, installed it, and returned a status code that
indicated the result of the installation? I've already got the result code, but a 'begin time' would be nice. 'Begin time' (client acknowledges package available) + 'finish time' (time installation of package complete), to take into account maintenance
windows, would be ideal.
I'm aware I need to go off and query other tables, views or functions for this, but given the number of columns with GUID's and ID's returned by this function, I'm sure some of them could be used to link to whatever table holds the time data.
I might perhaps have to wade into the message tables (link to an example of where tables of status messages are used to find data) for this?