Skip to content

Commit

Permalink
fix status
Browse files Browse the repository at this point in the history
  • Loading branch information
rayz committed Nov 2, 2023
1 parent d449d7c commit 63250e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/datadog/jmxfetch/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ private void addStats(
instanceTelemetryBean.getTopLevelAttributeCount());
instStats.put("instance_metric_count", instanceTelemetryBean.getMetricCount());
instStats.put("instance_domains_queried", instanceTelemetryBean.getDomainsQueried());
instStats.put("instance_wildcard_query_count",
instStats.put("instance_wildcard_domain_query_count",
instanceTelemetryBean.getWildcardDomainQueryCount());
instStats.put("instance_attribute_match_ratio",
instStats.put("instance_bean_match_ratio",
instanceTelemetryBean.getBeanMatchRatio());
}
instStats.put("message", message);
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/datadog/jmxfetch/StatusTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public void TestStatus() throws IOException {
assertEquals(fakeAttributeCount, stats.get("instance_attribute_count"));
assertEquals(fakeMetricCount, stats.get("instance_metric_count"));
assertEquals(fakeDomainsQueried, stats.get("instance_domains_queried"));
assertEquals(fakeWildcardQueryCount, stats.get("instance_wildcard_query_count"));
assertEquals(fakeBeansAttributeMatchRatio, stats.get("instance_attribute_match_ratio"));
assertEquals(fakeWildcardQueryCount, stats.get("instance_wildcard_domain_query_count"));
assertEquals(fakeBeansAttributeMatchRatio, stats.get("instance_bean_match_ratio"));
assertEquals("fake_message", stats.get("message"));
assertEquals(Status.STATUS_OK, stats.get("status"));
}
Expand Down

0 comments on commit 63250e5

Please sign in to comment.