Giter VIP home page Giter VIP logo

Comments (1)

lunkwill42 avatar lunkwill42 commented on August 28, 2024

Making this available through API sounds worthwhile to me, at least.

Our intended solution is just before the reboot switch command is sent, we make an API call to NAV to start a ~15 min maintenance task.

Just be aware that in the current implementation, maintenance schedules are processed only every 5 minutes by a cron job. I.e. you can create a new maintenance task that has a start time of "now", but up to 5 minutes could potentially pass until the components are actually marked as being on maintenance.

If the API can handle adding up to ~50 tiny maintenance windows with one device each in rapid succession that would be good, or maybe we can also try to schedule a bit longer window for up to 50 devices at a time with one API call

Are you asking that a single API request can be used to create 50 separate maintenance tasks in one go?

This sounds counterintuitive to me, given how maintenance tasks work in NAV: You'd seriously crowd your maintenance calendar if you added single tasks for each device in this manner. If your intention is to reboot 50 devices in bulk over the course of the next 15 minutes, I'd try to post that as a single maintenance task that contains all those 50 devices.

from nav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.