Class protos.google.cloud.servicehealth.v1.ServiceHealth (0.1.0)

Represents a ServiceHealth

Inheritance

$protobuf.rpc.Service > protos.google.cloud.servicehealth.v1.ServiceHealth

Package

@google-cloud/servicehealth

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ServiceHealth service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ServiceHealth;

Creates new ServiceHealth service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
ServiceHealth

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

getEvent(request, callback)

public getEvent(request: google.cloud.servicehealth.v1.IGetEventRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.GetEventCallback): void;

Calls GetEvent.

Parameters
NameDescription
request IGetEventRequest

GetEventRequest message or plain object

callback GetEventCallback

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

Returns
TypeDescription
void

getEvent(request)

public getEvent(request: google.cloud.servicehealth.v1.IGetEventRequest): Promise<google.cloud.servicehealth.v1.Event>;

Calls GetEvent.

Parameter
NameDescription
request IGetEventRequest

GetEventRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicehealth.v1.Event>

Promise

getOrganizationEvent(request, callback)

public getOrganizationEvent(request: google.cloud.servicehealth.v1.IGetOrganizationEventRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationEventCallback): void;

Calls GetOrganizationEvent.

Parameters
NameDescription
request IGetOrganizationEventRequest

GetOrganizationEventRequest message or plain object

callback GetOrganizationEventCallback

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

Returns
TypeDescription
void

getOrganizationEvent(request)

public getOrganizationEvent(request: google.cloud.servicehealth.v1.IGetOrganizationEventRequest): Promise<google.cloud.servicehealth.v1.OrganizationEvent>;

Calls GetOrganizationEvent.

Parameter
NameDescription
request IGetOrganizationEventRequest

GetOrganizationEventRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicehealth.v1.OrganizationEvent>

Promise

getOrganizationImpact(request, callback)

public getOrganizationImpact(request: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationImpactCallback): void;

Calls GetOrganizationImpact.

Parameters
NameDescription
request IGetOrganizationImpactRequest

GetOrganizationImpactRequest message or plain object

callback GetOrganizationImpactCallback

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

Returns
TypeDescription
void

getOrganizationImpact(request)

public getOrganizationImpact(request: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest): Promise<google.cloud.servicehealth.v1.OrganizationImpact>;

Calls GetOrganizationImpact.

Parameter
NameDescription
request IGetOrganizationImpactRequest

GetOrganizationImpactRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicehealth.v1.OrganizationImpact>

Promise

listEvents(request, callback)

public listEvents(request: google.cloud.servicehealth.v1.IListEventsRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.ListEventsCallback): void;

Calls ListEvents.

Parameters
NameDescription
request IListEventsRequest

ListEventsRequest message or plain object

callback ListEventsCallback

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

Returns
TypeDescription
void

listEvents(request)

public listEvents(request: google.cloud.servicehealth.v1.IListEventsRequest): Promise<google.cloud.servicehealth.v1.ListEventsResponse>;

Calls ListEvents.

Parameter
NameDescription
request IListEventsRequest

ListEventsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicehealth.v1.ListEventsResponse>

Promise

listOrganizationEvents(request, callback)

public listOrganizationEvents(request: google.cloud.servicehealth.v1.IListOrganizationEventsRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationEventsCallback): void;

Calls ListOrganizationEvents.

Parameters
NameDescription
request IListOrganizationEventsRequest

ListOrganizationEventsRequest message or plain object

callback ListOrganizationEventsCallback

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

Returns
TypeDescription
void

listOrganizationEvents(request)

public listOrganizationEvents(request: google.cloud.servicehealth.v1.IListOrganizationEventsRequest): Promise<google.cloud.servicehealth.v1.ListOrganizationEventsResponse>;

Calls ListOrganizationEvents.

Parameter
NameDescription
request IListOrganizationEventsRequest

ListOrganizationEventsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicehealth.v1.ListOrganizationEventsResponse>

Promise

listOrganizationImpacts(request, callback)

public listOrganizationImpacts(request: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationImpactsCallback): void;

Calls ListOrganizationImpacts.

Parameters
NameDescription
request IListOrganizationImpactsRequest

ListOrganizationImpactsRequest message or plain object

callback ListOrganizationImpactsCallback

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

Returns
TypeDescription
void

listOrganizationImpacts(request)

public listOrganizationImpacts(request: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest): Promise<google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>;

Calls ListOrganizationImpacts.

Parameter
NameDescription
request IListOrganizationImpactsRequest

ListOrganizationImpactsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.servicehealth.v1.ListOrganizationImpactsResponse>

Promise