Command
New-ConfigurationDotNetBenchmarkMetric
Creates a benchmark metric extraction rule for DotNet publish gates.
Syntax
New-ConfigurationDotNetBenchmarkMetric [-Aggregation <First|Last|Min|Max|Average>] [-Group <Int32>] -Name <String> [-Path <String>] [-Pattern <String>] [-Required <Boolean>] [-Source <JsonPath|Regex>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create JSON-path metric rule
New-ConfigurationDotNetBenchmarkMetric -Name 'dashboard.storage.ms' -Source JsonPath -Path 'results.storageMs'Parameters
- -Aggregation DotNetPublishBenchmarkMetricAggregation
- Aggregation method.
- Possible values:
First,Last,Min,Max,Average - -Group Int32
- Regex capture group index.
- -Name String
- Metric identifier.
- -Path String
- JSON path when using JsonPath source.
- -Pattern String
- Regex pattern when using Regex source.
- -Required Boolean
- Marks metric as required.
- -Source DotNetPublishBenchmarkMetricSource
- Metric source type.
- Possible values:
JsonPath,Regex
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.