Class MonitorsApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to deleteMonitor.static classManage optional parameters to getMonitor.static classManage optional parameters to listMonitors.static classManage optional parameters to searchMonitorGroups.static classManage optional parameters to searchMonitors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckCanDeleteMonitor(List<Long> monitorIds) Check if a monitor can be deleted.checkCanDeleteMonitorAsync(List<Long> monitorIds) Check if a monitor can be deleted.checkCanDeleteMonitorWithHttpInfo(List<Long> monitorIds) Check if the given monitors can be deleted.checkCanDeleteMonitorWithHttpInfoAsync(List<Long> monitorIds) Check if a monitor can be deleted.createMonitor(Monitor body) Create a monitor.createMonitorAsync(Monitor body) Create a monitor.Create a monitor using the specified options.Create a monitor.deleteMonitor(Long monitorId) Delete a monitor.deleteMonitor(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) Delete a monitor.deleteMonitorAsync(Long monitorId) Delete a monitor.deleteMonitorAsync(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) Delete a monitor.deleteMonitorWithHttpInfo(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) Delete the specified monitordeleteMonitorWithHttpInfoAsync(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) Delete a monitor.Get the API client.getMonitor(Long monitorId) Get a monitor's details.getMonitor(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) Get a monitor's details.getMonitorAsync(Long monitorId) Get a monitor's details.getMonitorAsync(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) Get a monitor's details.getMonitorWithHttpInfo(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) Get details about the specified monitor from your organization.getMonitorWithHttpInfoAsync(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) Get a monitor's details.Get all monitors.Get all monitors.Get all monitors.Get all monitors.Get all monitors from your organization.Get all monitors.Get all monitors.Get all monitors.Monitors group search.Monitors group search.Monitors group search.Monitors group search.Search and filter your monitor groups details.Monitors group search.Monitors search.Monitors search.Monitors search.Monitors search.Search and filter your monitors details.Monitors search.voidsetApiClient(ApiClient apiClient) Set the API client.updateMonitor(Long monitorId, MonitorUpdateRequest body) Edit a monitor.updateMonitorAsync(Long monitorId, MonitorUpdateRequest body) Edit a monitor.updateMonitorWithHttpInfo(Long monitorId, MonitorUpdateRequest body) Edit the specified monitor.updateMonitorWithHttpInfoAsync(Long monitorId, MonitorUpdateRequest body) Edit a monitor.validateExistingMonitor(Long monitorId, Monitor body) Validate an existing monitor.validateExistingMonitorAsync(Long monitorId, Monitor body) Validate an existing monitor.validateExistingMonitorWithHttpInfo(Long monitorId, Monitor body) Validate the monitor provided in the request.validateExistingMonitorWithHttpInfoAsync(Long monitorId, Monitor body) Validate an existing monitor.validateMonitor(Monitor body) Validate a monitor.validateMonitorAsync(Monitor body) Validate a monitor.Validate the monitor provided in the request.Validate a monitor.
-
Constructor Details
-
MonitorsApi
public MonitorsApi() -
MonitorsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
checkCanDeleteMonitor
public CheckCanDeleteMonitorResponse checkCanDeleteMonitor(List<Long> monitorIds) throws ApiException Check if a monitor can be deleted.See
checkCanDeleteMonitorWithHttpInfo(java.util.List<java.lang.Long>).- Parameters:
monitorIds- The IDs of the monitor to check. (required)- Returns:
- CheckCanDeleteMonitorResponse
- Throws:
ApiException- if fails to make API call
-
checkCanDeleteMonitorAsync
public CompletableFuture<CheckCanDeleteMonitorResponse> checkCanDeleteMonitorAsync(List<Long> monitorIds) Check if a monitor can be deleted.See
checkCanDeleteMonitorWithHttpInfoAsync(java.util.List<java.lang.Long>).- Parameters:
monitorIds- The IDs of the monitor to check. (required)- Returns:
- CompletableFuture<CheckCanDeleteMonitorResponse>
-
checkCanDeleteMonitorWithHttpInfo
public ApiResponse<CheckCanDeleteMonitorResponse> checkCanDeleteMonitorWithHttpInfo(List<Long> monitorIds) throws ApiException Check if the given monitors can be deleted.- Parameters:
monitorIds- The IDs of the monitor to check. (required)- Returns:
- ApiResponse<CheckCanDeleteMonitorResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 409 Deletion conflict error - 429 Too many requests -
-
checkCanDeleteMonitorWithHttpInfoAsync
public CompletableFuture<ApiResponse<CheckCanDeleteMonitorResponse>> checkCanDeleteMonitorWithHttpInfoAsync(List<Long> monitorIds) Check if a monitor can be deleted.See
checkCanDeleteMonitorWithHttpInfo(java.util.List<java.lang.Long>).- Parameters:
monitorIds- The IDs of the monitor to check. (required)- Returns:
- CompletableFuture<ApiResponse<CheckCanDeleteMonitorResponse>>
-
createMonitor
Create a monitor.See
createMonitorWithHttpInfo(com.datadog.api.client.v1.model.Monitor).- Parameters:
body- Create a monitor request body. (required)- Returns:
- Monitor
- Throws:
ApiException- if fails to make API call
-
createMonitorAsync
Create a monitor.See
createMonitorWithHttpInfoAsync(com.datadog.api.client.v1.model.Monitor).- Parameters:
body- Create a monitor request body. (required)- Returns:
- CompletableFuture<Monitor>
-
createMonitorWithHttpInfo
Create a monitor using the specified options.Monitor Types
The type of monitor chosen from:
- anomaly:
query alert - APM:
query alertortrace-analytics alert - composite:
composite - custom:
service check - forecast:
query alert - host:
service check - integration:
query alertorservice check - live process:
process alert - logs:
log alert - metric:
query alert - network:
service check - outlier:
query alert - process:
service check - rum:
rum alert - SLO:
slo alert - watchdog:
event-v2 alert - event-v2:
event-v2 alert - audit:
audit alert - error-tracking:
error-tracking alert - database-monitoring:
database-monitoring alert - network-performance:
network-performance alert - cloud cost:
cost alert - network-path:
network-path alert
Notes: - Synthetic monitors are created through the Synthetics API. See the Synthetics API documentation for more information. - Log monitors require an unscoped App Key.
Query Types
Metric Alert Query
Example:
time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #time_aggr: avg, sum, max, min, change, or pct_changetime_window:last_#m(with#between 1 and 10080 depending on the monitor type) orlast_#h(with#between 1 and 168 depending on the monitor type) orlast_1d, orlast_1wspace_aggr: avg, sum, min, or maxtags: one or more tags (comma-separated), or *key: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert)operator: <, <=, >, >=, ==, or !=#: an integer or decimal number used to set the threshold
To use a dynamic threshold on a metric monitor with a formula query, replace
#with thethresholdkeyword (for example,... > threshold) and provide the threshold as a query viacritical_queryonoptions.thresholds. This feature is in preview.If you are using the
_change_or_pct_change_time aggregator, instead usechange_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #with:change_aggrchange, pct_changetime_aggravg, sum, max, min Learn moretime_windowlast_#m (between 1 and 2880 depending on the monitor type), last_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2)timeshift#m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago
Use this to create an outlier monitor using the following query:
avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0Service Check Query
Example:
"check".over(tags).last(count).by(group).count_by_status()checkname of the check, for exampledatadog.agent.uptagsone or more quoted tags (comma-separated), or "*". for example:.over("env:prod", "role:db");overcannot be blank.countmust be at greater than or equal to your max threshold (defined in theoptions). It is limited to 100. For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses,countshould be at least 3.groupmust be specified for check monitors. Per-check grouping is already explicitly known for some service checks. For example, Postgres integration monitors are tagged bydb,host, andport, and Network monitors byhost,instance, andurl. See Service Checks documentation for more information.
Event Alert Query
Note: The Event Alert Query has been replaced by the Event V2 Alert Query. For more information, see the Event Migration guide.
Event V2 Alert Query
Example:
events(query).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.rollup_methodThe stats roll-up method - supportscount,avgandcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
Process Alert Query
Example:
processes(search).over(tags).rollup('count').last(timeframe) operator #searchfree text search string for querying processes. Matching processes match results on the Live Processes page.tagsone or more tags (comma-separated)timeframethe timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and doperator<, <=, >, >=, ==, or !=#an integer or decimal number used to set the threshold
Logs Alert Query
Example:
logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.index_nameFor multi-index organizations, the log index in which the request is performed.rollup_methodThe stats roll-up method - supportscount,avgandcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
Composite Query
Example:
12345 && 67890, where12345and67890are the IDs of non-composite monitorsname[required, default = dynamic, based on query]: The name of the alert.message[required, default = dynamic, based on query]: A message to include with notifications for this monitor. Email notifications can be sent to specific users by using the same '@username' notation as events.tags[optional, default = empty list]: A list of tags to associate with your monitor. When getting all monitor details via the API, use themonitor_tagsargument to filter results by these tags. It is only available via the API and isn't visible or editable in the Datadog UI.
SLO Alert Query
Example:
error_budget("slo_id").over("time_window") operator #slo_id: The alphanumeric SLO ID of the SLO you are configuring the alert for.time_window: The time window of the SLO target you wish to alert on. Valid options:7d,30d,90d.operator:>=or>
Audit Alert Query
Example:
audits(query).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.rollup_methodThe stats roll-up method - supportscount,avgandcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
CI Pipelines Alert Query
Example:
ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.rollup_methodThe stats roll-up method - supportscount,avg, andcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
CI Tests Alert Query
Example:
ci-tests(query).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.rollup_methodThe stats roll-up method - supportscount,avg, andcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
Error Tracking Alert Query
"New issue" example:
error-tracking(query).source(issue_source).new().rollup(rollup_method[, measure]).by(group_by).last(time_window) operator #"High impact issue" example:error-tracking(query).source(issue_source).impact().rollup(rollup_method[, measure]).by(group_by).last(time_window) operator #queryThe search query - following the Log search syntax.issue_sourceThe issue source - supportsall,browser,mobileandbackendand defaults toallif omitted.rollup_methodThe stats roll-up method - supportscount,avg, andcardinalityand defaults tocountif omitted.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.group byComma-separated list of attributes to group by - should contain at leastissue.id.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
Database Monitoring Alert Query
Example:
database-monitoring(query).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.rollup_methodThe stats roll-up method - supportscount,avg, andcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
Network Performance Alert Query
Example:
network-performance(query).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.rollup_methodThe stats roll-up method - supportscount,avg, andcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
Cost Alert Query
Example:
formula(query).timeframe_type(time_window).function(parameter) operator #queryThe search query - following the Log search syntax.timeframe_typeThe timeframe type to evaluate the cost - forforecastsupportscurrent- forchange,anomaly,thresholdsupportslasttime_window- supports daily roll-up e.g.7dfunction- [optional, defaults tothresholdmonitor if omitted] supportschange,anomaly,forecastparameterSpecify the parameter of the type- for
change:- supports
relative,absolute - [optional] supports
#, where#is an integer or decimal number used to set the threshold
- supports
- for
anomaly:- supports
direction=both,direction=above,direction=below - [optional] supports
threshold=#, where#is an integer or decimal number used to set the threshold
- supports
- for
operator- for
thresholdsupports<,<=,>,>=,==, or!= - for
changesupports>,< - for
anomalysupports>= - for
forecastsupports>
- for
#an integer or decimal number used to set the threshold.
Network Path Alert Query
Example:
network-path(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #queryThe search query - following the Log search syntax.index_nameThe data type to monitor on - supportsnetpath-pathandnetpath-hop.rollup_methodThe stats roll-up method - supportscount,avg, andcardinality.measureForavgand cardinalityrollup_method- specify the measure or the facet name you want to use.time_window#m (between 1 and 2880), #h (between 1 and 48).operator<,<=,>,>=,==, or!=.#an integer or decimal number used to set the threshold.
- Parameters:
body- Create a monitor request body. (required)- Returns:
- ApiResponse<Monitor>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
- anomaly:
-
createMonitorWithHttpInfoAsync
Create a monitor.See
createMonitorWithHttpInfo(com.datadog.api.client.v1.model.Monitor).- Parameters:
body- Create a monitor request body. (required)- Returns:
- CompletableFuture<ApiResponse<Monitor>>
-
deleteMonitor
Delete a monitor.- Parameters:
monitorId- The ID of the monitor. (required)- Returns:
- DeletedMonitor
- Throws:
ApiException- if fails to make API call
-
deleteMonitorAsync
Delete a monitor.- Parameters:
monitorId- The ID of the monitor. (required)- Returns:
- CompletableFuture<DeletedMonitor>
-
deleteMonitor
public DeletedMonitor deleteMonitor(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) throws ApiException Delete a monitor.- Parameters:
monitorId- The ID of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- DeletedMonitor
- Throws:
ApiException- if fails to make API call
-
deleteMonitorAsync
public CompletableFuture<DeletedMonitor> deleteMonitorAsync(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) Delete a monitor.- Parameters:
monitorId- The ID of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<DeletedMonitor>
-
deleteMonitorWithHttpInfo
public ApiResponse<DeletedMonitor> deleteMonitorWithHttpInfo(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) throws ApiException Delete the specified monitor- Parameters:
monitorId- The ID of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<DeletedMonitor>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Authentication error - 403 Forbidden - 404 Item not found error - 429 Too many requests -
-
deleteMonitorWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeletedMonitor>> deleteMonitorWithHttpInfoAsync(Long monitorId, MonitorsApi.DeleteMonitorOptionalParameters parameters) Delete a monitor.- Parameters:
monitorId- The ID of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<DeletedMonitor>>
-
getMonitor
Get a monitor's details.- Parameters:
monitorId- The ID of the monitor (required)- Returns:
- Monitor
- Throws:
ApiException- if fails to make API call
-
getMonitorAsync
Get a monitor's details.- Parameters:
monitorId- The ID of the monitor (required)- Returns:
- CompletableFuture<Monitor>
-
getMonitor
public Monitor getMonitor(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) throws ApiException Get a monitor's details.- Parameters:
monitorId- The ID of the monitor (required)parameters- Optional parameters for the request.- Returns:
- Monitor
- Throws:
ApiException- if fails to make API call
-
getMonitorAsync
public CompletableFuture<Monitor> getMonitorAsync(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) Get a monitor's details.- Parameters:
monitorId- The ID of the monitor (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<Monitor>
-
getMonitorWithHttpInfo
public ApiResponse<Monitor> getMonitorWithHttpInfo(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) throws ApiException Get details about the specified monitor from your organization.- Parameters:
monitorId- The ID of the monitor (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<Monitor>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication error - 404 Monitor Not Found error - 429 Too many requests -
-
getMonitorWithHttpInfoAsync
public CompletableFuture<ApiResponse<Monitor>> getMonitorWithHttpInfoAsync(Long monitorId, MonitorsApi.GetMonitorOptionalParameters parameters) Get a monitor's details.- Parameters:
monitorId- The ID of the monitor (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Monitor>>
-
listMonitors
Get all monitors.See
listMonitorsWithHttpInfo(com.datadog.api.client.v1.api.MonitorsApi.ListMonitorsOptionalParameters).- Returns:
- List<Monitor>
- Throws:
ApiException- if fails to make API call
-
listMonitorsAsync
Get all monitors.- Returns:
- CompletableFuture<List<Monitor>>
-
listMonitors
public List<Monitor> listMonitors(MonitorsApi.ListMonitorsOptionalParameters parameters) throws ApiException Get all monitors.See
listMonitorsWithHttpInfo(com.datadog.api.client.v1.api.MonitorsApi.ListMonitorsOptionalParameters).- Parameters:
parameters- Optional parameters for the request.- Returns:
- List<Monitor>
- Throws:
ApiException- if fails to make API call
-
listMonitorsAsync
public CompletableFuture<List<Monitor>> listMonitorsAsync(MonitorsApi.ListMonitorsOptionalParameters parameters) Get all monitors.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<List<Monitor>>
-
listMonitorsWithPagination
Get all monitors.See
listMonitorsWithHttpInfo(com.datadog.api.client.v1.api.MonitorsApi.ListMonitorsOptionalParameters).- Returns:
- PaginationIterable<Monitor>
-
listMonitorsWithPagination
public PaginationIterable<Monitor> listMonitorsWithPagination(MonitorsApi.ListMonitorsOptionalParameters parameters) Get all monitors.See
listMonitorsWithHttpInfo(com.datadog.api.client.v1.api.MonitorsApi.ListMonitorsOptionalParameters).- Returns:
- List<Monitor>
-
listMonitorsWithHttpInfo
public ApiResponse<List<Monitor>> listMonitorsWithHttpInfo(MonitorsApi.ListMonitorsOptionalParameters parameters) throws ApiException Get all monitors from your organization.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<List<Monitor>>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
listMonitorsWithHttpInfoAsync
public CompletableFuture<ApiResponse<List<Monitor>>> listMonitorsWithHttpInfoAsync(MonitorsApi.ListMonitorsOptionalParameters parameters) Get all monitors.See
listMonitorsWithHttpInfo(com.datadog.api.client.v1.api.MonitorsApi.ListMonitorsOptionalParameters).- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<List<Monitor>>>
-
searchMonitorGroups
Monitors group search.- Returns:
- MonitorGroupSearchResponse
- Throws:
ApiException- if fails to make API call
-
searchMonitorGroupsAsync
Monitors group search.- Returns:
- CompletableFuture<MonitorGroupSearchResponse>
-
searchMonitorGroups
public MonitorGroupSearchResponse searchMonitorGroups(MonitorsApi.SearchMonitorGroupsOptionalParameters parameters) throws ApiException Monitors group search.- Parameters:
parameters- Optional parameters for the request.- Returns:
- MonitorGroupSearchResponse
- Throws:
ApiException- if fails to make API call
-
searchMonitorGroupsAsync
public CompletableFuture<MonitorGroupSearchResponse> searchMonitorGroupsAsync(MonitorsApi.SearchMonitorGroupsOptionalParameters parameters) Monitors group search.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<MonitorGroupSearchResponse>
-
searchMonitorGroupsWithHttpInfo
public ApiResponse<MonitorGroupSearchResponse> searchMonitorGroupsWithHttpInfo(MonitorsApi.SearchMonitorGroupsOptionalParameters parameters) throws ApiException Search and filter your monitor groups details.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<MonitorGroupSearchResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
searchMonitorGroupsWithHttpInfoAsync
public CompletableFuture<ApiResponse<MonitorGroupSearchResponse>> searchMonitorGroupsWithHttpInfoAsync(MonitorsApi.SearchMonitorGroupsOptionalParameters parameters) Monitors group search.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<MonitorGroupSearchResponse>>
-
searchMonitors
Monitors search.- Returns:
- MonitorSearchResponse
- Throws:
ApiException- if fails to make API call
-
searchMonitorsAsync
Monitors search.- Returns:
- CompletableFuture<MonitorSearchResponse>
-
searchMonitors
public MonitorSearchResponse searchMonitors(MonitorsApi.SearchMonitorsOptionalParameters parameters) throws ApiException Monitors search.- Parameters:
parameters- Optional parameters for the request.- Returns:
- MonitorSearchResponse
- Throws:
ApiException- if fails to make API call
-
searchMonitorsAsync
public CompletableFuture<MonitorSearchResponse> searchMonitorsAsync(MonitorsApi.SearchMonitorsOptionalParameters parameters) Monitors search.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<MonitorSearchResponse>
-
searchMonitorsWithHttpInfo
public ApiResponse<MonitorSearchResponse> searchMonitorsWithHttpInfo(MonitorsApi.SearchMonitorsOptionalParameters parameters) throws ApiException Search and filter your monitors details.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<MonitorSearchResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
searchMonitorsWithHttpInfoAsync
public CompletableFuture<ApiResponse<MonitorSearchResponse>> searchMonitorsWithHttpInfoAsync(MonitorsApi.SearchMonitorsOptionalParameters parameters) Monitors search.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<MonitorSearchResponse>>
-
updateMonitor
Edit a monitor.See
updateMonitorWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.MonitorUpdateRequest).- Parameters:
monitorId- The ID of the monitor. (required)body- Edit a monitor request body. (required)- Returns:
- Monitor
- Throws:
ApiException- if fails to make API call
-
updateMonitorAsync
Edit a monitor.See
updateMonitorWithHttpInfoAsync(java.lang.Long, com.datadog.api.client.v1.model.MonitorUpdateRequest).- Parameters:
monitorId- The ID of the monitor. (required)body- Edit a monitor request body. (required)- Returns:
- CompletableFuture<Monitor>
-
updateMonitorWithHttpInfo
public ApiResponse<Monitor> updateMonitorWithHttpInfo(Long monitorId, MonitorUpdateRequest body) throws ApiException Edit the specified monitor.- Parameters:
monitorId- The ID of the monitor. (required)body- Edit a monitor request body. (required)- Returns:
- ApiResponse<Monitor>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Authentication error - 403 Forbidden - 404 Monitor Not Found error - 429 Too many requests -
-
updateMonitorWithHttpInfoAsync
public CompletableFuture<ApiResponse<Monitor>> updateMonitorWithHttpInfoAsync(Long monitorId, MonitorUpdateRequest body) Edit a monitor.See
updateMonitorWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.MonitorUpdateRequest).- Parameters:
monitorId- The ID of the monitor. (required)body- Edit a monitor request body. (required)- Returns:
- CompletableFuture<ApiResponse<Monitor>>
-
validateExistingMonitor
Validate an existing monitor.See
validateExistingMonitorWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.Monitor).- Parameters:
monitorId- The ID of the monitor (required)body- Monitor request object (required)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
validateExistingMonitorAsync
Validate an existing monitor.See
validateExistingMonitorWithHttpInfoAsync(java.lang.Long, com.datadog.api.client.v1.model.Monitor).- Parameters:
monitorId- The ID of the monitor (required)body- Monitor request object (required)- Returns:
- CompletableFuture<Object>
-
validateExistingMonitorWithHttpInfo
public ApiResponse<Object> validateExistingMonitorWithHttpInfo(Long monitorId, Monitor body) throws ApiException Validate the monitor provided in the request.Note: Log monitors require an unscoped App Key and
logs_read_datapermission.- Parameters:
monitorId- The ID of the monitor (required)body- Monitor request object (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Invalid JSON - 403 Forbidden - 429 Too many requests -
-
validateExistingMonitorWithHttpInfoAsync
public CompletableFuture<ApiResponse<Object>> validateExistingMonitorWithHttpInfoAsync(Long monitorId, Monitor body) Validate an existing monitor.See
validateExistingMonitorWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.Monitor).- Parameters:
monitorId- The ID of the monitor (required)body- Monitor request object (required)- Returns:
- CompletableFuture<ApiResponse<Object>>
-
validateMonitor
Validate a monitor.See
validateMonitorWithHttpInfo(com.datadog.api.client.v1.model.Monitor).- Parameters:
body- Monitor request object (required)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
validateMonitorAsync
Validate a monitor.See
validateMonitorWithHttpInfoAsync(com.datadog.api.client.v1.model.Monitor).- Parameters:
body- Monitor request object (required)- Returns:
- CompletableFuture<Object>
-
validateMonitorWithHttpInfo
Validate the monitor provided in the request.Note: Log monitors require an unscoped App Key and
logs_read_datapermission.- Parameters:
body- Monitor request object (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Invalid JSON - 403 Forbidden - 429 Too many requests -
-
validateMonitorWithHttpInfoAsync
Validate a monitor.See
validateMonitorWithHttpInfo(com.datadog.api.client.v1.model.Monitor).- Parameters:
body- Monitor request object (required)- Returns:
- CompletableFuture<ApiResponse<Object>>
-