< Back
New-GcLogMonitoredResource
Post
NAME New-GcLogMonitoredResource
SYNOPSIS
Creates new monitored resources.
SYNTAX
New-GcLogMonitoredResource -Labels <Hashtable> [<CommonParameters>]
DESCRIPTION
Creates new monitored resources. These resources are used in the Logging cmdlets such as New-GcLogEntry
PARAMETERS
-Labels <Hashtable>
The label that applies to resource type. For a complete list, see
https://cloud.google.com/logging/docs/a ... ource-list.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> New-GcLogMonitoredResource -ResourceType "gce_instance" `
-Labels @{"project_id" = "my-project"; "instance_id" = "my-instance"}.
This command creates a new monitored resource of type "gce_instance" with specified labels.
RELATED LINKS
[Monitored Resources and Labels] (https://cloud.google.com/logging/docs/a ... ource-list)
SYNOPSIS
Creates new monitored resources.
SYNTAX
New-GcLogMonitoredResource -Labels <Hashtable> [<CommonParameters>]
DESCRIPTION
Creates new monitored resources. These resources are used in the Logging cmdlets such as New-GcLogEntry
PARAMETERS
-Labels <Hashtable>
The label that applies to resource type. For a complete list, see
https://cloud.google.com/logging/docs/a ... ource-list.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> New-GcLogMonitoredResource -ResourceType "gce_instance" `
-Labels @{"project_id" = "my-project"; "instance_id" = "my-instance"}.
This command creates a new monitored resource of type "gce_instance" with specified labels.
RELATED LINKS
[Monitored Resources and Labels] (https://cloud.google.com/logging/docs/a ... ource-list)