diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-11-15 11:14:01 +0200 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-11-15 11:14:01 +0200 |
| commit | 59052dd593c0d3d4eb2bf6c579e44c06daf7a038 (patch) | |
| tree | d39dd9289e16d897e82efe8be4c48509c4895cbb /Software/Visual_Studio/FSE/Tango.FSE.UI | |
| parent | 81b37f187ad6823bb27ce132782301fb0bbd0c75 (diff) | |
| download | Tango-59052dd593c0d3d4eb2bf6c579e44c06daf7a038.tar.gz Tango-59052dd593c0d3d4eb2bf6c579e44c06daf7a038.zip | |
Job runs extended info.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/Statistics/DefaultStatisticsProvider.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Statistics/DefaultStatisticsProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/Statistics/DefaultStatisticsProvider.cs index 56e5907dd..a130bbccd 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Statistics/DefaultStatisticsProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Statistics/DefaultStatisticsProvider.cs @@ -58,5 +58,19 @@ namespace Tango.FSE.UI.Statistics throw LogManager.Log(ex, "Error retrieving remote machine statistics data."); } } + + public async Task<JobRunExtendedInfo> GetJobRunExtendedInfo(int jobRunID) + { + try + { + LogManager.Log($"Retrieving extended job run ({jobRunID}) information..."); + var response = await MachineProvider.MachineOperator.SendGenericRequest<GetJobRunExtendedInfoRequest, GetJobRunExtendedInfoResponse>(new GetJobRunExtendedInfoRequest() { JobRunID = jobRunID }); + return response.ExtendedInfo; + } + catch (Exception ex) + { + throw LogManager.Log(ex, $"Error getting job run extended info for job run '{jobRunID}'."); + } + } } } |
