Automic Workload Automation

  • 1.  AWI URL of job report

    Posted Jun 26, 2018 09:18 AM

    As we prepare to begin migrating from the Java User Interface to the Automic Web Interface, we are working on ideas for how to take advantage of the fact that the AWI is web-based. One big advantage of web-based tools is that they make it possible to provide direct URLs to resources in the app. These URLs can then be included in chats, emails, web pages, and other applications.

     

    I’ve partly documented the schema for AWI URLs, but a lot of information is missing, and just as importantly, the current schema does not appear to provide a straightforward way to do some rather obvious things. One of these: job logs.

     

    When a job ends in error in our systems, the monitoring tool detects the failure, automatically creates an incident, and then assigns the incident to the correct team. We would like to include in each incident a direct link to the log of the failed job.

     

    In the AWI, if you open a task’s report and click the button to open the report in a new window (), the window's URL looks something like this:

     

    https://awi-exp.mycompany.com/popup-hbRFN97Z2ypC6PgF

     

    The last part URL does not appear to be a unique identifier for a particular job report though, and in fact a new URL is generated each time a report pop-up window is requested.

     

    Is there a straightforward way to generate such a URL dynamically? I would like to find a way to programmatically determine the AWI URL to open the report of a particular task, knowing the task’s run ID.



  • 2.  Re: AWI URL of job report
    Best Answer

    Posted Jun 28, 2018 02:56 AM

    I assume there is no way to do this in the AWI today. I strongly suggest that CA add this capability. This capability is encompassed by the idea:

     

    AWI: Standard URL schema for navigating to particular information 

     

    If you like the idea, please vote for it.



  • 3.  Re: AWI URL of job report

    Posted Jun 30, 2018 07:12 AM

    This is not quite the same thing, but it’s close. The updated v12.2 REST APIs include an API that can fetch job reports:

    /{client_id}/executions/{run_id}/reports/{report_type}

    With this API, it should be straightforward to build a web app that fetches an entire job report and formats it in a nice human-readable way.

     

    See also: AE REST API - General Info