use of com.netflix.titus.grpc.protogen.ScalingPolicyStatus in project titus-control-plane by Netflix.
the class GrpcModelConverters method toScalingPolicyResult.
public static ScalingPolicyResult toScalingPolicyResult(AutoScalingPolicy autoScalingPolicy) {
ScalingPolicy scalingPolicy = toScalingPolicy(autoScalingPolicy);
ScalingPolicyStatus scalingPolicyStatus = toScalingPolicyStatus(autoScalingPolicy.getStatus(), autoScalingPolicy.getStatusMessage());
return ScalingPolicyResult.newBuilder().setJobId(autoScalingPolicy.getJobId()).setId(ScalingPolicyID.newBuilder().setId(autoScalingPolicy.getRefId()).build()).setPolicyState(scalingPolicyStatus).setScalingPolicy(scalingPolicy).build();
}
Aggregations