summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/queries/getAnnotations.query.graphql
blob: 32b982ff1955a4413da68b84da1078f491db0349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
            }
          }
        }
      }
    }
  }
}