GithubHelp home page GithubHelp logo

Comments (11)

asmuth avatar asmuth commented on April 28, 2024

Mh, it's supposed to be "_type" everywhere. Where did you see "type"? :)

from clip.

knzconnor avatar knzconnor commented on April 28, 2024

app.rb

from clip.

knzconnor avatar knzconnor commented on April 28, 2024

I can't get events to show up right everywhere unless I give them both a _type and a type

from clip.

asmuth avatar asmuth commented on April 28, 2024

That's strange. Can you maybe paste your server-file and how you are submitting the events? :)

the "/:namespace/events"-action in app.rb renders the left column of the "Active Users" dashboard, so it's not involved in the event-processing.

from clip.

knzconnor avatar knzconnor commented on April 28, 2024

If I only use _type I end up getting blank event types in the ActiveUsers widget.

on every event like { _type: 'unicorn_seen' }

event(:unicorn_seen) do
# increment the unicorns_seen gauge by 1
incr :unicorns_seen
end

numeric (delta) gauge, 1-hour tick

gauge :unicorns_seen,
:title => "Unicorns seen"

draw a timeline showing the gauges value, auto-refresh every 30s

widget 'Unicorns', {
:title => "Unicorn-Sightings",
:type => :numbers,
:gauges => :unicorns_seen,
:include_current => true,
:autoupdate => 60
}

from clip.

asmuth avatar asmuth commented on April 28, 2024

How are you submitting the events? I tried the config from above with this curl line:

curl -X POST -d "_type=unicorn_seen" http://localhost:4242/events

Is it possible that you submitted some events with a missing _type field earlier? In that case you could flush your redis-db (or just ignore it).

from clip.

knzconnor avatar knzconnor commented on April 28, 2024

Using the raw netcat example from the docs - I also have been flushing my redis pretty regularly while testing this out.

On Wednesday, December 28, 2011 at 12:15 PM, Paul Asmuth wrote:

How are you submitting the events? I tried the config from above with this curl line:

curl -X POST -d "_type=unicorn_seen" http://localhost:4242/events

Is it possible that you submitted some events with a missing _type field earlier? In that case you could flush your redis-db (or just ignore it).


Reply to this email directly or view it on GitHub:
#8 (comment)

from clip.

asmuth avatar asmuth commented on April 28, 2024

Can you get a blank type in the typelist just by submitting the netcat line from the readme? The only way I could get it was when I removed the leading underscore from "_type". However, I made a change, so the blank item won't show up anymore.

from clip.

knzconnor avatar knzconnor commented on April 28, 2024

Kill the blank row helps a bit. There seems to be some oddities with getting the first few results to show up when I submit an event with only a _type, but I haven't narrowed anything else down enough to give you much to work with. Thanks for the responsiveness!

On Wednesday, December 28, 2011 at 12:27 PM, Paul Asmuth wrote:

Can you get a blank type in the typelist just by submitting the netcat line from the readme? The only way I could get it was when I removed the leading underscore from "_type". However, I made a change, so the blank item won't show up anymore.


Reply to this email directly or view it on GitHub:
#8 (comment)

from clip.

asmuth avatar asmuth commented on April 28, 2024

Mh, maybe it's only the very first event, that is not showing up? The "feed view" in the "Active Users" Dashboard is always one event behind...

from clip.

knzconnor avatar knzconnor commented on April 28, 2024

it might just be the one behind issue complicating debugging

from clip.

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.