Skip to content

Conversation

christeredvartsen
Copy link
Member

u := q.baseURL
u.Path = "/loki/api/v1/tail"

since := -1 * time.Hour
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
since := -1 * time.Hour
since := 1 * time.Hour

Siden vi gjør -since i .Add() på linje 60?


Defaults to 1 hour.
"""
since: Duration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skulle vi hatt datetime i stedetfor en duration? Det lar oss i f.eks. frontenden kunne linke til logger. Eller gir det ikke mening på en subscription?

"""
Initial batch of past log lines before streaming starts. Defaults to 100.
"""
limit: Int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bytte navn fra limit til f.eks. initialBatch? Limit navnet tolker jeg som at subscription vil avslutte etter 100 linjer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants