//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/telemetry_alerting/v1/keyapis_telemetry_alerting_trigger_v1.proto
//
// Original file comments:
//
// Сервис реализует функционал управления оповещениями о проблемах сбора показаний телеметрии (алертинга)
#pragma warning disable 0414, 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Keyapis.TelemetryAlerting.V1 {
///
/// Сервис алертинга
///
public static partial class TriggerService
{
static readonly string __ServiceName = "keyapis.telemetry_alerting.v1.TriggerService";
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (message is global::Google.Protobuf.IBufferMessage)
{
context.SetPayloadLength(message.CalculateSize());
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
context.Complete();
return;
}
#endif
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static class __Helper_MessageCache
{
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (__Helper_MessageCache.IsBufferMessage)
{
return parser.ParseFrom(context.PayloadAsReadOnlySequence());
}
#endif
return parser.ParseFrom(context.PayloadAsNewBuffer());
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_PostTriggerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_PostTriggerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.PostTriggerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.DeleteTriggerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerAlertRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerAlertResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_PostTriggerAlertDisableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_PostTriggerAlertDisableResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertDeviceListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertDeviceListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostTrigger = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostTrigger",
__Marshaller_keyapis_telemetry_alerting_v1_PostTriggerRequest,
__Marshaller_keyapis_telemetry_alerting_v1_PostTriggerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetTrigger = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetTrigger",
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerRequest,
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetTriggerList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetTriggerList",
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerListRequest,
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetTriggerCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetTriggerCount",
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerCountRequest,
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteTrigger = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteTrigger",
__Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerRequest,
__Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetTriggerAlertList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetTriggerAlertList",
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertListRequest,
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetTriggerAlertCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetTriggerAlertCount",
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertCountRequest,
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteTriggerAlert = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteTriggerAlert",
__Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerAlertRequest,
__Marshaller_keyapis_telemetry_alerting_v1_DeleteTriggerAlertResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostTriggerAlertDisable = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostTriggerAlertDisable",
__Marshaller_keyapis_telemetry_alerting_v1_PostTriggerAlertDisableRequest,
__Marshaller_keyapis_telemetry_alerting_v1_PostTriggerAlertDisableResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetTriggerAlertDeviceList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetTriggerAlertDeviceList",
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertDeviceListRequest,
__Marshaller_keyapis_telemetry_alerting_v1_GetTriggerAlertDeviceListResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of TriggerService
[grpc::BindServiceMethod(typeof(TriggerService), "BindService")]
public abstract partial class TriggerServiceBase
{
///
/// Метод сохранения триггера.
/// Поддерживает создание и обновление.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PostTrigger(global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Чтение одного триггера.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetTrigger(global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request received from the client.
/// Used for sending responses back to the client.
/// The context of the server-side call handler being invoked.
/// A task indicating completion of the handler.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetTriggerList(global::Keyapis.TelemetryAlerting.V1.GetTriggerListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetTriggerCount(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Удаление триггера.
/// Метод удаляет только отключенный триггер (is_disabled=true).
/// Удаление неотключенного вызовет ошибку.
/// При удалении триггера удаляются и все его алерты.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task DeleteTrigger(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request received from the client.
/// Used for sending responses back to the client.
/// The context of the server-side call handler being invoked.
/// A task indicating completion of the handler.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetTriggerAlertList(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetTriggerAlertCount(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Удаление алерта.
/// Метод удаляет только погашенный алерт (is_disabled=true).
/// Удаление непогашенного вызовет ошибку.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task DeleteTriggerAlert(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Принудительное выключение алерта.
/// Дата closed_at проставляется текущим временем.
/// Флаг is_disabled проставляется true.
/// Флаг is_manually_closed проставляется true.
/// Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PostTriggerAlertDisable(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Список устройств, вызвавших появление алерта.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request received from the client.
/// Used for sending responses back to the client.
/// The context of the server-side call handler being invoked.
/// A task indicating completion of the handler.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetTriggerAlertDeviceList(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for TriggerService
public partial class TriggerServiceClient : grpc::ClientBase
{
/// Creates a new client for TriggerService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public TriggerServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for TriggerService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public TriggerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected TriggerServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected TriggerServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// Метод сохранения триггера.
/// Поддерживает создание и обновление.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.PostTriggerResponse PostTrigger(global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostTrigger(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения триггера.
/// Поддерживает создание и обновление.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.PostTriggerResponse PostTrigger(global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostTrigger, null, options, request);
}
///
/// Метод сохранения триггера.
/// Поддерживает создание и обновление.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostTriggerAsync(global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostTriggerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения триггера.
/// Поддерживает создание и обновление.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostTriggerAsync(global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostTrigger, null, options, request);
}
///
/// Чтение одного триггера.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.GetTriggerResponse GetTrigger(global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTrigger(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Чтение одного триггера.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.GetTriggerResponse GetTrigger(global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetTrigger, null, options, request);
}
///
/// Чтение одного триггера.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetTriggerAsync(global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Чтение одного триггера.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetTriggerAsync(global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetTrigger, null, options, request);
}
///
/// Метод получения списка триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetTriggerList(global::Keyapis.TelemetryAlerting.V1.GetTriggerListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetTriggerList(global::Keyapis.TelemetryAlerting.V1.GetTriggerListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetTriggerList, null, options, request);
}
///
/// Метод получения количества триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.GetTriggerCountResponse GetTriggerCount(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.GetTriggerCountResponse GetTriggerCount(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetTriggerCount, null, options, request);
}
///
/// Метод получения количества триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetTriggerCountAsync(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества триггеров.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetTriggerCountAsync(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetTriggerCount, null, options, request);
}
///
/// Удаление триггера.
/// Метод удаляет только отключенный триггер (is_disabled=true).
/// Удаление неотключенного вызовет ошибку.
/// При удалении триггера удаляются и все его алерты.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.DeleteTriggerResponse DeleteTrigger(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteTrigger(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Удаление триггера.
/// Метод удаляет только отключенный триггер (is_disabled=true).
/// Удаление неотключенного вызовет ошибку.
/// При удалении триггера удаляются и все его алерты.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.DeleteTriggerResponse DeleteTrigger(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteTrigger, null, options, request);
}
///
/// Удаление триггера.
/// Метод удаляет только отключенный триггер (is_disabled=true).
/// Удаление неотключенного вызовет ошибку.
/// При удалении триггера удаляются и все его алерты.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteTriggerAsync(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteTriggerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Удаление триггера.
/// Метод удаляет только отключенный триггер (is_disabled=true).
/// Удаление неотключенного вызовет ошибку.
/// При удалении триггера удаляются и все его алерты.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteTriggerAsync(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteTrigger, null, options, request);
}
///
/// Метод получения списка алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetTriggerAlertList(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerAlertList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetTriggerAlertList(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetTriggerAlertList, null, options, request);
}
///
/// Метод получения количества алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountResponse GetTriggerAlertCount(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerAlertCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountResponse GetTriggerAlertCount(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetTriggerAlertCount, null, options, request);
}
///
/// Метод получения количества алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetTriggerAlertCountAsync(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerAlertCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества алертов.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetTriggerAlertCountAsync(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetTriggerAlertCount, null, options, request);
}
///
/// Удаление алерта.
/// Метод удаляет только погашенный алерт (is_disabled=true).
/// Удаление непогашенного вызовет ошибку.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertResponse DeleteTriggerAlert(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteTriggerAlert(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Удаление алерта.
/// Метод удаляет только погашенный алерт (is_disabled=true).
/// Удаление непогашенного вызовет ошибку.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertResponse DeleteTriggerAlert(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteTriggerAlert, null, options, request);
}
///
/// Удаление алерта.
/// Метод удаляет только погашенный алерт (is_disabled=true).
/// Удаление непогашенного вызовет ошибку.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteTriggerAlertAsync(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteTriggerAlertAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Удаление алерта.
/// Метод удаляет только погашенный алерт (is_disabled=true).
/// Удаление непогашенного вызовет ошибку.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteTriggerAlertAsync(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteTriggerAlert, null, options, request);
}
///
/// Принудительное выключение алерта.
/// Дата closed_at проставляется текущим временем.
/// Флаг is_disabled проставляется true.
/// Флаг is_manually_closed проставляется true.
/// Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableResponse PostTriggerAlertDisable(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostTriggerAlertDisable(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Принудительное выключение алерта.
/// Дата closed_at проставляется текущим временем.
/// Флаг is_disabled проставляется true.
/// Флаг is_manually_closed проставляется true.
/// Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableResponse PostTriggerAlertDisable(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostTriggerAlertDisable, null, options, request);
}
///
/// Принудительное выключение алерта.
/// Дата closed_at проставляется текущим временем.
/// Флаг is_disabled проставляется true.
/// Флаг is_manually_closed проставляется true.
/// Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostTriggerAlertDisableAsync(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostTriggerAlertDisableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Принудительное выключение алерта.
/// Дата closed_at проставляется текущим временем.
/// Флаг is_disabled проставляется true.
/// Флаг is_manually_closed проставляется true.
/// Можно принудительно выключать только алерты созданные по триггерам с атрибутом manually_unclosable=false.
/// Метод доступен для: service, application(telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostTriggerAlertDisableAsync(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostTriggerAlertDisable, null, options, request);
}
///
/// Список устройств, вызвавших появление алерта.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetTriggerAlertDeviceList(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetTriggerAlertDeviceList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Список устройств, вызвавших появление алерта.
/// Метод доступен для: service, application(telemetry:read или telemetry:edit)
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetTriggerAlertDeviceList(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetTriggerAlertDeviceList, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override TriggerServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new TriggerServiceClient(configuration);
}
}
/// Creates service definition that can be registered with a server
/// An object implementing the server-side handling logic.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public static grpc::ServerServiceDefinition BindService(TriggerServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_PostTrigger, serviceImpl.PostTrigger)
.AddMethod(__Method_GetTrigger, serviceImpl.GetTrigger)
.AddMethod(__Method_GetTriggerList, serviceImpl.GetTriggerList)
.AddMethod(__Method_GetTriggerCount, serviceImpl.GetTriggerCount)
.AddMethod(__Method_DeleteTrigger, serviceImpl.DeleteTrigger)
.AddMethod(__Method_GetTriggerAlertList, serviceImpl.GetTriggerAlertList)
.AddMethod(__Method_GetTriggerAlertCount, serviceImpl.GetTriggerAlertCount)
.AddMethod(__Method_DeleteTriggerAlert, serviceImpl.DeleteTriggerAlert)
.AddMethod(__Method_PostTriggerAlertDisable, serviceImpl.PostTriggerAlertDisable)
.AddMethod(__Method_GetTriggerAlertDeviceList, serviceImpl.GetTriggerAlertDeviceList).Build();
}
/// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
/// Note: this method is part of an experimental API that can change or be removed without any prior notice.
/// Service methods will be bound by calling AddMethod on this object.
/// An object implementing the server-side handling logic.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public static void BindService(grpc::ServiceBinderBase serviceBinder, TriggerServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_PostTrigger, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostTrigger));
serviceBinder.AddMethod(__Method_GetTrigger, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTrigger));
serviceBinder.AddMethod(__Method_GetTriggerList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetTriggerList));
serviceBinder.AddMethod(__Method_GetTriggerCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTriggerCount));
serviceBinder.AddMethod(__Method_DeleteTrigger, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteTrigger));
serviceBinder.AddMethod(__Method_GetTriggerAlertList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetTriggerAlertList));
serviceBinder.AddMethod(__Method_GetTriggerAlertCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTriggerAlertCount));
serviceBinder.AddMethod(__Method_DeleteTriggerAlert, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteTriggerAlert));
serviceBinder.AddMethod(__Method_PostTriggerAlertDisable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostTriggerAlertDisable));
serviceBinder.AddMethod(__Method_GetTriggerAlertDeviceList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetTriggerAlertDeviceList));
}
}
}
#endregion