com.contentgrid.spring.boot.actuator.ContentGridApplicationInfoContributor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contentgrid-spring-boot-actuators Show documentation
Show all versions of contentgrid-spring-boot-actuators Show documentation
Custom actuators for ContentGrid applications
The newest version!
package com.contentgrid.spring.boot.actuator;
import org.springframework.boot.actuate.info.Info.Builder;
import org.springframework.boot.actuate.info.InfoContributor;
import lombok.Data;
public class ContentGridApplicationInfoContributor implements InfoContributor {
private final ContentGridInfo contentGridInfo;
public ContentGridApplicationInfoContributor(ContentGridInfo contentGridInfo) {
this.contentGridInfo = contentGridInfo;
}
@Override
public void contribute(Builder builder) {
builder.withDetail("ContentGrid", this.contentGridInfo);
}
@Data
public static class ContentGridInfo {
private final String applicationId;
private final String deploymentId;
private final String changesetId;
}
}