I’m hoping anyone has some good GraphQL examples to share. For us, it is necessary to integrate Ataccama into our standard reporting. To do so I’m trying to get a GraphQL working that returns the scores for each item in a monitoring project. Ideally, listing out all monitoring projects and items with their scores - for the latest processing (although I’ll take all at this point and filter the old ones later). This is all about the statistics (# records passed/failed etc. not the individual results - I am aware I can create post-processing plans to export data, but this is not applicable here).
It’s basically the overview from the report tab in the monitoring project, at item level:

I can get everything I need, including the total row count except the passed or failed figure. I have tried and looked at all GraphQL examples everywhere, including ONE API :: Ataccama ONE, and have pieced this together based on the structures visible in the desktop app. Things like DqAggregationResultOverTime don’t really cut it, because it already aggregates across dq dimensions, and I’m interested in the per-item information.
How can I report on passed/failed for each item in a monitoring project, ideally without explicitly listing the catalog item (because we have hundreds)?
The query below is close, all it’s missing is the passed and/or failed count.
1query listMonitoringProject {2 monitoringProject(gid: "<gid>") {3 gid4 publishedVersion {5 name6 processings {7 edges {8 node {9 gid10 publishedVersion {11 __typename12 startedAt13 state14 result15 dqResult {16 publishedVersion {17 __typename18 startedCount19 statistics {20 publishedVersion {21 successCount22 }23 }24 }25 }26 items {27 edges {28 node {29 publishedVersion {30 __typename31 catalogItem {32 publishedVersion {33 name34 }35 }36 result37 dqResult {38 __typename39 gid40 publishedVersion {41 result42 dqResult {43 storedVersion {44 __typename45 ruleCount46 recordCount4748 }49 } 50 }51 }52 }53 }54 }55 }56 }57 }58 }59 }60 }61 }62}63