The QueryService API is used to manage time series data in Stackdriver Monitoring. Time series data is a collection of data points that describes the time-varying values of a metric. v3
Package
@google-cloud/monitoringConstructors
(constructor)(opts)
constructor(opts?: ClientOptions);
Construct an instance of QueryServiceClient.
Name | Description |
opts |
ClientOptions
|
Properties
apiEndpoint
static get apiEndpoint(): string;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
auth
auth: gax.GoogleAuth;
descriptors
descriptors: Descriptors;
innerApiCalls
innerApiCalls: {
[name: string]: Function;
};
pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};
port
static get port(): number;
The port for this API service.
queryServiceStub
queryServiceStub?: Promise<{
[name: string]: Function;
}>;
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.
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.
Type | Description |
Promise<void> | {Promise} A promise that resolves when the client is closed. |
folderAlertPolicyConditionPath(folder, alertPolicy, condition)
folderAlertPolicyConditionPath(folder: string, alertPolicy: string, condition: string): string;
Return a fully-qualified folderAlertPolicyCondition resource name string.
Name | Description |
folder |
string
|
alertPolicy |
string
|
condition |
string
|
Type | Description |
string | {string} Resource name string. |
folderAlertPolicyPath(folder, alertPolicy)
folderAlertPolicyPath(folder: string, alertPolicy: string): string;
Return a fully-qualified folderAlertPolicy resource name string.
Name | Description |
folder |
string
|
alertPolicy |
string
|
Type | Description |
string | {string} Resource name string. |
folderChannelDescriptorPath(folder, channelDescriptor)
folderChannelDescriptorPath(folder: string, channelDescriptor: string): string;
Return a fully-qualified folderChannelDescriptor resource name string.
Name | Description |
folder |
string
|
channelDescriptor |
string
|
Type | Description |
string | {string} Resource name string. |
folderGroupPath(folder, group)
folderGroupPath(folder: string, group: string): string;
Return a fully-qualified folderGroup resource name string.
Name | Description |
folder |
string
|
group |
string
|
Type | Description |
string | {string} Resource name string. |
folderNotificationChannelPath(folder, notificationChannel)
folderNotificationChannelPath(folder: string, notificationChannel: string): string;
Return a fully-qualified folderNotificationChannel resource name string.
Name | Description |
folder |
string
|
notificationChannel |
string
|
Type | Description |
string | {string} Resource name string. |
folderServicePath(folder, service)
folderServicePath(folder: string, service: string): string;
Return a fully-qualified folderService resource name string.
Name | Description |
folder |
string
|
service |
string
|
Type | Description |
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.
Name | Description |
folder |
string
|
service |
string
|
serviceLevelObjective |
string
|
Type | Description |
string | {string} Resource name string. |
folderUptimeCheckConfigPath(folder, uptimeCheckConfig)
folderUptimeCheckConfigPath(folder: string, uptimeCheckConfig: string): string;
Return a fully-qualified folderUptimeCheckConfig resource name string.
Name | Description |
folder |
string
|
uptimeCheckConfig |
string
|
Type | Description |
string | {string} Resource name string. |
getProjectId()
getProjectId(): Promise<string>;
Type | Description |
Promise<string> |
getProjectId(callback)
getProjectId(callback: Callback<string, undefined, undefined>): void;
Name | Description |
callback |
Callback<string, undefined, undefined>
|
Type | Description |
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.
Type | Description |
Promise<{ [name: string]: Function; }> | {Promise} A promise that resolves to an authenticated service stub. |
matchAlertPolicyFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)
matchAlertPolicyFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName: string): string | number;
Parse the alert_policy from FolderAlertPolicyCondition resource.
Name | Description |
folderAlertPolicyConditionName |
string
A fully-qualified path representing folder_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the alert_policy. |
matchAlertPolicyFromFolderAlertPolicyName(folderAlertPolicyName)
matchAlertPolicyFromFolderAlertPolicyName(folderAlertPolicyName: string): string | number;
Parse the alert_policy from FolderAlertPolicy resource.
Name | Description |
folderAlertPolicyName |
string
A fully-qualified path representing folder_alert_policy resource. |
Type | Description |
string | number | {string} A string representing the alert_policy. |
matchAlertPolicyFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)
matchAlertPolicyFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName: string): string | number;
Parse the alert_policy from OrganizationAlertPolicyCondition resource.
Name | Description |
organizationAlertPolicyConditionName |
string
A fully-qualified path representing organization_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the alert_policy. |
matchAlertPolicyFromOrganizationAlertPolicyName(organizationAlertPolicyName)
matchAlertPolicyFromOrganizationAlertPolicyName(organizationAlertPolicyName: string): string | number;
Parse the alert_policy from OrganizationAlertPolicy resource.
Name | Description |
organizationAlertPolicyName |
string
A fully-qualified path representing organization_alert_policy resource. |
Type | Description |
string | number | {string} A string representing the alert_policy. |
matchAlertPolicyFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)
matchAlertPolicyFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName: string): string | number;
Parse the alert_policy from ProjectAlertPolicyCondition resource.
Name | Description |
projectAlertPolicyConditionName |
string
A fully-qualified path representing project_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the alert_policy. |
matchAlertPolicyFromProjectAlertPolicyName(projectAlertPolicyName)
matchAlertPolicyFromProjectAlertPolicyName(projectAlertPolicyName: string): string | number;
Parse the alert_policy from ProjectAlertPolicy resource.
Name | Description |
projectAlertPolicyName |
string
A fully-qualified path representing project_alert_policy resource. |
Type | Description |
string | number | {string} A string representing the alert_policy. |
matchChannelDescriptorFromFolderChannelDescriptorName(folderChannelDescriptorName)
matchChannelDescriptorFromFolderChannelDescriptorName(folderChannelDescriptorName: string): string | number;
Parse the channel_descriptor from FolderChannelDescriptor resource.
Name | Description |
folderChannelDescriptorName |
string
A fully-qualified path representing folder_channel_descriptor resource. |
Type | Description |
string | number | {string} A string representing the channel_descriptor. |
matchChannelDescriptorFromOrganizationChannelDescriptorName(organizationChannelDescriptorName)
matchChannelDescriptorFromOrganizationChannelDescriptorName(organizationChannelDescriptorName: string): string | number;
Parse the channel_descriptor from OrganizationChannelDescriptor resource.
Name | Description |
organizationChannelDescriptorName |
string
A fully-qualified path representing organization_channel_descriptor resource. |
Type | Description |
string | number | {string} A string representing the channel_descriptor. |
matchChannelDescriptorFromProjectChannelDescriptorName(projectChannelDescriptorName)
matchChannelDescriptorFromProjectChannelDescriptorName(projectChannelDescriptorName: string): string | number;
Parse the channel_descriptor from ProjectChannelDescriptor resource.
Name | Description |
projectChannelDescriptorName |
string
A fully-qualified path representing project_channel_descriptor resource. |
Type | Description |
string | number | {string} A string representing the channel_descriptor. |
matchConditionFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)
matchConditionFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName: string): string | number;
Parse the condition from FolderAlertPolicyCondition resource.
Name | Description |
folderAlertPolicyConditionName |
string
A fully-qualified path representing folder_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the condition. |
matchConditionFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)
matchConditionFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName: string): string | number;
Parse the condition from OrganizationAlertPolicyCondition resource.
Name | Description |
organizationAlertPolicyConditionName |
string
A fully-qualified path representing organization_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the condition. |
matchConditionFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)
matchConditionFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName: string): string | number;
Parse the condition from ProjectAlertPolicyCondition resource.
Name | Description |
projectAlertPolicyConditionName |
string
A fully-qualified path representing project_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the condition. |
matchFolderFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName)
matchFolderFromFolderAlertPolicyConditionName(folderAlertPolicyConditionName: string): string | number;
Parse the folder from FolderAlertPolicyCondition resource.
Name | Description |
folderAlertPolicyConditionName |
string
A fully-qualified path representing folder_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderAlertPolicyName(folderAlertPolicyName)
matchFolderFromFolderAlertPolicyName(folderAlertPolicyName: string): string | number;
Parse the folder from FolderAlertPolicy resource.
Name | Description |
folderAlertPolicyName |
string
A fully-qualified path representing folder_alert_policy resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderChannelDescriptorName(folderChannelDescriptorName)
matchFolderFromFolderChannelDescriptorName(folderChannelDescriptorName: string): string | number;
Parse the folder from FolderChannelDescriptor resource.
Name | Description |
folderChannelDescriptorName |
string
A fully-qualified path representing folder_channel_descriptor resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderGroupName(folderGroupName)
matchFolderFromFolderGroupName(folderGroupName: string): string | number;
Parse the folder from FolderGroup resource.
Name | Description |
folderGroupName |
string
A fully-qualified path representing folder_group resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderNotificationChannelName(folderNotificationChannelName)
matchFolderFromFolderNotificationChannelName(folderNotificationChannelName: string): string | number;
Parse the folder from FolderNotificationChannel resource.
Name | Description |
folderNotificationChannelName |
string
A fully-qualified path representing folder_notification_channel resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderServiceName(folderServiceName)
matchFolderFromFolderServiceName(folderServiceName: string): string | number;
Parse the folder from FolderService resource.
Name | Description |
folderServiceName |
string
A fully-qualified path representing folder_service resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)
matchFolderFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName: string): string | number;
Parse the folder from FolderServiceServiceLevelObjective resource.
Name | Description |
folderServiceServiceLevelObjectiveName |
string
A fully-qualified path representing folder_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchFolderFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName)
matchFolderFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName: string): string | number;
Parse the folder from FolderUptimeCheckConfig resource.
Name | Description |
folderUptimeCheckConfigName |
string
A fully-qualified path representing folder_uptime_check_config resource. |
Type | Description |
string | number | {string} A string representing the folder. |
matchGroupFromFolderGroupName(folderGroupName)
matchGroupFromFolderGroupName(folderGroupName: string): string | number;
Parse the group from FolderGroup resource.
Name | Description |
folderGroupName |
string
A fully-qualified path representing folder_group resource. |
Type | Description |
string | number | {string} A string representing the group. |
matchGroupFromOrganizationGroupName(organizationGroupName)
matchGroupFromOrganizationGroupName(organizationGroupName: string): string | number;
Parse the group from OrganizationGroup resource.
Name | Description |
organizationGroupName |
string
A fully-qualified path representing organization_group resource. |
Type | Description |
string | number | {string} A string representing the group. |
matchGroupFromProjectGroupName(projectGroupName)
matchGroupFromProjectGroupName(projectGroupName: string): string | number;
Parse the group from ProjectGroup resource.
Name | Description |
projectGroupName |
string
A fully-qualified path representing project_group resource. |
Type | Description |
string | number | {string} A string representing the group. |
matchNotificationChannelFromFolderNotificationChannelName(folderNotificationChannelName)
matchNotificationChannelFromFolderNotificationChannelName(folderNotificationChannelName: string): string | number;
Parse the notification_channel from FolderNotificationChannel resource.
Name | Description |
folderNotificationChannelName |
string
A fully-qualified path representing folder_notification_channel resource. |
Type | Description |
string | number | {string} A string representing the notification_channel. |
matchNotificationChannelFromOrganizationNotificationChannelName(organizationNotificationChannelName)
matchNotificationChannelFromOrganizationNotificationChannelName(organizationNotificationChannelName: string): string | number;
Parse the notification_channel from OrganizationNotificationChannel resource.
Name | Description |
organizationNotificationChannelName |
string
A fully-qualified path representing organization_notification_channel resource. |
Type | Description |
string | number | {string} A string representing the notification_channel. |
matchNotificationChannelFromProjectNotificationChannelName(projectNotificationChannelName)
matchNotificationChannelFromProjectNotificationChannelName(projectNotificationChannelName: string): string | number;
Parse the notification_channel from ProjectNotificationChannel resource.
Name | Description |
projectNotificationChannelName |
string
A fully-qualified path representing project_notification_channel resource. |
Type | Description |
string | number | {string} A string representing the notification_channel. |
matchOrganizationFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName)
matchOrganizationFromOrganizationAlertPolicyConditionName(organizationAlertPolicyConditionName: string): string | number;
Parse the organization from OrganizationAlertPolicyCondition resource.
Name | Description |
organizationAlertPolicyConditionName |
string
A fully-qualified path representing organization_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationAlertPolicyName(organizationAlertPolicyName)
matchOrganizationFromOrganizationAlertPolicyName(organizationAlertPolicyName: string): string | number;
Parse the organization from OrganizationAlertPolicy resource.
Name | Description |
organizationAlertPolicyName |
string
A fully-qualified path representing organization_alert_policy resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationChannelDescriptorName(organizationChannelDescriptorName)
matchOrganizationFromOrganizationChannelDescriptorName(organizationChannelDescriptorName: string): string | number;
Parse the organization from OrganizationChannelDescriptor resource.
Name | Description |
organizationChannelDescriptorName |
string
A fully-qualified path representing organization_channel_descriptor resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationGroupName(organizationGroupName)
matchOrganizationFromOrganizationGroupName(organizationGroupName: string): string | number;
Parse the organization from OrganizationGroup resource.
Name | Description |
organizationGroupName |
string
A fully-qualified path representing organization_group resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationNotificationChannelName(organizationNotificationChannelName)
matchOrganizationFromOrganizationNotificationChannelName(organizationNotificationChannelName: string): string | number;
Parse the organization from OrganizationNotificationChannel resource.
Name | Description |
organizationNotificationChannelName |
string
A fully-qualified path representing organization_notification_channel resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationServiceName(organizationServiceName)
matchOrganizationFromOrganizationServiceName(organizationServiceName: string): string | number;
Parse the organization from OrganizationService resource.
Name | Description |
organizationServiceName |
string
A fully-qualified path representing organization_service resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)
matchOrganizationFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName: string): string | number;
Parse the organization from OrganizationServiceServiceLevelObjective resource.
Name | Description |
organizationServiceServiceLevelObjectiveName |
string
A fully-qualified path representing organization_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchOrganizationFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName)
matchOrganizationFromOrganizationUptimeCheckConfigName(organizationUptimeCheckConfigName: string): string | number;
Parse the organization from OrganizationUptimeCheckConfig resource.
Name | Description |
organizationUptimeCheckConfigName |
string
A fully-qualified path representing organization_uptime_check_config resource. |
Type | Description |
string | number | {string} A string representing the organization. |
matchProjectFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName)
matchProjectFromProjectAlertPolicyConditionName(projectAlertPolicyConditionName: string): string | number;
Parse the project from ProjectAlertPolicyCondition resource.
Name | Description |
projectAlertPolicyConditionName |
string
A fully-qualified path representing project_alert_policy_condition resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectAlertPolicyName(projectAlertPolicyName)
matchProjectFromProjectAlertPolicyName(projectAlertPolicyName: string): string | number;
Parse the project from ProjectAlertPolicy resource.
Name | Description |
projectAlertPolicyName |
string
A fully-qualified path representing project_alert_policy resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectChannelDescriptorName(projectChannelDescriptorName)
matchProjectFromProjectChannelDescriptorName(projectChannelDescriptorName: string): string | number;
Parse the project from ProjectChannelDescriptor resource.
Name | Description |
projectChannelDescriptorName |
string
A fully-qualified path representing project_channel_descriptor resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectGroupName(projectGroupName)
matchProjectFromProjectGroupName(projectGroupName: string): string | number;
Parse the project from ProjectGroup resource.
Name | Description |
projectGroupName |
string
A fully-qualified path representing project_group resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectNotificationChannelName(projectNotificationChannelName)
matchProjectFromProjectNotificationChannelName(projectNotificationChannelName: string): string | number;
Parse the project from ProjectNotificationChannel resource.
Name | Description |
projectNotificationChannelName |
string
A fully-qualified path representing project_notification_channel resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectServiceName(projectServiceName)
matchProjectFromProjectServiceName(projectServiceName: string): string | number;
Parse the project from ProjectService resource.
Name | Description |
projectServiceName |
string
A fully-qualified path representing project_service resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)
matchProjectFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName: string): string | number;
Parse the project from ProjectServiceServiceLevelObjective resource.
Name | Description |
projectServiceServiceLevelObjectiveName |
string
A fully-qualified path representing project_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchProjectFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName)
matchProjectFromProjectUptimeCheckConfigName(projectUptimeCheckConfigName: string): string | number;
Parse the project from ProjectUptimeCheckConfig resource.
Name | Description |
projectUptimeCheckConfigName |
string
A fully-qualified path representing project_uptime_check_config resource. |
Type | Description |
string | number | {string} A string representing the project. |
matchServiceFromFolderServiceName(folderServiceName)
matchServiceFromFolderServiceName(folderServiceName: string): string | number;
Parse the service from FolderService resource.
Name | Description |
folderServiceName |
string
A fully-qualified path representing folder_service resource. |
Type | Description |
string | number | {string} A string representing the service. |
matchServiceFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)
matchServiceFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName: string): string | number;
Parse the service from FolderServiceServiceLevelObjective resource.
Name | Description |
folderServiceServiceLevelObjectiveName |
string
A fully-qualified path representing folder_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the service. |
matchServiceFromOrganizationServiceName(organizationServiceName)
matchServiceFromOrganizationServiceName(organizationServiceName: string): string | number;
Parse the service from OrganizationService resource.
Name | Description |
organizationServiceName |
string
A fully-qualified path representing organization_service resource. |
Type | Description |
string | number | {string} A string representing the service. |
matchServiceFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName)
matchServiceFromOrganizationServiceServiceLevelObjectiveName(organizationServiceServiceLevelObjectiveName: string): string | number;
Parse the service from OrganizationServiceServiceLevelObjective resource.
Name | Description |
organizationServiceServiceLevelObjectiveName |
string
A fully-qualified path representing organization_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the service. |
matchServiceFromProjectServiceName(projectServiceName)
matchServiceFromProjectServiceName(projectServiceName: string): string | number;
Parse the service from ProjectService resource.
Name | Description |
projectServiceName |
string
A fully-qualified path representing project_service resource. |
Type | Description |
string | number | {string} A string representing the service. |
matchServiceFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName)
matchServiceFromProjectServiceServiceLevelObjectiveName(projectServiceServiceLevelObjectiveName: string): string | number;
Parse the service from ProjectServiceServiceLevelObjective resource.
Name | Description |
projectServiceServiceLevelObjectiveName |
string
A fully-qualified path representing project_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the service. |
matchServiceLevelObjectiveFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName)
matchServiceLevelObjectiveFromFolderServiceServiceLevelObjectiveName(folderServiceServiceLevelObjectiveName: string): string | number;
Parse the service_level_objective from FolderServiceServiceLevelObjective resource.
Name | Description |
folderServiceServiceLevelObjectiveName |
string
A fully-qualified path representing folder_service_service_level_objective resource. |
Type | Description |
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.
Name | Description |
organizationServiceServiceLevelObjectiveName |
string
A fully-qualified path representing organization_service_service_level_objective resource. |
Type | Description |
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.
Name | Description |
projectServiceServiceLevelObjectiveName |
string
A fully-qualified path representing project_service_service_level_objective resource. |
Type | Description |
string | number | {string} A string representing the service_level_objective. |
matchUptimeCheckConfigFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName)
matchUptimeCheckConfigFromFolderUptimeCheckConfigName(folderUptimeCheckConfigName: string): string | number;
Parse the uptime_check_config from FolderUptimeCheckConfig resource.
Name | Description |
folderUptimeCheckConfigName |
string
A fully-qualified path representing folder_uptime_check_config resource. |
Type | Description |
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.
Name | Description |
organizationUptimeCheckConfigName |
string
A fully-qualified path representing organization_uptime_check_config resource. |
Type | Description |
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.
Name | Description |
projectUptimeCheckConfigName |
string
A fully-qualified path representing project_uptime_check_config resource. |
Type | Description |
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.
Name | Description |
organization |
string
|
alertPolicy |
string
|
condition |
string
|
Type | Description |
string | {string} Resource name string. |
organizationAlertPolicyPath(organization, alertPolicy)
organizationAlertPolicyPath(organization: string, alertPolicy: string): string;
Return a fully-qualified organizationAlertPolicy resource name string.
Name | Description |
organization |
string
|
alertPolicy |
string
|
Type | Description |
string | {string} Resource name string. |
organizationChannelDescriptorPath(organization, channelDescriptor)
organizationChannelDescriptorPath(organization: string, channelDescriptor: string): string;
Return a fully-qualified organizationChannelDescriptor resource name string.
Name | Description |
organization |
string
|
channelDescriptor |
string
|
Type | Description |
string | {string} Resource name string. |
organizationGroupPath(organization, group)
organizationGroupPath(organization: string, group: string): string;
Return a fully-qualified organizationGroup resource name string.
Name | Description |
organization |
string
|
group |
string
|
Type | Description |
string | {string} Resource name string. |
organizationNotificationChannelPath(organization, notificationChannel)
organizationNotificationChannelPath(organization: string, notificationChannel: string): string;
Return a fully-qualified organizationNotificationChannel resource name string.
Name | Description |
organization |
string
|
notificationChannel |
string
|
Type | Description |
string | {string} Resource name string. |
organizationServicePath(organization, service)
organizationServicePath(organization: string, service: string): string;
Return a fully-qualified organizationService resource name string.
Name | Description |
organization |
string
|
service |
string
|
Type | Description |
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.
Name | Description |
organization |
string
|
service |
string
|
serviceLevelObjective |
string
|
Type | Description |
string | {string} Resource name string. |
organizationUptimeCheckConfigPath(organization, uptimeCheckConfig)
organizationUptimeCheckConfigPath(organization: string, uptimeCheckConfig: string): string;
Return a fully-qualified organizationUptimeCheckConfig resource name string.
Name | Description |
organization |
string
|
uptimeCheckConfig |
string
|
Type | Description |
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.
Name | Description |
project |
string
|
alertPolicy |
string
|
condition |
string
|
Type | Description |
string | {string} Resource name string. |
projectAlertPolicyPath(project, alertPolicy)
projectAlertPolicyPath(project: string, alertPolicy: string): string;
Return a fully-qualified projectAlertPolicy resource name string.
Name | Description |
project |
string
|
alertPolicy |
string
|
Type | Description |
string | {string} Resource name string. |
projectChannelDescriptorPath(project, channelDescriptor)
projectChannelDescriptorPath(project: string, channelDescriptor: string): string;
Return a fully-qualified projectChannelDescriptor resource name string.
Name | Description |
project |
string
|
channelDescriptor |
string
|
Type | Description |
string | {string} Resource name string. |
projectGroupPath(project, group)
projectGroupPath(project: string, group: string): string;
Return a fully-qualified projectGroup resource name string.
Name | Description |
project |
string
|
group |
string
|
Type | Description |
string | {string} Resource name string. |
projectNotificationChannelPath(project, notificationChannel)
projectNotificationChannelPath(project: string, notificationChannel: string): string;
Return a fully-qualified projectNotificationChannel resource name string.
Name | Description |
project |
string
|
notificationChannel |
string
|
Type | Description |
string | {string} Resource name string. |
projectServicePath(project, service)
projectServicePath(project: string, service: string): string;
Return a fully-qualified projectService resource name string.
Name | Description |
project |
string
|
service |
string
|
Type | Description |
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.
Name | Description |
project |
string
|
service |
string
|
serviceLevelObjective |
string
|
Type | Description |
string | {string} Resource name string. |
projectUptimeCheckConfigPath(project, uptimeCheckConfig)
projectUptimeCheckConfigPath(project: string, uptimeCheckConfig: string): string;
Return a fully-qualified projectUptimeCheckConfig resource name string.
Name | Description |
project |
string
|
uptimeCheckConfig |
string
|
Type | Description |
string | {string} Resource name string. |
queryTimeSeries(request, options)
queryTimeSeries(request: protos.google.monitoring.v3.IQueryTimeSeriesRequest, options?: CallOptions): Promise<[protos.google.monitoring.v3.ITimeSeriesData[], protos.google.monitoring.v3.IQueryTimeSeriesRequest | null, protos.google.monitoring.v3.IQueryTimeSeriesResponse]>;
Name | Description |
request |
protos.google.monitoring.v3.IQueryTimeSeriesRequest
|
options |
CallOptions
|
Type | Description |
Promise<[protos.google.monitoring.v3.ITimeSeriesData[], protos.google.monitoring.v3.IQueryTimeSeriesRequest | null, protos.google.monitoring.v3.IQueryTimeSeriesResponse]> |
queryTimeSeries(request, options, callback)
queryTimeSeries(request: protos.google.monitoring.v3.IQueryTimeSeriesRequest, options: CallOptions, callback: PaginationCallback<protos.google.monitoring.v3.IQueryTimeSeriesRequest, protos.google.monitoring.v3.IQueryTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeriesData>): void;
Name | Description |
request |
protos.google.monitoring.v3.IQueryTimeSeriesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.monitoring.v3.IQueryTimeSeriesRequest, protos.google.monitoring.v3.IQueryTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeriesData>
|
Type | Description |
void |
queryTimeSeries(request, callback)
queryTimeSeries(request: protos.google.monitoring.v3.IQueryTimeSeriesRequest, callback: PaginationCallback<protos.google.monitoring.v3.IQueryTimeSeriesRequest, protos.google.monitoring.v3.IQueryTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeriesData>): void;
Name | Description |
request |
protos.google.monitoring.v3.IQueryTimeSeriesRequest
|
callback |
PaginationCallback<protos.google.monitoring.v3.IQueryTimeSeriesRequest, protos.google.monitoring.v3.IQueryTimeSeriesResponse | null | undefined, protos.google.monitoring.v3.ITimeSeriesData>
|
Type | Description |
void |
queryTimeSeriesAsync(request, options)
queryTimeSeriesAsync(request?: protos.google.monitoring.v3.IQueryTimeSeriesRequest, options?: CallOptions): AsyncIterable<protos.google.monitoring.v3.ITimeSeriesData>;
Equivalent to queryTimeSeries
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Name | Description |
request |
protos.google.monitoring.v3.IQueryTimeSeriesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Type | Description |
AsyncIterable<protos.google.monitoring.v3.ITimeSeriesData> | {Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [TimeSeriesData]. 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples. |
const iterable = client.queryTimeSeriesAsync(request); for await (const response of iterable) { // process response }
queryTimeSeriesStream(request, options)
queryTimeSeriesStream(request?: protos.google.monitoring.v3.IQueryTimeSeriesRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Name | Description |
request |
protos.google.monitoring.v3.IQueryTimeSeriesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Type | Description |
Transform | {Stream} An object stream which emits an object representing [TimeSeriesData] 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 |