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: adds support request chaining for body #738

Merged
merged 5 commits into from
Jun 29, 2022

Conversation

kevin-hyperjump
Copy link
Contributor

This PR solves #725

Logged using Axios' interceptors

Screen Shot 2022-06-28 at 12 16 35

Config:

# monika.yml
probes:
  - id: '1'
    name: Probing Github
    description: simulate html form submission
    interval: 10
    requests:
      - method: GET
        url: https://reqres.in/api/users
        timeout: 7000
      - method: GET
        url: https://reqres.in/api/users/{{ responses.[0].data.data.[0].id }}
        timeout: 7000
        body:
          id: '{{ responses.[0].data.data.[0].id }}'
          id_second: '{{ responses.[0].data.data.[0].id }}'
    incidentThreshold: 3
    recoveryThreshold: 3
    alerts:
      - status-not-2xx
      - response-time-greater-than-2000-ms

@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #738 (628751d) into main (7533d59) will increase coverage by 0.32%.
The diff coverage is 95.00%.

@@            Coverage Diff             @@
##             main     #738      +/-   ##
==========================================
+ Coverage   48.15%   48.48%   +0.32%     
==========================================
  Files          68       68              
  Lines        2255     2271      +16     
  Branches      435      439       +4     
==========================================
+ Hits         1086     1101      +15     
  Misses       1010     1010              
- Partials      159      160       +1     
Impacted Files Coverage Δ
src/components/probe/probing.ts 66.27% <95.00%> (+6.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4fe795...628751d. Read the comment docs.

Copy link
Contributor

@dennypradipta dennypradipta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kevin-hyperjump kevin-hyperjump merged commit 70482a7 into hyperjumptech:main Jun 29, 2022
@kevin-hyperjump kevin-hyperjump deleted the 725 branch June 29, 2022 07:04
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

Successfully merging this pull request may close these issues.

3 participants