Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130<?php
declare(strict_types=1);
namespace Openstatus\Sdk\Services;
use Openstatus\Monitor\V1 as M;use Openstatus\Sdk\Transport\JsonTransport;
final class MonitorServiceClient{ private const FQN = 'openstatus.monitor.v1.MonitorService';
public function __construct(private readonly JsonTransport $transport) { }
/** * @param array<string, string> $headers */ public function createHTTPMonitor(M\CreateHTTPMonitorRequest $request, array $headers = []): M\CreateHTTPMonitorResponse { return $this->transport->call(self::FQN, 'CreateHTTPMonitor', $request, M\CreateHTTPMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function createTCPMonitor(M\CreateTCPMonitorRequest $request, array $headers = []): M\CreateTCPMonitorResponse { return $this->transport->call(self::FQN, 'CreateTCPMonitor', $request, M\CreateTCPMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function createDNSMonitor(M\CreateDNSMonitorRequest $request, array $headers = []): M\CreateDNSMonitorResponse { return $this->transport->call(self::FQN, 'CreateDNSMonitor', $request, M\CreateDNSMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateHTTPMonitor(M\UpdateHTTPMonitorRequest $request, array $headers = []): M\UpdateHTTPMonitorResponse { return $this->transport->call(self::FQN, 'UpdateHTTPMonitor', $request, M\UpdateHTTPMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateTCPMonitor(M\UpdateTCPMonitorRequest $request, array $headers = []): M\UpdateTCPMonitorResponse { return $this->transport->call(self::FQN, 'UpdateTCPMonitor', $request, M\UpdateTCPMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateDNSMonitor(M\UpdateDNSMonitorRequest $request, array $headers = []): M\UpdateDNSMonitorResponse { return $this->transport->call(self::FQN, 'UpdateDNSMonitor', $request, M\UpdateDNSMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getMonitor(M\GetMonitorRequest $request, array $headers = []): M\GetMonitorResponse { return $this->transport->call(self::FQN, 'GetMonitor', $request, M\GetMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function listMonitors(M\ListMonitorsRequest $request, array $headers = []): M\ListMonitorsResponse { return $this->transport->call(self::FQN, 'ListMonitors', $request, M\ListMonitorsResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function triggerMonitor(M\TriggerMonitorRequest $request, array $headers = []): M\TriggerMonitorResponse { return $this->transport->call(self::FQN, 'TriggerMonitor', $request, M\TriggerMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function deleteMonitor(M\DeleteMonitorRequest $request, array $headers = []): M\DeleteMonitorResponse { return $this->transport->call(self::FQN, 'DeleteMonitor', $request, M\DeleteMonitorResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getMonitorStatus(M\GetMonitorStatusRequest $request, array $headers = []): M\GetMonitorStatusResponse { return $this->transport->call(self::FQN, 'GetMonitorStatus', $request, M\GetMonitorStatusResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getMonitorSummary(M\GetMonitorSummaryRequest $request, array $headers = []): M\GetMonitorSummaryResponse { return $this->transport->call(self::FQN, 'GetMonitorSummary', $request, M\GetMonitorSummaryResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function listMonitorHTTPResponseLogs(M\ListMonitorHTTPResponseLogsRequest $request, array $headers = []): M\ListMonitorHTTPResponseLogsResponse { return $this->transport->call(self::FQN, 'ListMonitorHTTPResponseLogs', $request, M\ListMonitorHTTPResponseLogsResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getMonitorHTTPResponseLog(M\GetMonitorHTTPResponseLogRequest $request, array $headers = []): M\GetMonitorHTTPResponseLogResponse { return $this->transport->call(self::FQN, 'GetMonitorHTTPResponseLog', $request, M\GetMonitorHTTPResponseLogResponse::class, $headers); }}