Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
68c731d6
Commit
68c731d6
authored
May 28, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test for metrics with period in name
parent
1a660214
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
DefaultServerMetricNamingTests.java
...k/cloud/netflix/servo/DefaultServerMetricNamingTests.java
+7
-0
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/servo/DefaultServerMetricNamingTests.java
View file @
68c731d6
...
@@ -40,6 +40,13 @@ public class DefaultServerMetricNamingTests {
...
@@ -40,6 +40,13 @@ public class DefaultServerMetricNamingTests {
}
}
@Test
@Test
public
void
nameWithPeriodWorks
()
{
MonitorConfig
config
=
MonitorConfig
.
builder
(
"test.Metric"
)
.
build
();
String
name
=
naming
.
getName
(
new
Metric
(
config
,
System
.
currentTimeMillis
(),
0
));
assertThat
(
name
,
is
(
equalTo
(
"servo.test.metric"
)));
}
@Test
public
void
typeTagWorks
()
{
public
void
typeTagWorks
()
{
MonitorConfig
config
=
MonitorConfig
.
builder
(
"testMetric"
)
MonitorConfig
config
=
MonitorConfig
.
builder
(
"testMetric"
)
.
withTag
(
DataSourceType
.
KEY
,
DataSourceType
.
COUNTER
.
getValue
())
.
withTag
(
DataSourceType
.
KEY
,
DataSourceType
.
COUNTER
.
getValue
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment