< Back

Suspend-DDMonitor

Sat Jan 18, 2020 8:14 pm

NAME Suspend-DDMonitor



SYNOPSIS

Mutes Datadog monitors. Either all of them with -All or a specific one with -MonitorID





SYNTAX

Suspend-DDMonitor [-MonitorId] <UInt32> [[-Scope] <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]



Suspend-DDMonitor [-All] [-WhatIf] [-Confirm] [<CommonParameters>]



Suspend-DDMonitor [-MonitorId] <UInt32> [[-Scope] <String[]>] [[-EndTimestamp] <Double>] [-WhatIf] [-Confirm]

[<CommonParameters>]



Suspend-DDMonitor [-MonitorId] <UInt32> [[-Scope] <String[]>] [[-EndDate] <DateTime>] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION





PARAMETERS

-All [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-MonitorId <UInt32>

Can be part of 3 parameter sets



Required? true

Position? 1

Default value 0

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Scope <String[]>

Can be part of 3 parameter sets!



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-EndTimestamp <Double>



Required? false

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-EndDate <DateTime>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Mute all monitors



Suspend-DDMonitor -All









-------------------------- EXAMPLE 2 --------------------------



PS C:\\># Mute a single monitor



Suspend-DDMonitor -MonitorID 123456









-------------------------- EXAMPLE 3 --------------------------



PS C:\\># Mute a single monitor and specify and end date in 2 days.



Suspend-DDMonitor -MonitorID 123456 -EndDate (Get-Date).AddDays(2)









-------------------------- EXAMPLE 4 --------------------------



PS C:\\># Mute a single monitor and specify and end timestamp, also mute only for scope role:frontend



Suspend-DDMonitor -MonitorID 123456 -EndTimestamp -Scope 'role:frontend'











RELATED LINKS

http://docs.datadoghq.com/api/?lang=con ... nitor-mute

http://docs.datadoghq.com/api/?lang=con ... r-mute-all

http://docs.datadoghq.com/api/?lang=con ... nitor-mute

http://docs.datadoghq.com/api/?lang=con ... r-mute-all