NotificationChannelService

google.monitoring.v3. NotificationChannelService

Represents a NotificationChannelService

Constructor

new NotificationChannelService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new NotificationChannelService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createNotificationChannel(request, callback) → {undefined}

Calls CreateNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.ICreateNotificationChannelRequest

CreateNotificationChannelRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.CreateNotificationChannelCallback

Node-style callback called with the error, if any, and NotificationChannel

Returns:
Type Description
undefined

createNotificationChannel(request) → {Promise.<google.monitoring.v3.NotificationChannel>}

Calls CreateNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.ICreateNotificationChannelRequest

CreateNotificationChannelRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.NotificationChannel>

Promise

deleteNotificationChannel(request, callback) → {undefined}

Calls DeleteNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IDeleteNotificationChannelRequest

DeleteNotificationChannelRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.DeleteNotificationChannelCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteNotificationChannel(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IDeleteNotificationChannelRequest

DeleteNotificationChannelRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getNotificationChannel(request, callback) → {undefined}

Calls GetNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IGetNotificationChannelRequest

GetNotificationChannelRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.GetNotificationChannelCallback

Node-style callback called with the error, if any, and NotificationChannel

Returns:
Type Description
undefined

getNotificationChannel(request) → {Promise.<google.monitoring.v3.NotificationChannel>}

Calls GetNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IGetNotificationChannelRequest

GetNotificationChannelRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.NotificationChannel>

Promise

getNotificationChannelDescriptor(request, callback) → {undefined}

Calls GetNotificationChannelDescriptor.

Parameters:
Name Type Description
request google.monitoring.v3.IGetNotificationChannelDescriptorRequest

GetNotificationChannelDescriptorRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptorCallback

Node-style callback called with the error, if any, and NotificationChannelDescriptor

Returns:
Type Description
undefined

getNotificationChannelDescriptor(request) → {Promise.<google.monitoring.v3.NotificationChannelDescriptor>}

Calls GetNotificationChannelDescriptor.

Parameters:
Name Type Description
request google.monitoring.v3.IGetNotificationChannelDescriptorRequest

GetNotificationChannelDescriptorRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.NotificationChannelDescriptor>

Promise

getNotificationChannelVerificationCode(request, callback) → {undefined}

Calls GetNotificationChannelVerificationCode.

Parameters:
Name Type Description
request google.monitoring.v3.IGetNotificationChannelVerificationCodeRequest

GetNotificationChannelVerificationCodeRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCodeCallback

Node-style callback called with the error, if any, and GetNotificationChannelVerificationCodeResponse

Returns:
Type Description
undefined

getNotificationChannelVerificationCode(request) → {Promise.<google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>}

Calls GetNotificationChannelVerificationCode.

Parameters:
Name Type Description
request google.monitoring.v3.IGetNotificationChannelVerificationCodeRequest

GetNotificationChannelVerificationCodeRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.GetNotificationChannelVerificationCodeResponse>

Promise

listNotificationChannelDescriptors(request, callback) → {undefined}

Calls ListNotificationChannelDescriptors.

Parameters:
Name Type Description
request google.monitoring.v3.IListNotificationChannelDescriptorsRequest

ListNotificationChannelDescriptorsRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptorsCallback

Node-style callback called with the error, if any, and ListNotificationChannelDescriptorsResponse

Returns:
Type Description
undefined

listNotificationChannelDescriptors(request) → {Promise.<google.monitoring.v3.ListNotificationChannelDescriptorsResponse>}

Calls ListNotificationChannelDescriptors.

Parameters:
Name Type Description
request google.monitoring.v3.IListNotificationChannelDescriptorsRequest

ListNotificationChannelDescriptorsRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.ListNotificationChannelDescriptorsResponse>

Promise

listNotificationChannels(request, callback) → {undefined}

Calls ListNotificationChannels.

Parameters:
Name Type Description
request google.monitoring.v3.IListNotificationChannelsRequest

ListNotificationChannelsRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.ListNotificationChannelsCallback

Node-style callback called with the error, if any, and ListNotificationChannelsResponse

Returns:
Type Description
undefined

listNotificationChannels(request) → {Promise.<google.monitoring.v3.ListNotificationChannelsResponse>}

Calls ListNotificationChannels.

Parameters:
Name Type Description
request google.monitoring.v3.IListNotificationChannelsRequest

ListNotificationChannelsRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.ListNotificationChannelsResponse>

Promise

sendNotificationChannelVerificationCode(request, callback) → {undefined}

Calls SendNotificationChannelVerificationCode.

Parameters:
Name Type Description
request google.monitoring.v3.ISendNotificationChannelVerificationCodeRequest

SendNotificationChannelVerificationCodeRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCodeCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

sendNotificationChannelVerificationCode(request) → {Promise.<google.protobuf.Empty>}

Calls SendNotificationChannelVerificationCode.

Parameters:
Name Type Description
request google.monitoring.v3.ISendNotificationChannelVerificationCodeRequest

SendNotificationChannelVerificationCodeRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

updateNotificationChannel(request, callback) → {undefined}

Calls UpdateNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IUpdateNotificationChannelRequest

UpdateNotificationChannelRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.UpdateNotificationChannelCallback

Node-style callback called with the error, if any, and NotificationChannel

Returns:
Type Description
undefined

updateNotificationChannel(request) → {Promise.<google.monitoring.v3.NotificationChannel>}

Calls UpdateNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IUpdateNotificationChannelRequest

UpdateNotificationChannelRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.NotificationChannel>

Promise

verifyNotificationChannel(request, callback) → {undefined}

Calls VerifyNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IVerifyNotificationChannelRequest

VerifyNotificationChannelRequest message or plain object

callback google.monitoring.v3.NotificationChannelService.VerifyNotificationChannelCallback

Node-style callback called with the error, if any, and NotificationChannel

Returns:
Type Description
undefined

verifyNotificationChannel(request) → {Promise.<google.monitoring.v3.NotificationChannel>}

Calls VerifyNotificationChannel.

Parameters:
Name Type Description
request google.monitoring.v3.IVerifyNotificationChannelRequest

VerifyNotificationChannelRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.NotificationChannel>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {NotificationChannelService}

Creates new NotificationChannelService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
NotificationChannelService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CreateNotificationChannelCallback(error, responseopt)

Callback as used by createNotificationChannel.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.NotificationChannel <optional>

NotificationChannel

DeleteNotificationChannelCallback(error, responseopt)

Callback as used by deleteNotificationChannel.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetNotificationChannelCallback(error, responseopt)

Callback as used by getNotificationChannel.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.NotificationChannel <optional>

NotificationChannel

GetNotificationChannelDescriptorCallback(error, responseopt)

Callback as used by getNotificationChannelDescriptor.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.NotificationChannelDescriptor <optional>

NotificationChannelDescriptor

GetNotificationChannelVerificationCodeCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.GetNotificationChannelVerificationCodeResponse <optional>

GetNotificationChannelVerificationCodeResponse

ListNotificationChannelDescriptorsCallback(error, responseopt)

Callback as used by listNotificationChannelDescriptors.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.ListNotificationChannelDescriptorsResponse <optional>

ListNotificationChannelDescriptorsResponse

ListNotificationChannelsCallback(error, responseopt)

Callback as used by listNotificationChannels.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.ListNotificationChannelsResponse <optional>

ListNotificationChannelsResponse

SendNotificationChannelVerificationCodeCallback(error, responseopt)

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

UpdateNotificationChannelCallback(error, responseopt)

Callback as used by updateNotificationChannel.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.NotificationChannel <optional>

NotificationChannel

VerifyNotificationChannelCallback(error, responseopt)

Callback as used by verifyNotificationChannel.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.NotificationChannel <optional>

NotificationChannel