Skip to content

New-PodeLogDatadogOverride

SYNOPSIS

Creates a new set of override options for the Datadog Log Method.

SYNTAX

New-PodeLogDatadogOverride [[-Id] <String>] [[-Service] <String>] [[-Source] <String>] [[-Tags] <Hashtable>]
 [[-TagsAction] <String>] [-Ignore] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Creates a new set of override options for the Datadog Log Method.

EXAMPLES

EXAMPLE 1

$override = New-PodeLogDatadogOverride -Service 'my_service' -Source 'my_source' -Tags @{ env = 'prod' } -TagsAction 'Append'

EXAMPLE 2

$override = New-PodeLogDatadogOverride -Id 'DatadogMethod' -Ignore

PARAMETERS

-Id

An optional ID to assign to the Log Method to override. (Default: 'Datadog')

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Ignore

Whether to ignore the Datadog Log Method when writing log items.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Service

An optional service name to override the service of the Datadog Log Method.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Source

An optional source name to override the source of the Datadog Log Method.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Tags

An optional hashtable of tags to override the tags of the Datadog Log Method.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TagsAction

An optional action to determine how to handle the tags of the Datadog Log Method. (Default: 'Merge')

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: Merge
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Collections.Hashtable

NOTES