Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Commit b2c8dd8

Browse files
authored
Merge pull request #83 from bright-room/claude/issue-67-20260310-0310
Close #67: Add HealthDetailsContributor demo to WebMVC health-indicator example
2 parents b196879 + 4ede5bd commit b2c8dd8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package net.brightroom.example.health;
2+
3+
import java.time.Instant;
4+
import java.util.LinkedHashMap;
5+
import java.util.Map;
6+
import net.brightroom.endpointgate.spring.actuator.health.HealthDetailsContributor;
7+
import org.springframework.stereotype.Component;
8+
9+
@Component
10+
public class CustomHealthDetailsContributor implements HealthDetailsContributor {
11+
12+
@Override
13+
public Map<String, Object> contributeDetails() {
14+
Map<String, Object> details = new LinkedHashMap<>();
15+
details.put("environment", "production");
16+
details.put("lastChecked", Instant.now().toString());
17+
return details;
18+
}
19+
}

0 commit comments

Comments
 (0)