MonitoringServiceClient.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Monitoring\V1;
  4. /**
  5. */
  6. class MonitoringServiceClient extends \Grpc\BaseStub {
  7. /**
  8. * @param string $hostname hostname
  9. * @param array $opts channel options
  10. * @param \Grpc\Channel $channel (optional) re-use channel object
  11. */
  12. public function __construct($hostname, $opts, $channel = null) {
  13. parent::__construct($hostname, $opts, $channel);
  14. }
  15. /**
  16. * Gets the health status of the database.
  17. * @param \Ydb\Monitoring\SelfCheckRequest $argument input argument
  18. * @param array $metadata metadata
  19. * @param array $options call options
  20. * @return \Grpc\UnaryCall
  21. */
  22. public function SelfCheck(\Ydb\Monitoring\SelfCheckRequest $argument,
  23. $metadata = [], $options = []) {
  24. return $this->_simpleRequest('/Ydb.Monitoring.V1.MonitoringService/SelfCheck',
  25. $argument,
  26. ['\Ydb\Monitoring\SelfCheckResponse', 'decode'],
  27. $metadata, $options);
  28. }
  29. /**
  30. * Checks current node health
  31. * @param \Ydb\Monitoring\NodeCheckRequest $argument input argument
  32. * @param array $metadata metadata
  33. * @param array $options call options
  34. * @return \Grpc\UnaryCall
  35. */
  36. public function NodeCheck(\Ydb\Monitoring\NodeCheckRequest $argument,
  37. $metadata = [], $options = []) {
  38. return $this->_simpleRequest('/Ydb.Monitoring.V1.MonitoringService/NodeCheck',
  39. $argument,
  40. ['\Ydb\Monitoring\NodeCheckResponse', 'decode'],
  41. $metadata, $options);
  42. }
  43. }