Purpose
This automation provides metric data - start time, end time, and user information of the automation. The metrics are available only when the job has finished running.
automation-get-metrics
API used:
/operations-manager/jobs/:id
Input
| Inputs | Data Type | Sample Input | Description |
|---|---|---|---|
| instance_name | Dropdown (String) | SE Lab Prod 2023.1 | The Itential Platform instance name |
| automation_id | String | 4278c701b83943b08a98*** | The Automation ID of the automation to get its metrics. |
| token (optional) | string | 9f0999c2-7054-4820-8eeb-c3052d30acaa | Authentication token or empty if an API key is used |
Output
| Output | Data Type | Sample Output | Description |
|---|---|---|---|
| metrics | JSON | {"start_time":1.689106552246E12,"end_time":1.689106597366E12,"progress":1,"user":"6475f9fe2d6fb91936274**"} | Start time, End time and User information of the automation. |
Error Output
| Error Output | Data Type | Sample Output | Description |
|---|---|---|---|
| error_message | String | Job is not finished! Job State: running | Error message, if the job is still running |