[GH-ISSUE #154] [FR] Custom parsing of data for topic #125

Closed
opened 2026-05-07 00:20:16 +02:00 by BreizhHardware · 2 comments

Originally created by @12nick12 on GitHub (Mar 8, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/154

I have many different locations that push data via NTFY. It would be nice if we could parse data on the server side to specify which data is sent to the clients. This is example data sent from rundeck json

{
  "trigger": "success",
  "status": "succeeded",
  "executionId": 179,
  "execution": {
    "id": 179,
    "href": "https://rundeck.domain.com/project/git-project/execution/follow/179",
    "permalink": null,
    "status": "succeeded",
    "project": "git-project",
    "executionType": "user",
    "user": "USER",
    "date-started": {
      "unixtime": 1646766495415,
      "date": "2022-03-08T19:08:15Z"
    },
    "job": {
      "id": "13f3cc36-6830-4bcb-add7-9d56102a915c",
      "averageDuration": 185386,
      "name": "apt-update",
      "group": "",
      "project": "git-project",
      "description": "",
      "href": "https://rundeck.domain.com/api/40/job/13f3cc36-6830-4bcb-add7-9d56102a915c",
      "permalink": "https://rundeck.domain.com/project/git-project/job/show/13f3cc36-6830-4bcb-add7-9d56102a915c"
    },
    "description": "Plugin[com.batix.rundeck.plugins.AnsiblePlaybookWorflowNodeStep, nodeStep: true]",
    "argstring": null,
    "serverUUID": "ff7afb2e-56a8-4ca4-a181-bce45674d1ef"
  }
}
Originally created by @12nick12 on GitHub (Mar 8, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/154 I have many different locations that push data via NTFY. It would be nice if we could parse data on the server side to specify which data is sent to the clients. This is example data sent from rundeck json { "trigger": "success", "status": "succeeded", "executionId": 179, "execution": { "id": 179, "href": "https://rundeck.domain.com/project/git-project/execution/follow/179", "permalink": null, "status": "succeeded", "project": "git-project", "executionType": "user", "user": "USER", "date-started": { "unixtime": 1646766495415, "date": "2022-03-08T19:08:15Z" }, "job": { "id": "13f3cc36-6830-4bcb-add7-9d56102a915c", "averageDuration": 185386, "name": "apt-update", "group": "", "project": "git-project", "description": "", "href": "https://rundeck.domain.com/api/40/job/13f3cc36-6830-4bcb-add7-9d56102a915c", "permalink": "https://rundeck.domain.com/project/git-project/job/show/13f3cc36-6830-4bcb-add7-9d56102a915c" }, "description": "Plugin[com.batix.rundeck.plugins.AnsiblePlaybookWorflowNodeStep, nodeStep: true]", "argstring": null, "serverUUID": "ff7afb2e-56a8-4ca4-a181-bce45674d1ef" } }
BreizhHardware 2026-05-07 00:20:16 +02:00
Author
Owner

@binwiederhier commented on GitHub (Mar 10, 2022):

I like this idea a lot, though I think it's kind of hard to implement in a generic way. There was a discussion on this in #104, which may be a duplicate. Do you have any ideas of how to generically implement this?

<!-- gh-comment-id:1063675278 --> @binwiederhier commented on GitHub (Mar 10, 2022): I like this idea a lot, though I think it's kind of hard to implement in a generic way. There was a discussion on this in #104, which may be a duplicate. Do you have any ideas of how to generically implement this?
Author
Owner

@binwiederhier commented on GitHub (Mar 10, 2022):

Actually, let's call this ticket a duplicate. @12nick12 feel free to comment in #104

<!-- gh-comment-id:1063675630 --> @binwiederhier commented on GitHub (Mar 10, 2022): Actually, let's call this ticket a duplicate. @12nick12 feel free to comment in #104
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#125
No description provided.