summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/queries/get_annotations.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/monitoring/queries/get_annotations.query.graphql')
-rw-r--r--app/assets/javascripts/monitoring/queries/get_annotations.query.graphql27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/queries/get_annotations.query.graphql b/app/assets/javascripts/monitoring/queries/get_annotations.query.graphql
new file mode 100644
index 00000000000..32b982ff195
--- /dev/null
+++ b/app/assets/javascripts/monitoring/queries/get_annotations.query.graphql
@@ -0,0 +1,27 @@
+query getAnnotations(
+ $projectPath: ID!
+ $environmentName: String
+ $dashboardPath: String!
+ $startingFrom: Time!
+) {
+ project(fullPath: $projectPath) {
+ id
+ environments(name: $environmentName) {
+ nodes {
+ id
+ name
+ metricsDashboard(path: $dashboardPath) {
+ annotations(from: $startingFrom) {
+ nodes {
+ id
+ description
+ startingAt
+ endingAt
+ panelId
+ }
+ }
+ }
+ }
+ }
+ }
+}