Error statistics

Get-EdgeDiagnosticsErrorStatistics

Synopsis

Get error statistics.

Syntax

Get-EdgeDiagnosticsErrorStatistics -CPCode <Int32> [-ErrorType <String>] [-Delivery <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-EdgeDiagnosticsErrorStatistics -URL <String> [-ErrorType <String>] [-Delivery <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Gets the HTTP status code distribution statistics from delivering a URL or CP code based on the nine-second traffic sample from the last two minutes. You can filter the results by -Delivery and -ErrorType.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑CPCode
Conditionally required

A CP code you want to get the error statistics for. You need to provide either this value or a -URL.

‑Delivery

The type of network you want to get traffic data for, either STANDARD or ENHANCEDTLS. Without this filter, Edge Diagnostics checks on its own the type of delivery used by the requested CP code or URL and returns data for it.

If it uses both types, then Edge Diagnostics returns data for the type that got all data collected faster. If you choose the delivery type not used by your resource, then the results are empty.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑ErrorType

The type of traffic direction you want to get the data for, either EDGE or ORIGINERRORS. The EDGE value returns data for the edge server response to a client and ORIGINERRORS for the edge server forward request to an origin server. Without this filter, Edge Diagnostics returns data for both.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑URL
Conditionally required

A fully qualified URL you want to get the error statistics for. You need to provide either this value or a -CPCode.

Related Links