ShtukbaseStandard
package page→ /event-sources.md

pages/event-sources.md

40 lines, 1.5 KB. As a page.

  1. ---
  2. type: Collection
  3. title: "Places and sources"
  4. icon: "🧾"
  5. description: "Where the collector agent takes events from: listings, venue sites, social networks. A venue with a listing is a source too."
  6. itemType: EventSource
  7. items: {mode: path, path: /event-sources, recursive: false}
  8. writeTo: /event-sources
  9. properties:
  10. url: {kind: url, label: "Address", required: true}
  11. kind:
  12. kind: select
  13. label: "Kind"
  14. options:
  15. - {name: aggregator, label: "Listing", color: blue}
  16. - {name: venue, label: "Venue", color: green}
  17. - {name: social, label: "Social networks", color: purple}
  18. - {name: search, label: "Search", color: gray}
  19. use:
  20. kind: select
  21. label: "Do we use it"
  22. options:
  23. - {name: active, label: "Use", color: green}
  24. - {name: paused, label: "Do not use", color: gray}
  25. address: {kind: text, label: "Venue address"}
  26. checked: {kind: date, label: "When the agent looked"}
  27. views:
  28. - id: event-sources--table
  29. name: All sources
  30. layout: table
  31. fields: {}
  32. properties:
  33. - {name: title, visible: true, width: 280}
  34. - {name: kind, visible: true}
  35. - {name: use, visible: true}
  36. - {name: url, visible: true}
  37. - {name: checked, visible: true}
  38. ---
  39. A source is a page where the collector agent looks for events. The agent opens only the sources marked "Use" (`use: active`) and sets the date in "When the agent looked". To turn a source off, set `use: paused`. A new source is a new page: `title`, `url`, `kind`, `use`.