Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL Filter Maintenances by Site or Device #252

Open
nlgotz opened this issue Apr 19, 2023 · 1 comment
Open

GraphQL Filter Maintenances by Site or Device #252

nlgotz opened this issue Apr 19, 2023 · 1 comment
Labels

Comments

@nlgotz
Copy link

nlgotz commented Apr 19, 2023

Environment

  • Nautobot version: 1.5.16
  • nautobot-circuit-maintenance version: 0.6.2

Proposed Functionality

I'm looking to run a GraphQL query for all circuit maintenances affecting a specific site or device.

Presently, when running a GraphQL query for Circuit Maintenances affecting a site, I have to get all of the circuit maintenances and then do local filtering.

It would be nice to be able to query by site/location and/or device.

{
  circuit_maintenances(site: "ABC01") {
    id
    name
    status
    description
    start_time
    end_time
    circuitimpact_set {
      impact
      circuit {
        id
        cid
        terminations {
          site {
            slug
          }
        }
      }
    }
  }
}

or

{
  circuit_maintenances(device: "ABC01-RTR-01") {
    id
    name
    status
    description
    start_time
    end_time
    circuitimpact_set {
      impact
      circuit {
        id
        cid
        terminations {
          site {
            slug
          }
        }
      }
    }
  }
}

Use Case

  • Use in Grafana dashboards to get just the selected site or device planned circuit maintenances. This will make it easier for operators to quickly determine if the issues they're seeing are due to planned maintenance activities.
@glennmatthews
Copy link
Contributor

Thanks! Should be a pretty straightforward addition to CircuitMaintenanceFilterSet, I think.

itdependsnetworks pushed a commit to itdependsnetworks/nautobot-app-circuit-maintenance that referenced this issue Apr 3, 2024
* feat: ✨ Allow customization of LLM question

* fix env variable name

* Add an option to get the LLM question from a file

* Add a  prefix in the ENVs to diambiguate them

* fix property access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants