Skip to content
Snippets Groups Projects
Commit e755369f authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Rename Write-MetricHeader to New-MetricHeader

parent 1fc9ce2c
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ $PfxDuration = "${Pfx}_collector_duration_ms"
function Write-MetricHeader {
function New-MetricHeader {
param (
# the metric name (prefix will be added automatically)
[Parameter(Mandatory=$True)]
......@@ -98,7 +98,7 @@ function Write-Gauge {
)
$MetricName = "${Pfx}_${Name}"
if ($Header) {
Write-MetricHeader -Name $Name -Description $Description -Type "gauge"
New-MetricHeader -Name $Name -Description $Description -Type "gauge"
}
return "$MetricName{$Properties} $Value"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment