Git Product home page Git Product logo

Comments (5)

vfosnar avatar vfosnar commented on May 28, 2024

You can use the 'Accepted Status Codes' option

from uptime-kuma.

jorgelaranjo avatar jorgelaranjo commented on May 28, 2024

image

Testing against an endpoint with 404/503
image

from uptime-kuma.

CharlotteCross1998 avatar CharlotteCross1998 commented on May 28, 2024

Sorry if I'm being obtuse and not understanding the configuration properly. I've just tested and I get a notification giving me an error of 200, which is what this feature request is about.

I want the status page to accept 200-299 as successful, but I don't want notifications about it being 200-299, or notifications about it not being 200-299 unless it's 503 or 404 specifically being true, but not false. If I tell the monitor I want to accept 503 and 404 as successful, I get a notification about 200. If I tell the monitor I want to accept 200-299, I do get a notification about 503 and 404, but I also get notifications about everything else, where my request is, is that I'd like to be able to get a notification sent when the test case for 404 and 503 are true, but not when they're false.

So in my configuration, I want to test against 200-299 because I want to see the history of that in the interface, but I want a notification when 503 and 404 are specifically true not when they've changed from being true to false, only false to true, so the feature isn't about choosing which status codes to accept as successful, but when a specific status code is observed, notify on that. I hope that makes sense?

from uptime-kuma.

jorgelaranjo avatar jorgelaranjo commented on May 28, 2024

Sorry if I'm being obtuse and not understanding the configuration properly. I've just tested and I get a notification giving me an error of 200, which is what this feature request is about.

I want the status page to accept 200-299 as successful, but I don't want notifications about it being 200-299, or notifications about it not being 200-299 unless it's 503 or 404 specifically being true, but not false. If I tell the monitor I want to accept 503 and 404 as successful, I get a notification about 200. If I tell the monitor I want to accept 200-299, I do get a notification about 503 and 404, but I also get notifications about everything else, where my request is, is that I'd like to be able to get a notification sent when the test case for 404 and 503 are true, but not when they're false.

So in my configuration, I want to test against 200-299 because I want to see the history of that in the interface, but I want a notification when 503 and 404 are specifically true not when they've changed from being true to false, only false to true, so the feature isn't about choosing which status codes to accept as successful, but when a specific status code is observed, notify on that. I hope that makes sense?

Create a group, create several items, one for the positive 200-299 and one negative for hte 404/503 as shown
Setup notification on both for when it changes from beeing good to bad
And will work as expected.

image

Here's status page
image

from uptime-kuma.

CharlotteCross1998 avatar CharlotteCross1998 commented on May 28, 2024

I see, thank you.

from uptime-kuma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.