X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fcontrollers%2FServiceStatus.java;h=8f4daac16d263a173de51b5387ab6e984f853754;hb=5408c157fc8aca52731fcc2cc035ed9dbfcff219;hp=c30cce15817beb375e9f62f6c9dd5340ba18df16;hpb=f26d17f375a8ab4d521549543d4fcc36bdc98865;p=nonrtric.git diff --git a/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java b/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java index c30cce15..8f4daac1 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/controllers/ServiceStatus.java @@ -30,18 +30,22 @@ import org.immutables.gson.Gson; public class ServiceStatus { @ApiModelProperty(value = "identity of the service") - public final String name; + public final String serviceName; @ApiModelProperty(value = "policy keep alive timeout") public final long keepAliveIntervalSeconds; @ApiModelProperty(value = "time since last invocation by the service") - public final long timeSincePingSeconds; + public final long timeSinceLastActivitySeconds; - ServiceStatus(String name, long keepAliveIntervalSeconds, long timeSincePingSeconds) { - this.name = name; + @ApiModelProperty(value = "callback for notifying of RIC recovery") + public String callbackUrl; + + ServiceStatus(String name, long keepAliveIntervalSeconds, long timeSincePingSeconds, String callbackUrl) { + this.serviceName = name; this.keepAliveIntervalSeconds = keepAliveIntervalSeconds; - this.timeSincePingSeconds = timeSincePingSeconds; + this.timeSinceLastActivitySeconds = timeSincePingSeconds; + this.callbackUrl = callbackUrl; } }