Skip to content

Latest commit

 

History

History
192 lines (149 loc) · 3.65 KB

Send-AppInsightsEvent.md

File metadata and controls

192 lines (149 loc) · 3.65 KB
external help file Module Name online version schema
AppInsights.dll-Help.xml
AppInsights
2.0.0

Send-AppInsightsEvent

SYNOPSIS

PowerShell command used to track custom events in application insights.

SYNTAX

Send-AppInsightsEvent [-Name] <String> [[-Timestamp] <DateTimeOffset>] [[-Metrics] <Hashtable>]
 [[-InstrumentationKey] <Guid>] [[-Properties] <Hashtable>] [[-RoleName] <String>] [[-RoleInstance] <String>]
 [[-CaptureLevel] <Int32>] [-CaptureCommand] [-DeveloperMode] [<CommonParameters>]

DESCRIPTION

PowerShell command used to track custom events in application insights.

EXAMPLES

Example 1

Send-AppInsightsEvent -EventName "Apple Orderd" -Properties @{ "Fruit" = "Apple";  "Type" = "Granny Smith" } -Metrics @{ "Weight" = 12 }

PARAMETERS

-CaptureCommand

Disables the capturing for the PowerShell command context. For instance, if sensitive data would be captured.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-CaptureLevel

Defines which level in the call stack is taken into account for the command context.

Type: Int32
Parameter Sets: (All)
Aliases:

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

-InstrumentationKey

The Application Insights Instrumentation Key.

Type: Guid
Parameter Sets: (All)
Aliases:

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

-Metrics

Optional dictionary with custom metrics.

Type: Hashtable
Parameter Sets: (All)
Aliases:

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

-Name

The Event that is transmitted.

Type: String
Parameter Sets: (All)
Aliases: EventName

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

-Properties

Optional dictionary with custom properties.

Type: Hashtable
Parameter Sets: (All)
Aliases:

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

-RoleInstance

Defines whether the process was successfully processed.

Type: String
Parameter Sets: (All)
Aliases:

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

-RoleName

Defines whether the process was successfully processed.

Type: String
Parameter Sets: (All)
Aliases:

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

-Timestamp

The datetime when telemetry was recorded. Default is UTC.Now.

Type: DateTimeOffset
Parameter Sets: (All)
Aliases: StartTime

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

-DeveloperMode

Enables the application insights developer mode.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
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

NOTES

RELATED LINKS