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

feat: introduce synthetics in backend #3405

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Subhra264
Copy link
Contributor

@Subhra264 Subhra264 commented May 3, 2024

Request payload

{
  "alert": {
    "emails": ["[email protected]"],
    "message": "No message",
    "title": "Subject synthetics",
    "type": "email"
  },
  "assertions": [
    {
      "key": "no_key",
      "operator": "=",
      "timing_scope": false,
      "type": "Body",
      "value": null
    }
  ],
  "createdAt": "2024-05-06T03:55:52.971208132Z",
  "description": "Description",
  "enabled": false,
  "lastEditedBy": "[email protected]",
  "name": "synthetics2",
  "orgId": "default",
  "owner": "[email protected]",
  "request": {
    "auth": {
      "basic": "",
      "bearer": "",
      "type": "basic"
    },
    "body": "Hello",
    "body_type": "raw",
    "cookies": "",
    "method": "post",
    "url": "http://localhost:5000"
  },
  "retry": {
    "count": 0,
    "delay": 0
  },
  "schedule": {
    "cron": "",
    "interval": 1,
    "start": 0,
    "timezoneOffset": 0,
    "type": "hours"
  },
  "type":"http"
}

API Endpoints

POST /api/{org_id}/synthetics
PUT /api/{org_id}/synthetics/{synthetics_name}
GET /api/{org_id}/synthetics
GET /api/{org_id}/synthetics/{synthetics_name}
DELETE /api/{org_id}/synthetics/{synthetics_name}
PUT /api/{org_id}/synthetics/{synthetics_name}/enable?value=<true|false>
PUT /api/{org_id}/synthetics/{synthetics_name}/trigger

@Subhra264 Subhra264 force-pushed the feat/synthetics_backend branch 3 times, most recently from d20a5b0 to 3a7a000 Compare May 8, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant