{
 "issue": {
  "id": 475,
  "iid": 12,
  "project_id": 401,
  "title": "expose hook result with a http api",
  "description": "When a hook-script generates output that we want to use somewhere else, we currently have to save it somewhere and deal with it somehow. Maybe it would be interesting to implement hooks, that can be dynamically triggered with http requests and the output is available over http. \r\n\r\nFor example, when prometheus sends a request to `http://requestd.local:5050/prometheus` , requestd runs the configured script and returns the stdout as http response. \r\n\r\nThsi would of course make ddos the server alot easier, but a nginx reverse proxy can be used to rate-limit and cache.  ",
  "state": "closed",
  "created_at": "2020-08-30T00:50:01.000Z",
  "updated_at": "2020-08-30T20:10:12.000Z",
  "closed_at": null,
  "closed_by": null,
  "labels": [],
  "milestone": {
   "id": 19,
   "iid": 8,
   "project_id": 401,
   "title": "v0.1",
   "description": "",
   "state": "closed",
   "created_at": "1970-01-01T00:00:00.000Z",
   "updated_at": "2021-12-17T12:00:06.940Z",
   "due_date": null,
   "start_date": null,
   "expired": false,
   "web_url": "https://git.chaotikum.org/freifunk-luebeck/requestd/-/milestones/8"
  },
  "assignees": [],
  "author": {
   "id": 47,
   "username": "paul",
   "public_email": "",
   "name": "Paul",
   "state": "active",
   "locked": false,
   "avatar_url": "https://secure.gravatar.com/avatar/a4106f6e9909fa9fdadf799a8c6e0382dd30483c01ed2024a82e10d6144d1754?s=80&d=identicon",
   "web_url": "https://git.chaotikum.org/paul"
  },
  "type": "ISSUE",
  "assignee": null,
  "user_notes_count": 0,
  "merge_requests_count": 0,
  "upvotes": 0,
  "downvotes": 0,
  "start_date": null,
  "due_date": null,
  "confidential": false,
  "discussion_locked": null,
  "issue_type": "issue",
  "web_url": "https://git.chaotikum.org/freifunk-luebeck/requestd/-/work_items/12",
  "time_stats": {
   "time_estimate": 0,
   "total_time_spent": 0,
   "human_time_estimate": null,
   "human_total_time_spent": null
  },
  "task_completion_status": {
   "count": 0,
   "completed_count": 0
  },
  "has_tasks": true,
  "task_status": "0 of 0 checklist items completed",
  "_links": {
   "self": "https://git.chaotikum.org/api/v4/projects/401/issues/12",
   "notes": "https://git.chaotikum.org/api/v4/projects/401/issues/12/notes",
   "award_emoji": "https://git.chaotikum.org/api/v4/projects/401/issues/12/award_emoji",
   "project": "https://git.chaotikum.org/api/v4/projects/401",
   "closed_as_duplicate_of": null
  },
  "references": {
   "short": "#12",
   "relative": "#12",
   "full": "freifunk-luebeck/requestd#12"
  },
  "severity": "UNKNOWN",
  "moved_to_id": null,
  "imported": false,
  "imported_from": "none",
  "service_desk_reply_to": null
 },
 "discussions": []
}