< Back
New-DDSearch
Post
NAME New-DDSearch
SYNOPSIS
Search for entities from the last 24 hours in Datadog.
SYNTAX
New-DDSearch [-Query] <String> [[-Facet] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Query <String>
The query string.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Facet <String>
Limits results to an object type, chosen from: hosts, metrics.
Required? false
Position? 2
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:\\># Search for metric or host object that match 'windows'
New-DDSearch -Query 'windows'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\># Search for hosts that match 'db01'
New-DDSearch -Query 'db01' -Facet hosts
-------------------------- EXAMPLE 3 --------------------------
PS C:\\># Search for metrics that match 'replication'
New-DDSearch -Query 'replication' -Facet metrics
RELATED LINKS
http://docs.datadoghq.com/api/?lang=console#search
SYNOPSIS
Search for entities from the last 24 hours in Datadog.
SYNTAX
New-DDSearch [-Query] <String> [[-Facet] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Query <String>
The query string.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Facet <String>
Limits results to an object type, chosen from: hosts, metrics.
Required? false
Position? 2
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:\\># Search for metric or host object that match 'windows'
New-DDSearch -Query 'windows'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\># Search for hosts that match 'db01'
New-DDSearch -Query 'db01' -Facet hosts
-------------------------- EXAMPLE 3 --------------------------
PS C:\\># Search for metrics that match 'replication'
New-DDSearch -Query 'replication' -Facet metrics
RELATED LINKS
http://docs.datadoghq.com/api/?lang=console#search