adobe / helix-rum-bundler

Apache License 2.0
0 stars 0 forks source link

[logs] api proposal #127

Open maxakuru opened 2 months ago

maxakuru commented 2 months ago

There are three types of log streams:

  1. internal i. not exposed via api (eg. performance logging) ii. stored in helix-rum-logstreams/internal/<topic> iii. can be logged in any format, since any tools using the data will need direct access to storage
  2. system i. exposed only to superusers (eg. org actions, domain discovery) ii. stored in helix-rum-logstreams/system
  3. org-level i. exposed to org owners (eg. domain added/removed from org) ii. stored in helix-rum-logstreams/orgs/{org}

System logs

GET /logs -h { authorization: Bearer <sukey> }

Org logs

GET /orgs/{id}/logs -h { authorization: Bearer <orgkey | sukey> }

Changes to schedule invocation

to process log queue, add another schedule invocation type. see also #64 that requires the same

maxakuru commented 3 weeks ago

will use AuditLog from admin-support