Skip to content

Granularity of minutes for alert.py #1

Description

@ManuRS

Get notify by alert.py in less time

Example:

  • Execute the crontab every 10 minutes
  • The program just look at the last ten minutes of records

Pseudocode:

  • Get minutes m
  • Substract x number of minutes (same as the indicate in the crontab) and define an start time
    Need to manage m-x<0
  • Select the data

m-x<0:

  • tmp = m-x
  • start time = 60 - tmp
  • redefine hour (alert.py code)
  • redefine date? (day, month) (alert.py code)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions