Giter VIP home page Giter VIP logo

Comments (4)

cbruno10 avatar cbruno10 commented on June 2, 2024

@paulsewardasc Thanks for raising this feature request!

I see you attached a file with some Go code inside, is this code you're currently using to query these resource types in a locally built plugin? I'm not familiar with that particular API or resource type yet, but I took a look at the code and it seemed to be directionally correct.

If it's something you're comfortable contributing, we'd really appreciate a new PR adding that table along with its doc with examples (which can be based off of how you use the table today). We'd be more than happy to provide feedback and review comments in that PR as well.

If this is something you're interested (or not) in contributing, please let us know!

from steampipe-plugin-snowflake.

paulsewardasc avatar paulsewardasc commented on June 2, 2024

Hi, I am using this code, it seems to work well. I will get some examples together and document. Not sure how to add a new PR though.

Paul

from steampipe-plugin-snowflake.

paulsewardasc avatar paulsewardasc commented on June 2, 2024
select account as "Account",
    name as "Warehouse", 
    credit_quota as "Credit Quota",
    used_credits as "Used Credits",
    remaining_credits as "Remaining Credits",
    to_char(used_credits/credit_quota*100,'9990D9') as "% Used",
    case
        when used_credits/credit_quota*100 > 90 then 'alert'
        when used_credits/credit_quota*100 > 75 then 'warning'
        else 'ok'
    end as type
from snowflake_resource_monitor
where used_credits/credit_quota*100 > 75
order by used_credits/credit_quota desc

from steampipe-plugin-snowflake.

e-gineer avatar e-gineer commented on June 2, 2024

Thanks so much for the contribution @paulsewardasc!

Pull requests are great for review / collaborating in open source and also mean that you’ll be recognized through your commits as a contributor to the project. If you’d like to learn more about how to do a PR here is a good guide https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/

from steampipe-plugin-snowflake.

Related Issues (3)

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.