Attributes in events (speed limit)

jean jose de matos 3 years ago

I created a speed limit exceeded notification. I added some static attributes, such as:

webhook : https://site.com.br/events_send
key : my key
phone: 55 XX 9 8824 XXXX

however when receiving the notification in my webhook the attributes are not being sent.

Anton Tananaev 3 years ago

Where did you add those attributes and where do you expect to get them?

jean jose de matos 3 years ago

I imagined that in the events I could create a static attribute with specific information in the same way I can when registering a device...
but I've already noticed that in events there can only be attributes that collect data from the platform.

jean jose de matos 3 years ago

I tried using the driveuniqueid parameter. collected the driver ID. I didn't find the option to collect the name we give the driver.

Anton Tananaev 3 years ago

Event is not the same thing as notification.

jean jose de matos 3 years ago

sorry..I spelled it wrong. is notification.
I'm Brazilian and I'm using a translator.

Anton Tananaev 3 years ago

Then you haven't answered this critical question:

where do you expect to get them

jean jose de matos 3 years ago
Anton Tananaev 3 years ago

OK, so you have it there. What's the problem?

jean jose de matos 3 years ago

I specified 3 parameters.
only the first is sent.
https://uploaddeimagens.com.br/imagens/4VzfRjs

Anton Tananaev 3 years ago

On the screenshot you're showing a position and an event objects. I don't see any notification objects. That's why I keep asking the same question, which I think you don't understand. You never receive a notification object. It's just a configuration. You receive an event.

jean jose de matos 3 years ago

I understand... so what I want is not possible in this configuration.
thanks... i'll look for another solution

Anton Tananaev 3 years ago

I'm still waiting for the answer. What do you want to add and where? If you want to add some arbitrary data to events, it's not possible without code changes. If you want to add something to the position, you can use computed attributes.

jean jose de matos 3 years ago

I solved. I used the device attributes...
thanks for listening.