Retrieve Statistics
The following query retrieve the automate statistics for a given account, by providing the account id in accountId
argument:
- Query
- cURL
query GetAccountAutomateStatistics($accountId: ObjectID!) {
getAutomatorAccountStatistics(accountId: $accountId) {
testSuitesCount
buildsCount
testsPerformedCount
passedTestPercentage
warnedTestPercentage
failedTestPercentage
averageUrlsCrawledPerDay
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetAccountAutomateStatistics($accountId: ObjectID!) { getAutomatorAccountStatistics(accountId: $accountId) { testSuitesCount buildsCount testsPerformedCount passedTestPercentage warnedTestPercentage failedTestPercentage averageUrlsCrawledPerDay } }"}' https://api.lumar.io/graphql