Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

eat dots #1435

Merged
merged 1 commit into from
Aug 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions schema/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (m *MetricData) Validate() error {
if m.Interval == 0 {
return ErrInvalidIntervalzero
}
m.Name = EatDots(m.Name)
if m.Name == "" {
return ErrInvalidEmptyName
}
Expand Down Expand Up @@ -192,6 +193,7 @@ func (m *MetricDefinition) Validate() error {
if m.Interval == 0 {
return ErrInvalidIntervalzero
}
m.Name = EatDots(m.Name)
if m.Name == "" {
return ErrInvalidEmptyName
}
Expand Down