Giter Club home page Giter Club logo

Comments (3)

cuu508 avatar cuu508 commented on July 19, 2024

Slugs are not guaranteed to be unique, so a "get by slug" call could have 0, 1 or N matches.

The "List Existing Checks" API call currently supports filtering by tag:

https://healthchecks.io/api/v3/checks/?tag=foo&tag=bar

We could add an option to filter by slug as well:

https://healthchecks.io/api/v3/checks/?slug=my-custom-slug

Would that help?

Just saw that the auto-provisioning is now enabled which is nice as well

Yep! But, note, this change has not yet been deployed to the hosted service.

from healthchecks.

scheibling avatar scheibling commented on July 19, 2024

The slug is unique per project though, right?

I opened a pull request with an example, feel free to have a look at it and push it in if you want, I'm gonna try it out locally on our instance since it saves us a couple of requests for some of our checks.

from healthchecks.

cuu508 avatar cuu508 commented on July 19, 2024

No, there is no uniqueness constraint for slugs even within a single project. Multiple checks can have the same slug, and a check can have an empty slug.

I just pushed a commit which adds filtering by slug to the "List Checks" call:

http://healthchecks.io/api/v3/checks/?slug=foo

from healthchecks.

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.