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

Monitor has unsupported params in options key #200

Closed
teraken0509 opened this issue Dec 6, 2018 · 0 comments · Fixed by #201
Closed

Monitor has unsupported params in options key #200

teraken0509 opened this issue Dec 6, 2018 · 0 comments · Fixed by #201
Labels

Comments

@teraken0509
Copy link
Contributor

When I curl a monitor, below parameters are exists.

  • API Response

    ...
    "options": {
      "notify_audit": false,
      "locked": false,
      "timeout_h": 0,
      "silenced": {},
      "enable_logs_sample": true,
      "thresholds": {
        "comparison": ">",
        "critical": 1000,
        "period": {
          "seconds": 300,
          "text": "5 minutes",
          "value": "last_5m",
          "name": "5 minute average",
          "unit": "minutes"
        },
        "timeAggregator": "avg"
      },
      "queryConfig": {
        "logset": {
          "id": "7748",
          "name": "main"
        },
        "timeRange": {
          "to": 1539675566736,
          "live": true,
          "from": 1539661166736
        },
        "queryString": "env:develop",
        "queryIsFailed": false
      }
    ...
    
  • Unsupported params

    • queryConfig in options
    • period in thresholds
    • comparison in thresholds
    • timeAggregator in thresholds

But these params are not written in monitor api documents.

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

Successfully merging a pull request may close this issue.

2 participants