mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-09 12:46:06 +10:00
2.0 KiB
2.0 KiB
plex webhooks
You should configure Plex's Webhooks to point at the webhooks service. To do this, follow the instructions in the Plex webhooks support documentation. Webhooks are a premium feature and require an active Plex Pass Subscription for the Plex Media Server account.
Events
The titles of the following sections are links to the full payloads and details for each event. The body contains what information from the event is persisted. The format is as follows:
# TAGS
* 'tagKey' = `tagValue` type
# FIELDS
* 'fieldKey' = `fieldValue` type
The tag values and field values show the place on the incoming JSON object where the data is sourced from.
Tags:
- 'event' =
event.eventstring - 'is_user_webhook' =
event.userbool - 'is_owner_webhook' =
event.ownerbool - 'user_id' =
event.Account.idstring - 'user_name' =
event.Account.titlestring - 'server_title' =
event.Server.titlestring - 'server_uuid' =
event.Server.uuidstring - 'is_player_local' =
event.Player.localbool - 'player_public_ip' =
event.Player.publicAddressstring - 'player_title' =
event.Player.titlestring - 'player_uuid' =
event.Player.uuidstring - 'library_selection_type' =
event.Metadata.librarySectionTypestring - 'media_type' =
event.Metadata.typestring - 'grandparent_key' =
event.Metadata.grandparentKeystring - 'parent_key' =
event.Metadata.parentKeystring - 'grandparent_title' =
event.Metadata.grandparentTitlestring - 'parent_title' =
event.Metadata.parentTitlestring - 'parent_index' =
event.Metadata.parentIndexstring
Fields:
- 'rating_count' =
event.Metadata.ratingCountint - 'added_at' =
event.Metadata.addedAtint - 'updated_at' =
event.Metadata.updatedAtint - 'summary' =
event.Metadata.summarystring - 'title' =
event.Metadata.titlestring - 'index' =
event.Metadata.indexint - 'library_selection_id' =
event.Metadata.librarySectionIDint - 'guid' =
event.Metadata.guidstring