I have a task that hits a url and returns the results in JSON array like this:
-
“json”: {
“statuses”: [
{
“application”: “JIRA”,
“completeKey”: “com.atlassian.jira.plugins.jira-healthcheck-plugin:hsqlHealthCheck”,
“description”: “Checks if the instance is connected to an HSQL or H2 database”,
“documentation”: “https://confluence.atlassian.com/x/1guaEQ”,
“failureReason”: “You are not using an HSQL or H2 embedded database with a production license.”,
“healthy”: true,
“id”: 0,
“isHealthy”: true,
“name”: “Embedded database”,
“severity”: “undefined”,
“tag”: “Supported Platforms”,
“time”: 1518726326309
},
{
“application”: “JIRA”,
“completeKey”: “com.atlassian.jira.plugins.jira-healthcheck-plugin:eolHealthCheck”,
“description”: “Checks if the running version of JIRA is approaching, or has reached End of Life.”,
“documentation”: “https://confluence.atlassian.com/x/HjnRLg”,
“failureReason”: “Unable to verify the End of Life date for version ‘7.4.x’. The check has not been performed.”,
“healthy”: true,
“id”: 0,
“isHealthy”: true,
“name”: “End of Life”,
“severity”: “undefined”,
“tag”: “Supported Platforms”,
“time”: 1518726326316
},
{
“application”: “JIRA”,
“completeKey”: “com.atlassian.jira.plugins.jira-healthcheck-plugin:luceneSupportHealthCheck”,
“description”: “Checks the state of the search index is consistent with the database.”,
“documentation”: “https://confluence.atlassian.com/x/9IUfL”,
“failureReason”: “The issue index is inconsistent with the database state.”,
“healthy”: false,
“id”: 0,
“isHealthy”: false,
“name”: “Lucene”,
“severity”: “major”,
“tag”: “Indexing”,
“time”: 1518726326372
},
The two tasks that run looks like this:
`