GithubHelp home page GithubHelp logo

Comments (10)

francois2metz avatar francois2metz commented on June 9, 2024 1

Okay my bad. I tried with a count(*) query and the limit had no effects. Which makes senses I guess.

from steampipe-plugin-scalingo.

francois2metz avatar francois2metz commented on June 9, 2024

HI @e-gineer Thanks for your sugggestions!

I have done most of them except the last one, I need to think of a way to query more if needed.

About the regions, there is only 2 available regions right now on scalingo, but the second one (osc-secnum) is only available if you request it. I do have have an access and I successfully tried it.

from steampipe-plugin-scalingo.

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

ah - makes sense on the regions, I hadn’t enabled the second one.

Let us know if you have questions about the use of limit, happy to discuss. Not a blocker I don’t think, but makes a big difference if you have a lot of event data.

from steampipe-plugin-scalingo.

francois2metz avatar francois2metz commented on June 9, 2024

I'm looking to implement the limit features. Is there is a way to get the value of the limit parameter of the sql query? I think it is useful to be able to get old data if needed.

from steampipe-plugin-scalingo.

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

Yes! The limit from the query is available in the query context. Example:

https://github.com/turbot/steampipe-plugin-googleworkspace/blob/bd80b65f1557bacda41cc776608c3156070d6f80/googleworkspace/table_googleworkspace_drive_my_file.go#L413

from steampipe-plugin-scalingo.

francois2metz avatar francois2metz commented on June 9, 2024

I must be doing something wrong. I got a nil result. Let's try again.

from steampipe-plugin-scalingo.

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

oh? Happy to test out a branch of that will be helpful.

from steampipe-plugin-scalingo.

francois2metz avatar francois2metz commented on June 9, 2024

I just pushed the branch limit: https://github.com/francois2metz/steampipe-plugin-scalingo/compare/limit

from steampipe-plugin-scalingo.

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

I used the limit branch to do this query:

select * from scalingo_app_event where app_name = 'nw-test-01' limit 5

and am seeing the Limit coming through in the logs?

37213 2021-09-10 13:05:50.465 GMT [14614] LOG:  statement: select * from scalingo_app_event where app_name = 'nw-test-01' limit 5
37214 2021-09-10T09:05:50.468-0400 [WARN]  plugin.steampipe-plugin-scalingo.plugin: [WARN]  MaxResult: %!s(int64=5)=0xc003bfb738

So, looks like it is there to me?

from steampipe-plugin-scalingo.

francois2metz avatar francois2metz commented on June 9, 2024

Thanks for your help. I have done everything on your list. I will apply some of theses suggestions to my others plugins ;).

from steampipe-plugin-scalingo.

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.