use of com.redhat.cloud.notifications.routers.internal.models.ServerInfo in project notifications-backend by RedHatInsights.
the class InternalResource method getServerInfo.
@GET
@Path("/serverInfo")
@Produces(APPLICATION_JSON)
@RolesAllowed(ConsoleIdentityProvider.RBAC_INTERNAL_USER)
public ServerInfo getServerInfo() {
ServerInfo info = new ServerInfo();
String environmentName = System.getenv("ENV_NAME");
info.environment = ServerInfo.Environment.valueOf(environmentName == null ? "LOCAL_SERVER" : environmentName.toUpperCase());
return info;
}
Aggregations