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

Resolution windows #67

Open
fernando-velazquez opened this issue Oct 12, 2023 · 0 comments
Open

Resolution windows #67

fernando-velazquez opened this issue Oct 12, 2023 · 0 comments

Comments

@fernando-velazquez
Copy link

fernando-velazquez commented Oct 12, 2023

Hey team, is there a way to set resolution windows using this module?
I always get resolutionWindow : null in the exported json file using this module.
In the UI I can set it but I would like to do it here to.
Thanks.
Also, is there a way to create a monitor through terraform using a JSON monitor file?

JSON example from the UI:
notice "resolutionWindow": "-5m", for ResolvedCritical.

  "triggers": [
    {
      "detectionMethod": "LogsStaticCondition",
      "triggerType": "Critical",
      "resolutionWindow": null,
      "timeRange": "-1d",
      "threshold": 0,
      "thresholdType": "GreaterThan",
      "field": null
    },
    {
      "detectionMethod": "LogsStaticCondition",
      "triggerType": "ResolvedCritical",
      "resolutionWindow": "-5m",
      "timeRange": "-1d",
      "threshold": 0,
      "thresholdType": "LessThanOrEqual",
      "field": null
    }
  ]

JSON From terraform:

    {
      "detectionMethod": "LogsStaticCondition",
      "triggerType": "Critical",
      "resolutionWindow": null,
      "timeRange": "-1d",
      "threshold": 0,
      "thresholdType": "GreaterThan",
      "field": null
    },
    {
      "detectionMethod": "LogsStaticCondition",
      "triggerType": "ResolvedCritical",
      "resolutionWindow": null,
      "timeRange": "-5m",
      "threshold": 0,
      "thresholdType": "LessThanOrEqual",
      "field": null
    }
  ],

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

No branches or pull requests

1 participant