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

Commit b196879

Browse files
authored
Merge pull request #84 from bright-room/claude/issue-68-20260310-0310
Close #68: Add ReactiveHealthDetailsContributor demo to WebFlux health-indicator example
2 parents feafeff + b8ecb36 commit b196879

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package net.brightroom.example.healthindicator;
2+
3+
import java.time.Instant;
4+
import java.util.Map;
5+
import net.brightroom.endpointgate.spring.actuator.health.ReactiveHealthDetailsContributor;
6+
import org.springframework.stereotype.Component;
7+
import reactor.core.publisher.Mono;
8+
9+
@Component
10+
public class CustomReactiveHealthDetailsContributor implements ReactiveHealthDetailsContributor {
11+
12+
@Override
13+
public Mono<Map<String, Object>> contributeDetails() {
14+
return Mono.fromCallable(
15+
() -> Map.of("environment", "production", "lastChecked", Instant.now().toString()));
16+
}
17+
}

0 commit comments

Comments
 (0)