[empty commit] pull request for add gRPC protocol

This commit is contained in:
minhhn3
2022-08-03 13:39:31 +07:00
parent dcecd10c88
commit 2232236a7a
4 changed files with 21 additions and 448 deletions

View File

@@ -107,7 +107,7 @@ class Monitor extends BeanModel {
grpcProtobuf: this.grpcProtobuf,
grpcMethod: this.grpcMethod,
grpcServiceName: this.grpcServiceName,
grpcEnableTls: this.grpcEnableTls,
grpcEnableTls: this.getGrpcEnableTls(),
};
if (includeSensitiveData) {
@@ -167,6 +167,14 @@ class Monitor extends BeanModel {
return Boolean(this.upsideDown);
}
/**
* Parse to boolean
* @returns {boolean}
*/
getGrpcEnableTls() {
return Boolean(this.grpcEnableTls);
}
/**
* Get accepted status codes
* @returns {Object}