Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Add time in message for *.tick #302

Closed
ivankennethwang opened this issue Mar 10, 2016 · 1 comment
Closed

Question: Add time in message for *.tick #302

ivankennethwang opened this issue Mar 10, 2016 · 1 comment

Comments

@ivankennethwang
Copy link

How can I add time in message?

snippet from cpu_alert.tick

.message('{{ .Time }} [{{ .Level}}] in {{ .Name }}')
[task_master] 2016/03/10 04:26:40 E! Stopped task: cpu_alert template: message:1:3: executing "message" at <.Time>: Time is not a field of struct type kapacitor.messageInfo
@ivankennethwang ivankennethwang changed the title Add time in message Add time in message for *.tick Mar 10, 2016
@ivankennethwang ivankennethwang changed the title Add time in message for *.tick Question: Add time in message for *.tick Mar 10, 2016
@nathanielc
Copy link
Contributor

At the moment you cannot. But that should be an easy addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants