< Back
Remove-GcLogMetric
Post
NAME Remove-GcLogMetric
SYNOPSIS
Removes one or more log metrics from a project.
SYNTAX
Remove-GcLogMetric [-Project <string>] [-MetricName] <string[]> [<CommonParameters>]
DESCRIPTION
Removes one or more log metrics from a project based on the name of the metrics. If -Project is not specified, the
default project will be used.
PARAMETERS
-Project <string>
The project to check for log metrics in. If not set via PowerShell parameter processing, will default to the
Cloud SDK's DefaultProject property.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MetricName <string[]>
The names of the metrics to be removed.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Name <string[]>
The names of the metrics to be removed.
This is an alias of the MetricName parameter.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
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
System.String[]
The names of the metrics to be removed.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GcLogMetric -MetricName "my-metric"
This command removes "my-metric" from the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Remove-GcLogMetric -MetricName "my-metric", "my-metric2" -Project "my-project"
This command removes "my-metric" and "my-metric2" from project "my-project".
RELATED LINKS
[Log Metrics] (https://cloud.google.com/logging/docs/v ... ed_metrics)
SYNOPSIS
Removes one or more log metrics from a project.
SYNTAX
Remove-GcLogMetric [-Project <string>] [-MetricName] <string[]> [<CommonParameters>]
DESCRIPTION
Removes one or more log metrics from a project based on the name of the metrics. If -Project is not specified, the
default project will be used.
PARAMETERS
-Project <string>
The project to check for log metrics in. If not set via PowerShell parameter processing, will default to the
Cloud SDK's DefaultProject property.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MetricName <string[]>
The names of the metrics to be removed.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Name <string[]>
The names of the metrics to be removed.
This is an alias of the MetricName parameter.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
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
System.String[]
The names of the metrics to be removed.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GcLogMetric -MetricName "my-metric"
This command removes "my-metric" from the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Remove-GcLogMetric -MetricName "my-metric", "my-metric2" -Project "my-project"
This command removes "my-metric" and "my-metric2" from project "my-project".
RELATED LINKS
[Log Metrics] (https://cloud.google.com/logging/docs/v ... ed_metrics)