NAME

WebService::DataDog::Search - Interface to Search functions in DataDog's API.

VERSION

Version 1.0.3

SYNOPSIS

This module allows you interact with the Search endpoint of the DataDog API.

Per DataDog: "This end point allows you to search for entities in Datadog. The currently searchable entities are: hosts, metrics"

METHODS

retrieve()

Return a list of search results for the specified term.

my $search = $datadog->build('Search');
my $search_results = $search->retrieve(
	term  => $search_term,
	facet => [ 'hosts', 'metrics' ] #optional
);

Parameters:

  • term

    Search term you want to retrieve results for.

  • facet

    Limit search results to matches of the specified type