Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State change metadata attribute #67

Closed
datech opened this issue Oct 6, 2019 · 1 comment
Closed

State change metadata attribute #67

datech opened this issue Oct 6, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@datech
Copy link
Owner

datech commented Oct 6, 2019

Update output payload to include meta data information:

  • meta.insert.by
    The insert type (alexa | input)

  • meta.insert.date
    The insert date and time

  • meta.insert.details.ip
    Alexa master device IP address.
    Only if meta.insert.by=alexa

  • meta.insert.details.user_agent
    Alexa master device user agent.
    Only if meta.insert.by=alexa

  • meta.input
    Hashmap with all input attributes

  • meta.changes
    Hashmap of all changed attributes and the corresponding old values

Examples

Alexa request payload

{
   "insert":{
      "by":"alexa",
      "details":{
         "ip":"::ffff:192.168.1.12",
         "user_agent":"Dalvik/2.1.0 (Linux; U; Android 7.1.2; AEODN Build/NS6533)",
         "date":"2019-10-06T11:35:16.249Z"
      }
   },
   "input":{
      "on":true
   },
   "changes":{
      "on":false
   }
}

Input payload

{
   "insert":{
      "by":"input",
      "details":{
         "date":"2019-10-06T11:53:54.708Z"
      }
   },
   "input":{
      "on":true,
      "bri":14,
      "deviceid":"bee455e259a9c8"
   },
   "changes":{
      "bri":128
   }
}
@datech datech self-assigned this Oct 6, 2019
@datech datech added the enhancement New feature or request label Oct 6, 2019
@datech datech added this to the v0.1.9 milestone Oct 6, 2019
datech added a commit that referenced this issue Oct 6, 2019
@datech
Copy link
Owner Author

datech commented Oct 6, 2019

Released in v0.1.9

@datech datech closed this as completed Oct 6, 2019
@datech datech changed the title State change meta data attribute State change metadata attribute Oct 6, 2019
This was referenced Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant