The Group API lets you inspect and manage your [groups](#google.monitoring.v3.Group).
A group is a named filter that is used to identify a collection of monitored resources. Groups are typically used to mirror the physical and/or logical topology of the environment. Because group membership is computed dynamically, monitored resources that are started in the future are automatically placed in matching groups. By using a group to name monitored resources in, for example, an alert policy, the target of that alert policy is updated automatically as monitored resources are added and removed from the infrastructure. v3
Package
@google-cloud/monitoringConstructors
(constructor)(opts, gaxInstance)
constructor
(
opts
?:
ClientOptions
,
gaxInstance
?:
typeof
gax
|
typeof
gax
.
fallback
);
Construct an instance of GroupServiceClient.
opts
ClientOptions
gaxInstance
typeof gax
| typeof fallback
: loaded instance of google-gax
. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new GroupServiceClient({fallback: true}, gax); ```
Properties
apiEndpoint
get
apiEndpoint
()
:
string
;
The DNS address for this API service.
apiEndpoint
static
get
apiEndpoint
()
:
string
;
The DNS address for this API service - same as servicePath.
auth
auth
:
gax
.
GoogleAuth
;
descriptors
descriptors
:
Descriptors
;
groupServiceStub
groupServiceStub
?:
Promise
< {
[
name
:
string
]
:
Function
;
}>;
innerApiCalls
innerApiCalls
:
{
[
name
:
string
]
:
Function
;
};
pathTemplates
pathTemplates
:
{
[
name
:
string
]
:
gax
.
PathTemplate
;
};
port
static
get
port
()
:
number
;
The port for this API service.
scopes
static
get
scopes
()
:
string
[];
The scopes needed to make gRPC calls for every method defined in this service.
servicePath
static
get
servicePath
()
:
string
;
The DNS address for this API service.
universeDomain
get
universeDomain
()
:
string
;
warn
warn
:
(
code
:
string
,
message
:
string
,
warnType
?:
string
)
=
>
void
;
Methods
close()
close
()
:
Promise<void>
;
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Promise
<void>
{Promise} A promise that resolves when the client is closed.
createGroup(request, options)
createGroup
(
request
?:
protos
.
google
.
monitoring
.
v3
.
ICreateGroupRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
ICreateGroupRequest
|
undefined
,
{}
|
undefined
]>;
Creates a new group.
request
options
Promise
<[ protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.ICreateGroupRequest
| undefined,
{} | undefined
]>
{Promise} - The promise which resolves to an array. The first element of the array is an object representing Group . Please see the documentation for more details and examples.
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The
* project (https://cloud.google.com/monitoring/api/v3#project_name) in which
* to create the group. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*/
// const name = 'abc123'
/**
* Required. A group definition. It is an error to define the `name` field
* because the system assigns the name.
*/
// const group = {}
/**
* If true, validate this request but do not create the group.
*/
// const validateOnly = true
// Imports the Monitoring library
const
{
GroupServiceClient
}
=
require
(
' @google-cloud/monitoring
'
).
v3
;
// Instantiates a client
const
monitoringClient
=
new
GroupServiceClient
();
async
function
callCreateGroup
()
{
// Construct request
const
request
=
{
name
,
group
,
};
// Run request
const
response
=
await
monitoringClient
.
createGroup
(
request
);
console
.
log
(
response
);
}
callCreateGroup
();
createGroup(request, options, callback)
createGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
ICreateGroupRequest
,
options
:
CallOptions
,
callback
:
Callback<protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
ICreateGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
options
CallOptions
callback
Callback
< protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.ICreateGroupRequest
| null | undefined, {} | null | undefined>
void
createGroup(request, callback)
createGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
ICreateGroupRequest
,
callback
:
Callback<protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
ICreateGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
callback
Callback
< protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.ICreateGroupRequest
| null | undefined, {} | null | undefined>
void
deleteGroup(request, options)
deleteGroup
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IDeleteGroupRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
protobuf
.
IEmpty
,
protos
.
google
.
monitoring
.
v3
.
IDeleteGroupRequest
|
undefined
,
{}
|
undefined
]>;
Deletes an existing group.
request
options
Promise
<[ protos.google.protobuf.IEmpty
, protos.google.monitoring.v3.IDeleteGroupRequest
| undefined,
{} | undefined
]>
{Promise} - The promise which resolves to an array. The first element of the array is an object representing Empty . Please see the documentation for more details and examples.
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The group to delete. The format is:
* projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
*/
// const name = 'abc123'
/**
* If this field is true, then the request means to delete a group with all
* its descendants. Otherwise, the request means to delete a group only when
* it has no descendants. The default value is false.
*/
// const recursive = true
// Imports the Monitoring library
const
{
GroupServiceClient
}
=
require
(
' @google-cloud/monitoring
'
).
v3
;
// Instantiates a client
const
monitoringClient
=
new
GroupServiceClient
();
async
function
callDeleteGroup
()
{
// Construct request
const
request
=
{
name
,
};
// Run request
const
response
=
await
monitoringClient
.
deleteGroup
(
request
);
console
.
log
(
response
);
}
callDeleteGroup
();
deleteGroup(request, options, callback)
deleteGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
IDeleteGroupRequest
,
options
:
CallOptions
,
callback
:
Callback<protos
.
google
.
protobuf
.
IEmpty
,
protos
.
google
.
monitoring
.
v3
.
IDeleteGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
options
CallOptions
callback
Callback
< protos.google.protobuf.IEmpty
, protos.google.monitoring.v3.IDeleteGroupRequest
| null | undefined, {} | null | undefined>
void
deleteGroup(request, callback)
deleteGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
IDeleteGroupRequest
,
callback
:
Callback<protos
.
google
.
protobuf
.
IEmpty
,
protos
.
google
.
monitoring
.
v3
.
IDeleteGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
callback
Callback
< protos.google.protobuf.IEmpty
, protos.google.monitoring.v3.IDeleteGroupRequest
| null | undefined, {} | null | undefined>
void
folderAlertPolicyConditionPath(folder, alertPolicy, condition)
folderAlertPolicyConditionPath
(
folder
:
string
,
alertPolicy
:
string
,
condition
:
string
)
:
string
;
Return a fully-qualified folderAlertPolicyCondition resource name string.
folder
string
alertPolicy
string
condition
string
string
{string} Resource name string.
folderAlertPolicyPath(folder, alertPolicy)
folderAlertPolicyPath
(
folder
:
string
,
alertPolicy
:
string
)
:
string
;
Return a fully-qualified folderAlertPolicy resource name string.
folder
string
alertPolicy
string
string
{string} Resource name string.
folderChannelDescriptorPath(folder, channelDescriptor)
folderChannelDescriptorPath
(
folder
:
string
,
channelDescriptor
:
string
)
:
string
;
Return a fully-qualified folderChannelDescriptor resource name string.
folder
string
channelDescriptor
string
string
{string} Resource name string.
folderGroupPath(folder, group)
folderGroupPath
(
folder
:
string
,
group
:
string
)
:
string
;
Return a fully-qualified folderGroup resource name string.
folder
string
group
string
string
{string} Resource name string.
folderNotificationChannelPath(folder, notificationChannel)
folderNotificationChannelPath
(
folder
:
string
,
notificationChannel
:
string
)
:
string
;
Return a fully-qualified folderNotificationChannel resource name string.
folder
string
notificationChannel
string
string
{string} Resource name string.
folderServicePath(folder, service)
folderServicePath
(
folder
:
string
,
service
:
string
)
:
string
;
Return a fully-qualified folderService resource name string.
folder
string
service
string
string
{string} Resource name string.
folderServiceServiceLevelObjectivePath(folder, service, serviceLevelObjective)
folderServiceServiceLevelObjectivePath
(
folder
:
string
,
service
:
string
,
serviceLevelObjective
:
string
)
:
string
;
Return a fully-qualified folderServiceServiceLevelObjective resource name string.
folder
string
service
string
serviceLevelObjective
string
string
{string} Resource name string.
folderUptimeCheckConfigPath(folder, uptimeCheckConfig)
folderUptimeCheckConfigPath
(
folder
:
string
,
uptimeCheckConfig
:
string
)
:
string
;
Return a fully-qualified folderUptimeCheckConfig resource name string.
folder
string
uptimeCheckConfig
string
string
{string} Resource name string.
getGroup(request, options)
getGroup
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IGetGroupRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
IGetGroupRequest
|
undefined
,
{}
|
undefined
]>;
Gets a single group.
request
options
Promise
<[ protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.IGetGroupRequest
| undefined,
{} | undefined
]>
{Promise} - The promise which resolves to an array. The first element of the array is an object representing Group . Please see the documentation for more details and examples.
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The group to retrieve. The format is:
* projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
*/
// const name = 'abc123'
// Imports the Monitoring library
const
{
GroupServiceClient
}
=
require
(
' @google-cloud/monitoring
'
).
v3
;
// Instantiates a client
const
monitoringClient
=
new
GroupServiceClient
();
async
function
callGetGroup
()
{
// Construct request
const
request
=
{
name
,
};
// Run request
const
response
=
await
monitoringClient
.
getGroup
(
request
);
console
.
log
(
response
);
}
callGetGroup
();
getGroup(request, options, callback)
getGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
IGetGroupRequest
,
options
:
CallOptions
,
callback
:
Callback<protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
IGetGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
options
CallOptions
callback
Callback
< protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.IGetGroupRequest
| null | undefined, {} | null | undefined>
void
getGroup(request, callback)
getGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
IGetGroupRequest
,
callback
:
Callback<protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
IGetGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
callback
Callback
< protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.IGetGroupRequest
| null | undefined, {} | null | undefined>
void
getProjectId()
getProjectId
()
:
Promise<string>
;
Promise
<string>
getProjectId(callback)
getProjectId
(
callback
:
Callback<string
,
undefined
,
undefined
> )
:
void
;
callback
Callback
<string, undefined, undefined>
void
initialize()
initialize
()
:
Promise
< {
[
name
:
string
]
:
Function
;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Promise
<{
[name: string]: Function
;
}>
{Promise} A promise that resolves to an authenticated service stub.
listGroupMembers(request, options)
listGroupMembers
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
api
.
IMonitoredResource
[],
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
|
null
,
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersResponse
]>;
Lists the monitored resources that are members of a group.
request
options
Promise
<[ protos.google.api.IMonitoredResource
[], protos.google.monitoring.v3.IListGroupMembersRequest
| null, protos.google.monitoring.v3.IListGroupMembersResponse
]>
{Promise} - The promise which resolves to an array. The first element of the array is Array of MonitoredResource
. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listGroupMembersAsync()
method described below for async iteration which you can stop as needed. Please see the documentation
for more details and examples.
listGroupMembers(request, options, callback)
listGroupMembers
(
request
:
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
options
:
CallOptions
,
callback
:
PaginationCallback<protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersResponse
|
null
|
undefined
,
protos
.
google
.
api
.
IMonitoredResource
> )
:
void
;
request
options
CallOptions
callback
PaginationCallback
< protos.google.monitoring.v3.IListGroupMembersRequest
, protos.google.monitoring.v3.IListGroupMembersResponse
| null | undefined, protos.google.api.IMonitoredResource
>
void
listGroupMembers(request, callback)
listGroupMembers
(
request
:
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
callback
:
PaginationCallback<protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersResponse
|
null
|
undefined
,
protos
.
google
.
api
.
IMonitoredResource
> )
:
void
;
request
callback
PaginationCallback
< protos.google.monitoring.v3.IListGroupMembersRequest
, protos.google.monitoring.v3.IListGroupMembersResponse
| null | undefined, protos.google.api.IMonitoredResource
>
void
listGroupMembersAsync(request, options)
listGroupMembersAsync
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
options
?:
CallOptions
)
:
AsyncIterable<protos
.
google
.
api
.
IMonitoredResource
> ;
Equivalent to listGroupMembers
, but returns an iterable object.
for
- await
- of
syntax is used with the iterable to get response elements on-demand.
request
options
AsyncIterable
< protos.google.api.IMonitoredResource
>
{Object} An iterable Object that allows async iteration . When you iterate the returned iterable, each element will be an object representing MonitoredResource . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The group whose members are listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
*/
// const name = 'abc123'
/**
* A positive number that is the maximum number of results to return.
*/
// const pageSize = 1234
/**
* If this field is not empty then it must contain the `next_page_token` value
* returned by a previous call to this method. Using this field causes the
* method to return additional results from the previous method call.
*/
// const pageToken = 'abc123'
/**
* An optional list
* filter (https://cloud.google.com/monitoring/api/learn_more#filtering)
* describing the members to be returned. The filter may reference the type,
* labels, and metadata of monitored resources that comprise the group. For
* example, to return only resources representing Compute Engine VM instances,
* use this filter:
* `resource.type = "gce_instance"`
*/
// const filter = 'abc123'
/**
* An optional time interval for which results should be returned. Only
* members that were part of the group during the specified interval are
* included in the response. If no interval is provided then the group
* membership over the last minute is returned.
*/
// const interval = {}
// Imports the Monitoring library
const
{
GroupServiceClient
}
=
require
(
' @google-cloud/monitoring
'
).
v3
;
// Instantiates a client
const
monitoringClient
=
new
GroupServiceClient
();
async
function
callListGroupMembers
()
{
// Construct request
const
request
=
{
name
,
};
// Run request
const
iterable
=
monitoringClient
.
listGroupMembersAsync
(
request
);
for
await
(
const
response
of
iterable
)
{
console
.
log
(
response
);
}
}
callListGroupMembers
();
listGroupMembersStream(request, options)
listGroupMembersStream
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IListGroupMembersRequest
,
options
?:
CallOptions
)
:
Transform
;
Equivalent to listGroupMembers
, but returns a NodeJS Stream object.
request
options
Transform
{Stream} An object stream which emits an object representing MonitoredResource
on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listGroupMembersAsync()
method described below for async iteration which you can stop as needed. Please see the documentation
for more details and examples.
listGroups(request, options)
listGroups
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
monitoring
.
v3
.
IGroup
[],
protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
|
null
,
protos
.
google
.
monitoring
.
v3
.
IListGroupsResponse
]>;
Lists the existing groups.
request
options
Promise
<[ protos.google.monitoring.v3.IGroup
[], protos.google.monitoring.v3.IListGroupsRequest
| null, protos.google.monitoring.v3.IListGroupsResponse
]>
{Promise} - The promise which resolves to an array. The first element of the array is Array of Group
. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using listGroupsAsync()
method described below for async iteration which you can stop as needed. Please see the documentation
for more details and examples.
listGroups(request, options, callback)
listGroups
(
request
:
protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
options
:
CallOptions
,
callback
:
PaginationCallback<protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
protos
.
google
.
monitoring
.
v3
.
IListGroupsResponse
|
null
|
undefined
,
protos
.
google
.
monitoring
.
v3
.
IGroup
> )
:
void
;
request
options
CallOptions
callback
PaginationCallback
< protos.google.monitoring.v3.IListGroupsRequest
, protos.google.monitoring.v3.IListGroupsResponse
| null | undefined, protos.google.monitoring.v3.IGroup
>
void
listGroups(request, callback)
listGroups
(
request
:
protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
callback
:
PaginationCallback<protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
protos
.
google
.
monitoring
.
v3
.
IListGroupsResponse
|
null
|
undefined
,
protos
.
google
.
monitoring
.
v3
.
IGroup
> )
:
void
;
request
callback
PaginationCallback
< protos.google.monitoring.v3.IListGroupsRequest
, protos.google.monitoring.v3.IListGroupsResponse
| null | undefined, protos.google.monitoring.v3.IGroup
>
void
listGroupsAsync(request, options)
listGroupsAsync
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
options
?:
CallOptions
)
:
AsyncIterable<protos
.
google
.
monitoring
.
v3
.
IGroup
> ;
Equivalent to listGroups
, but returns an iterable object.
for
- await
- of
syntax is used with the iterable to get response elements on-demand.
request
options
AsyncIterable
< protos.google.monitoring.v3.IGroup
>
{Object} An iterable Object that allows async iteration . When you iterate the returned iterable, each element will be an object representing Group . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples.
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The
* project (https://cloud.google.com/monitoring/api/v3#project_name) whose
* groups are to be listed. The format is:
* projects/[PROJECT_ID_OR_NUMBER]
*/
// const name = 'abc123'
/**
* A group name. The format is:
* projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* Returns groups whose `parent_name` field contains the group
* name. If no groups have this parent, the results are empty.
*/
// const childrenOfGroup = 'abc123'
/**
* A group name. The format is:
* projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* Returns groups that are ancestors of the specified group.
* The groups are returned in order, starting with the immediate parent and
* ending with the most distant ancestor. If the specified group has no
* immediate parent, the results are empty.
*/
// const ancestorsOfGroup = 'abc123'
/**
* A group name. The format is:
* projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
* Returns the descendants of the specified group. This is a superset of
* the results returned by the `children_of_group` filter, and includes
* children-of-children, and so forth.
*/
// const descendantsOfGroup = 'abc123'
/**
* A positive number that is the maximum number of results to return.
*/
// const pageSize = 1234
/**
* If this field is not empty then it must contain the `next_page_token` value
* returned by a previous call to this method. Using this field causes the
* method to return additional results from the previous method call.
*/
// const pageToken = 'abc123'
// Imports the Monitoring library
const
{
GroupServiceClient
}
=
require
(
' @google-cloud/monitoring
'
).
v3
;
// Instantiates a client
const
monitoringClient
=
new
GroupServiceClient
();
async
function
callListGroups
()
{
// Construct request
const
request
=
{
name
,
};
// Run request
const
iterable
=
monitoringClient
.
listGroupsAsync
(
request
);
for
await
(
const
response
of
iterable
)
{
console
.
log
(
response
);
}
}
callListGroups
();
listGroupsStream(request, options)
listGroupsStream
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IListGroupsRequest
,
options
?:
CallOptions
)
:
Transform
;
Equivalent to listGroups
, but returns a NodeJS Stream object.
request
options
Transform
{Stream} An object stream which emits an object representing Group
on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listGroupsAsync()
method described below for async iteration which you can stop as needed. Please see the documentation
for more details and examples.
matchAlertPolicyFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)
matchAlertPolicyFromFolderAlertPolicyConditionName
(
folderAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the alert_policy from FolderAlertPolicyCondition resource.
folderAlertPolicyConditionName
string
A fully-qualified path representing folder_alert_policy_condition resource.
string | number
{string} A string representing the alert_policy.
matchAlertPolicyFromFolderAlertPolicyName(folderAlertPolicyName)
matchAlertPolicyFromFolderAlertPolicyName
(
folderAlertPolicyName
:
string
)
:
string
|
number
;
Parse the alert_policy from FolderAlertPolicy resource.
folderAlertPolicyName
string
A fully-qualified path representing folder_alert_policy resource.
string | number
{string} A string representing the alert_policy.
matchAlertPolicyFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)
matchAlertPolicyFromOrganizationAlertPolicyConditionName
(
organizationAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the alert_policy from OrganizationAlertPolicyCondition resource.
organizationAlertPolicyConditionName
string
A fully-qualified path representing organization_alert_policy_condition resource.
string | number
{string} A string representing the alert_policy.
matchAlertPolicyFromOrganizationAlertPolicyName(organizationAlertPolicyName)
matchAlertPolicyFromOrganizationAlertPolicyName
(
organizationAlertPolicyName
:
string
)
:
string
|
number
;
Parse the alert_policy from OrganizationAlertPolicy resource.
organizationAlertPolicyName
string
A fully-qualified path representing organization_alert_policy resource.
string | number
{string} A string representing the alert_policy.
matchAlertPolicyFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)
matchAlertPolicyFromProjectAlertPolicyConditionName
(
projectAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the alert_policy from ProjectAlertPolicyCondition resource.
projectAlertPolicyConditionName
string
A fully-qualified path representing project_alert_policy_condition resource.
string | number
{string} A string representing the alert_policy.
matchAlertPolicyFromProjectAlertPolicyName(projectAlertPolicyName)
matchAlertPolicyFromProjectAlertPolicyName
(
projectAlertPolicyName
:
string
)
:
string
|
number
;
Parse the alert_policy from ProjectAlertPolicy resource.
projectAlertPolicyName
string
A fully-qualified path representing project_alert_policy resource.
string | number
{string} A string representing the alert_policy.
matchChannelDescriptorFromFolderChannelDescriptorName(folderChannelDescriptorName)
matchChannelDescriptorFromFolderChannelDescriptorName
(
folderChannelDescriptorName
:
string
)
:
string
|
number
;
Parse the channel_descriptor from FolderChannelDescriptor resource.
folderChannelDescriptorName
string
A fully-qualified path representing folder_channel_descriptor resource.
string | number
{string} A string representing the channel_descriptor.
matchChannelDescriptorFromOrganizationChannelDescriptorName(organizationChannelDescriptorName)
matchChannelDescriptorFromOrganizationChannelDescriptorName
(
organizationChannelDescriptorName
:
string
)
:
string
|
number
;
Parse the channel_descriptor from OrganizationChannelDescriptor resource.
organizationChannelDescriptorName
string
A fully-qualified path representing organization_channel_descriptor resource.
string | number
{string} A string representing the channel_descriptor.
matchChannelDescriptorFromProjectChannelDescriptorName(projectChannelDescriptorName)
matchChannelDescriptorFromProjectChannelDescriptorName
(
projectChannelDescriptorName
:
string
)
:
string
|
number
;
Parse the channel_descriptor from ProjectChannelDescriptor resource.
projectChannelDescriptorName
string
A fully-qualified path representing project_channel_descriptor resource.
string | number
{string} A string representing the channel_descriptor.
matchConditionFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)
matchConditionFromFolderAlertPolicyConditionName
(
folderAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the condition from FolderAlertPolicyCondition resource.
folderAlertPolicyConditionName
string
A fully-qualified path representing folder_alert_policy_condition resource.
string | number
{string} A string representing the condition.
matchConditionFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)
matchConditionFromOrganizationAlertPolicyConditionName
(
organizationAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the condition from OrganizationAlertPolicyCondition resource.
organizationAlertPolicyConditionName
string
A fully-qualified path representing organization_alert_policy_condition resource.
string | number
{string} A string representing the condition.
matchConditionFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)
matchConditionFromProjectAlertPolicyConditionName
(
projectAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the condition from ProjectAlertPolicyCondition resource.
projectAlertPolicyConditionName
string
A fully-qualified path representing project_alert_policy_condition resource.
string | number
{string} A string representing the condition.
matchFolderFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)
matchFolderFromFolderAlertPolicyConditionName
(
folderAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the folder from FolderAlertPolicyCondition resource.
folderAlertPolicyConditionName
string
A fully-qualified path representing folder_alert_policy_condition resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderAlertPolicyName(folderAlertPolicyName)
matchFolderFromFolderAlertPolicyName
(
folderAlertPolicyName
:
string
)
:
string
|
number
;
Parse the folder from FolderAlertPolicy resource.
folderAlertPolicyName
string
A fully-qualified path representing folder_alert_policy resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderChannelDescriptorName(folderChannelDescriptorName)
matchFolderFromFolderChannelDescriptorName
(
folderChannelDescriptorName
:
string
)
:
string
|
number
;
Parse the folder from FolderChannelDescriptor resource.
folderChannelDescriptorName
string
A fully-qualified path representing folder_channel_descriptor resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderGroupName(folderGroupName)
matchFolderFromFolderGroupName
(
folderGroupName
:
string
)
:
string
|
number
;
Parse the folder from FolderGroup resource.
folderGroupName
string
A fully-qualified path representing folder_group resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderNotificationChannelName(folderNotificationChannelName)
matchFolderFromFolderNotificationChannelName
(
folderNotificationChannelName
:
string
)
:
string
|
number
;
Parse the folder from FolderNotificationChannel resource.
folderNotificationChannelName
string
A fully-qualified path representing folder_notification_channel resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderServiceName(folderServiceName)
matchFolderFromFolderServiceName
(
folderServiceName
:
string
)
:
string
|
number
;
Parse the folder from FolderService resource.
folderServiceName
string
A fully-qualified path representing folder_service resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)
matchFolderFromFolderServiceServiceLevelObjectiveName
(
folderServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the folder from FolderServiceServiceLevelObjective resource.
folderServiceServiceLevelObjectiveName
string
A fully-qualified path representing folder_service_service_level_objective resource.
string | number
{string} A string representing the folder.
matchFolderFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName)
matchFolderFromFolderUptimeCheckConfigName
(
folderUptimeCheckConfigName
:
string
)
:
string
|
number
;
Parse the folder from FolderUptimeCheckConfig resource.
folderUptimeCheckConfigName
string
A fully-qualified path representing folder_uptime_check_config resource.
string | number
{string} A string representing the folder.
matchGroupFromFolderGroupName(folderGroupName)
matchGroupFromFolderGroupName
(
folderGroupName
:
string
)
:
string
|
number
;
Parse the group from FolderGroup resource.
folderGroupName
string
A fully-qualified path representing folder_group resource.
string | number
{string} A string representing the group.
matchGroupFromOrganizationGroupName(organizationGroupName)
matchGroupFromOrganizationGroupName
(
organizationGroupName
:
string
)
:
string
|
number
;
Parse the group from OrganizationGroup resource.
organizationGroupName
string
A fully-qualified path representing organization_group resource.
string | number
{string} A string representing the group.
matchGroupFromProjectGroupName(projectGroupName)
matchGroupFromProjectGroupName
(
projectGroupName
:
string
)
:
string
|
number
;
Parse the group from ProjectGroup resource.
projectGroupName
string
A fully-qualified path representing project_group resource.
string | number
{string} A string representing the group.
matchNotificationChannelFromFolderNotificationChannelName(folderNotificationChannelName)
matchNotificationChannelFromFolderNotificationChannelName
(
folderNotificationChannelName
:
string
)
:
string
|
number
;
Parse the notification_channel from FolderNotificationChannel resource.
folderNotificationChannelName
string
A fully-qualified path representing folder_notification_channel resource.
string | number
{string} A string representing the notification_channel.
matchNotificationChannelFromOrganizationNotificationChannelName(organizationNotificationChannelName)
matchNotificationChannelFromOrganizationNotificationChannelName
(
organizationNotificationChannelName
:
string
)
:
string
|
number
;
Parse the notification_channel from OrganizationNotificationChannel resource.
organizationNotificationChannelName
string
A fully-qualified path representing organization_notification_channel resource.
string | number
{string} A string representing the notification_channel.
matchNotificationChannelFromProjectNotificationChannelName(projectNotificationChannelName)
matchNotificationChannelFromProjectNotificationChannelName
(
projectNotificationChannelName
:
string
)
:
string
|
number
;
Parse the notification_channel from ProjectNotificationChannel resource.
projectNotificationChannelName
string
A fully-qualified path representing project_notification_channel resource.
string | number
{string} A string representing the notification_channel.
matchOrganizationFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)
matchOrganizationFromOrganizationAlertPolicyConditionName
(
organizationAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationAlertPolicyCondition resource.
organizationAlertPolicyConditionName
string
A fully-qualified path representing organization_alert_policy_condition resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationAlertPolicyName(organizationAlertPolicyName)
matchOrganizationFromOrganizationAlertPolicyName
(
organizationAlertPolicyName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationAlertPolicy resource.
organizationAlertPolicyName
string
A fully-qualified path representing organization_alert_policy resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationChannelDescriptorName(organizationChannelDescriptorName)
matchOrganizationFromOrganizationChannelDescriptorName
(
organizationChannelDescriptorName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationChannelDescriptor resource.
organizationChannelDescriptorName
string
A fully-qualified path representing organization_channel_descriptor resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationGroupName(organizationGroupName)
matchOrganizationFromOrganizationGroupName
(
organizationGroupName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationGroup resource.
organizationGroupName
string
A fully-qualified path representing organization_group resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationNotificationChannelName(organizationNotificationChannelName)
matchOrganizationFromOrganizationNotificationChannelName
(
organizationNotificationChannelName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationNotificationChannel resource.
organizationNotificationChannelName
string
A fully-qualified path representing organization_notification_channel resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationServiceName(organizationServiceName)
matchOrganizationFromOrganizationServiceName
(
organizationServiceName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationService resource.
organizationServiceName
string
A fully-qualified path representing organization_service resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)
matchOrganizationFromOrganizationServiceServiceLevelObjectiveName
(
organizationServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationServiceServiceLevelObjective resource.
organizationServiceServiceLevelObjectiveName
string
A fully-qualified path representing organization_service_service_level_objective resource.
string | number
{string} A string representing the organization.
matchOrganizationFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName)
matchOrganizationFromOrganizationUptimeCheckConfigName
(
organizationUptimeCheckConfigName
:
string
)
:
string
|
number
;
Parse the organization from OrganizationUptimeCheckConfig resource.
organizationUptimeCheckConfigName
string
A fully-qualified path representing organization_uptime_check_config resource.
string | number
{string} A string representing the organization.
matchProjectFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)
matchProjectFromProjectAlertPolicyConditionName
(
projectAlertPolicyConditionName
:
string
)
:
string
|
number
;
Parse the project from ProjectAlertPolicyCondition resource.
projectAlertPolicyConditionName
string
A fully-qualified path representing project_alert_policy_condition resource.
string | number
{string} A string representing the project.
matchProjectFromProjectAlertPolicyName(projectAlertPolicyName)
matchProjectFromProjectAlertPolicyName
(
projectAlertPolicyName
:
string
)
:
string
|
number
;
Parse the project from ProjectAlertPolicy resource.
projectAlertPolicyName
string
A fully-qualified path representing project_alert_policy resource.
string | number
{string} A string representing the project.
matchProjectFromProjectChannelDescriptorName(projectChannelDescriptorName)
matchProjectFromProjectChannelDescriptorName
(
projectChannelDescriptorName
:
string
)
:
string
|
number
;
Parse the project from ProjectChannelDescriptor resource.
projectChannelDescriptorName
string
A fully-qualified path representing project_channel_descriptor resource.
string | number
{string} A string representing the project.
matchProjectFromProjectGroupName(projectGroupName)
matchProjectFromProjectGroupName
(
projectGroupName
:
string
)
:
string
|
number
;
Parse the project from ProjectGroup resource.
projectGroupName
string
A fully-qualified path representing project_group resource.
string | number
{string} A string representing the project.
matchProjectFromProjectName(projectName)
matchProjectFromProjectName
(
projectName
:
string
)
:
string
|
number
;
Parse the project from Project resource.
projectName
string
A fully-qualified path representing Project resource.
string | number
{string} A string representing the project.
matchProjectFromProjectNotificationChannelName(projectNotificationChannelName)
matchProjectFromProjectNotificationChannelName
(
projectNotificationChannelName
:
string
)
:
string
|
number
;
Parse the project from ProjectNotificationChannel resource.
projectNotificationChannelName
string
A fully-qualified path representing project_notification_channel resource.
string | number
{string} A string representing the project.
matchProjectFromProjectServiceName(projectServiceName)
matchProjectFromProjectServiceName
(
projectServiceName
:
string
)
:
string
|
number
;
Parse the project from ProjectService resource.
projectServiceName
string
A fully-qualified path representing project_service resource.
string | number
{string} A string representing the project.
matchProjectFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)
matchProjectFromProjectServiceServiceLevelObjectiveName
(
projectServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the project from ProjectServiceServiceLevelObjective resource.
projectServiceServiceLevelObjectiveName
string
A fully-qualified path representing project_service_service_level_objective resource.
string | number
{string} A string representing the project.
matchProjectFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName)
matchProjectFromProjectUptimeCheckConfigName
(
projectUptimeCheckConfigName
:
string
)
:
string
|
number
;
Parse the project from ProjectUptimeCheckConfig resource.
projectUptimeCheckConfigName
string
A fully-qualified path representing project_uptime_check_config resource.
string | number
{string} A string representing the project.
matchProjectFromSnoozeName(snoozeName)
matchProjectFromSnoozeName
(
snoozeName
:
string
)
:
string
|
number
;
Parse the project from Snooze resource.
snoozeName
string
A fully-qualified path representing Snooze resource.
string | number
{string} A string representing the project.
matchServiceFromFolderServiceName(folderServiceName)
matchServiceFromFolderServiceName
(
folderServiceName
:
string
)
:
string
|
number
;
Parse the service from FolderService resource.
folderServiceName
string
A fully-qualified path representing folder_service resource.
string | number
{string} A string representing the service.
matchServiceFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)
matchServiceFromFolderServiceServiceLevelObjectiveName
(
folderServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the service from FolderServiceServiceLevelObjective resource.
folderServiceServiceLevelObjectiveName
string
A fully-qualified path representing folder_service_service_level_objective resource.
string | number
{string} A string representing the service.
matchServiceFromOrganizationServiceName(organizationServiceName)
matchServiceFromOrganizationServiceName
(
organizationServiceName
:
string
)
:
string
|
number
;
Parse the service from OrganizationService resource.
organizationServiceName
string
A fully-qualified path representing organization_service resource.
string | number
{string} A string representing the service.
matchServiceFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)
matchServiceFromOrganizationServiceServiceLevelObjectiveName
(
organizationServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the service from OrganizationServiceServiceLevelObjective resource.
organizationServiceServiceLevelObjectiveName
string
A fully-qualified path representing organization_service_service_level_objective resource.
string | number
{string} A string representing the service.
matchServiceFromProjectServiceName(projectServiceName)
matchServiceFromProjectServiceName
(
projectServiceName
:
string
)
:
string
|
number
;
Parse the service from ProjectService resource.
projectServiceName
string
A fully-qualified path representing project_service resource.
string | number
{string} A string representing the service.
matchServiceFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)
matchServiceFromProjectServiceServiceLevelObjectiveName
(
projectServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the service from ProjectServiceServiceLevelObjective resource.
projectServiceServiceLevelObjectiveName
string
A fully-qualified path representing project_service_service_level_objective resource.
string | number
{string} A string representing the service.
matchServiceLevelObjectiveFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)
matchServiceLevelObjectiveFromFolderServiceServiceLevelObjectiveName
(
folderServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the service_level_objective from FolderServiceServiceLevelObjective resource.
folderServiceServiceLevelObjectiveName
string
A fully-qualified path representing folder_service_service_level_objective resource.
string | number
{string} A string representing the service_level_objective.
matchServiceLevelObjectiveFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)
matchServiceLevelObjectiveFromOrganizationServiceServiceLevelObjectiveName
(
organizationServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the service_level_objective from OrganizationServiceServiceLevelObjective resource.
organizationServiceServiceLevelObjectiveName
string
A fully-qualified path representing organization_service_service_level_objective resource.
string | number
{string} A string representing the service_level_objective.
matchServiceLevelObjectiveFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)
matchServiceLevelObjectiveFromProjectServiceServiceLevelObjectiveName
(
projectServiceServiceLevelObjectiveName
:
string
)
:
string
|
number
;
Parse the service_level_objective from ProjectServiceServiceLevelObjective resource.
projectServiceServiceLevelObjectiveName
string
A fully-qualified path representing project_service_service_level_objective resource.
string | number
{string} A string representing the service_level_objective.
matchSnoozeFromSnoozeName(snoozeName)
matchSnoozeFromSnoozeName
(
snoozeName
:
string
)
:
string
|
number
;
Parse the snooze from Snooze resource.
snoozeName
string
A fully-qualified path representing Snooze resource.
string | number
{string} A string representing the snooze.
matchUptimeCheckConfigFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName)
matchUptimeCheckConfigFromFolderUptimeCheckConfigName
(
folderUptimeCheckConfigName
:
string
)
:
string
|
number
;
Parse the uptime_check_config from FolderUptimeCheckConfig resource.
folderUptimeCheckConfigName
string
A fully-qualified path representing folder_uptime_check_config resource.
string | number
{string} A string representing the uptime_check_config.
matchUptimeCheckConfigFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName)
matchUptimeCheckConfigFromOrganizationUptimeCheckConfigName
(
organizationUptimeCheckConfigName
:
string
)
:
string
|
number
;
Parse the uptime_check_config from OrganizationUptimeCheckConfig resource.
organizationUptimeCheckConfigName
string
A fully-qualified path representing organization_uptime_check_config resource.
string | number
{string} A string representing the uptime_check_config.
matchUptimeCheckConfigFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName)
matchUptimeCheckConfigFromProjectUptimeCheckConfigName
(
projectUptimeCheckConfigName
:
string
)
:
string
|
number
;
Parse the uptime_check_config from ProjectUptimeCheckConfig resource.
projectUptimeCheckConfigName
string
A fully-qualified path representing project_uptime_check_config resource.
string | number
{string} A string representing the uptime_check_config.
organizationAlertPolicyConditionPath(organization, alertPolicy, condition)
organizationAlertPolicyConditionPath
(
organization
:
string
,
alertPolicy
:
string
,
condition
:
string
)
:
string
;
Return a fully-qualified organizationAlertPolicyCondition resource name string.
organization
string
alertPolicy
string
condition
string
string
{string} Resource name string.
organizationAlertPolicyPath(organization, alertPolicy)
organizationAlertPolicyPath
(
organization
:
string
,
alertPolicy
:
string
)
:
string
;
Return a fully-qualified organizationAlertPolicy resource name string.
organization
string
alertPolicy
string
string
{string} Resource name string.
organizationChannelDescriptorPath(organization, channelDescriptor)
organizationChannelDescriptorPath
(
organization
:
string
,
channelDescriptor
:
string
)
:
string
;
Return a fully-qualified organizationChannelDescriptor resource name string.
organization
string
channelDescriptor
string
string
{string} Resource name string.
organizationGroupPath(organization, group)
organizationGroupPath
(
organization
:
string
,
group
:
string
)
:
string
;
Return a fully-qualified organizationGroup resource name string.
organization
string
group
string
string
{string} Resource name string.
organizationNotificationChannelPath(organization, notificationChannel)
organizationNotificationChannelPath
(
organization
:
string
,
notificationChannel
:
string
)
:
string
;
Return a fully-qualified organizationNotificationChannel resource name string.
organization
string
notificationChannel
string
string
{string} Resource name string.
organizationServicePath(organization, service)
organizationServicePath
(
organization
:
string
,
service
:
string
)
:
string
;
Return a fully-qualified organizationService resource name string.
organization
string
service
string
string
{string} Resource name string.
organizationServiceServiceLevelObjectivePath(organization, service, serviceLevelObjective)
organizationServiceServiceLevelObjectivePath
(
organization
:
string
,
service
:
string
,
serviceLevelObjective
:
string
)
:
string
;
Return a fully-qualified organizationServiceServiceLevelObjective resource name string.
organization
string
service
string
serviceLevelObjective
string
string
{string} Resource name string.
organizationUptimeCheckConfigPath(organization, uptimeCheckConfig)
organizationUptimeCheckConfigPath
(
organization
:
string
,
uptimeCheckConfig
:
string
)
:
string
;
Return a fully-qualified organizationUptimeCheckConfig resource name string.
organization
string
uptimeCheckConfig
string
string
{string} Resource name string.
projectAlertPolicyConditionPath(project, alertPolicy, condition)
projectAlertPolicyConditionPath
(
project
:
string
,
alertPolicy
:
string
,
condition
:
string
)
:
string
;
Return a fully-qualified projectAlertPolicyCondition resource name string.
project
string
alertPolicy
string
condition
string
string
{string} Resource name string.
projectAlertPolicyPath(project, alertPolicy)
projectAlertPolicyPath
(
project
:
string
,
alertPolicy
:
string
)
:
string
;
Return a fully-qualified projectAlertPolicy resource name string.
project
string
alertPolicy
string
string
{string} Resource name string.
projectChannelDescriptorPath(project, channelDescriptor)
projectChannelDescriptorPath
(
project
:
string
,
channelDescriptor
:
string
)
:
string
;
Return a fully-qualified projectChannelDescriptor resource name string.
project
string
channelDescriptor
string
string
{string} Resource name string.
projectGroupPath(project, group)
projectGroupPath
(
project
:
string
,
group
:
string
)
:
string
;
Return a fully-qualified projectGroup resource name string.
project
string
group
string
string
{string} Resource name string.
projectNotificationChannelPath(project, notificationChannel)
projectNotificationChannelPath
(
project
:
string
,
notificationChannel
:
string
)
:
string
;
Return a fully-qualified projectNotificationChannel resource name string.
project
string
notificationChannel
string
string
{string} Resource name string.
projectPath(project)
projectPath
(
project
:
string
)
:
string
;
Return a fully-qualified project resource name string.
project
string
string
{string} Resource name string.
projectServicePath(project, service)
projectServicePath
(
project
:
string
,
service
:
string
)
:
string
;
Return a fully-qualified projectService resource name string.
project
string
service
string
string
{string} Resource name string.
projectServiceServiceLevelObjectivePath(project, service, serviceLevelObjective)
projectServiceServiceLevelObjectivePath
(
project
:
string
,
service
:
string
,
serviceLevelObjective
:
string
)
:
string
;
Return a fully-qualified projectServiceServiceLevelObjective resource name string.
project
string
service
string
serviceLevelObjective
string
string
{string} Resource name string.
projectUptimeCheckConfigPath(project, uptimeCheckConfig)
projectUptimeCheckConfigPath
(
project
:
string
,
uptimeCheckConfig
:
string
)
:
string
;
Return a fully-qualified projectUptimeCheckConfig resource name string.
project
string
uptimeCheckConfig
string
string
{string} Resource name string.
snoozePath(project, snooze)
snoozePath
(
project
:
string
,
snooze
:
string
)
:
string
;
Return a fully-qualified snooze resource name string.
project
string
snooze
string
string
{string} Resource name string.
updateGroup(request, options)
updateGroup
(
request
?:
protos
.
google
.
monitoring
.
v3
.
IUpdateGroupRequest
,
options
?:
CallOptions
)
:
Promise
< [
protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
IUpdateGroupRequest
|
undefined
,
{}
|
undefined
]>;
Updates an existing group. You can change any group attributes except name
.
request
options
Promise
<[ protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.IUpdateGroupRequest
| undefined,
{} | undefined
]>
{Promise} - The promise which resolves to an array. The first element of the array is an object representing Group . Please see the documentation for more details and examples.
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The new definition of the group. All fields of the existing
* group, excepting `name`, are replaced with the corresponding fields of this
* group.
*/
// const group = {}
/**
* If true, validate this request but do not update the existing group.
*/
// const validateOnly = true
// Imports the Monitoring library
const
{
GroupServiceClient
}
=
require
(
' @google-cloud/monitoring
'
).
v3
;
// Instantiates a client
const
monitoringClient
=
new
GroupServiceClient
();
async
function
callUpdateGroup
()
{
// Construct request
const
request
=
{
group
,
};
// Run request
const
response
=
await
monitoringClient
.
updateGroup
(
request
);
console
.
log
(
response
);
}
callUpdateGroup
();
updateGroup(request, options, callback)
updateGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
IUpdateGroupRequest
,
options
:
CallOptions
,
callback
:
Callback<protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
IUpdateGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
options
CallOptions
callback
Callback
< protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.IUpdateGroupRequest
| null | undefined, {} | null | undefined>
void
updateGroup(request, callback)
updateGroup
(
request
:
protos
.
google
.
monitoring
.
v3
.
IUpdateGroupRequest
,
callback
:
Callback<protos
.
google
.
monitoring
.
v3
.
IGroup
,
protos
.
google
.
monitoring
.
v3
.
IUpdateGroupRequest
|
null
|
undefined
,
{}
|
null
|
undefined
> )
:
void
;
request
callback
Callback
< protos.google.monitoring.v3.IGroup
, protos.google.monitoring.v3.IUpdateGroupRequest
| null | undefined, {} | null | undefined>
void