Interface MonitorsClient
public interface MonitorsClient
An instance of this class provides access to all the operations defined in MonitorsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,
DatadogMonitorResourceInner> beginCreate
(String resourceGroupName, String monitorName) Create a monitor resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,
DatadogMonitorResourceInner> beginCreate
(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, com.azure.core.util.Context context) Create a monitor resource.beginDelete
(String resourceGroupName, String monitorName) Delete a monitor resource.beginDelete
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Delete a monitor resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,
DatadogMonitorResourceInner> beginUpdate
(String resourceGroupName, String monitorName) Update a monitor resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,
DatadogMonitorResourceInner> beginUpdate
(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, com.azure.core.util.Context context) Update a monitor resource.Create a monitor resource.create
(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, com.azure.core.util.Context context) Create a monitor resource.void
Delete a monitor resource.void
Delete a monitor resource.getByResourceGroup
(String resourceGroupName, String monitorName) Get the properties of a specific monitor resource.com.azure.core.http.rest.Response<DatadogMonitorResourceInner>
getByResourceGroupWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get the properties of a specific monitor resource.getDefaultKey
(String resourceGroupName, String monitorName) Get the default api key.com.azure.core.http.rest.Response<DatadogApiKeyInner>
getDefaultKeyWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get the default api key.com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner>
list()
List all monitors under the specified subscription.com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner>
list
(com.azure.core.util.Context context) List all monitors under the specified subscription.com.azure.core.http.rest.PagedIterable<DatadogApiKeyInner>
listApiKeys
(String resourceGroupName, String monitorName) List the api keys for a given monitor resource.com.azure.core.http.rest.PagedIterable<DatadogApiKeyInner>
listApiKeys
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the api keys for a given monitor resource.com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner>
listByResourceGroup
(String resourceGroupName) List all monitors under the specified resource group.com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List all monitors under the specified resource group.com.azure.core.http.rest.PagedIterable<DatadogHostInner>
List the hosts for a given monitor resource.com.azure.core.http.rest.PagedIterable<DatadogHostInner>
List the hosts for a given monitor resource.com.azure.core.http.rest.PagedIterable<LinkedResourceInner>
listLinkedResources
(String resourceGroupName, String monitorName) List all Azure resources associated to the same Datadog organization as the target resource.com.azure.core.http.rest.PagedIterable<LinkedResourceInner>
listLinkedResources
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List all Azure resources associated to the same Datadog organization as the target resource.com.azure.core.http.rest.PagedIterable<MonitoredResourceInner>
listMonitoredResources
(String resourceGroupName, String monitorName) List the resources currently being monitored by the Datadog monitor resource.com.azure.core.http.rest.PagedIterable<MonitoredResourceInner>
listMonitoredResources
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the resources currently being monitored by the Datadog monitor resource.refreshSetPasswordLink
(String resourceGroupName, String monitorName) Refresh the set password link and return a latest one.com.azure.core.http.rest.Response<DatadogSetPasswordLinkInner>
refreshSetPasswordLinkWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Refresh the set password link and return a latest one.void
setDefaultKey
(String resourceGroupName, String monitorName) Set the default api key.com.azure.core.http.rest.Response<Void>
setDefaultKeyWithResponse
(String resourceGroupName, String monitorName, DatadogApiKeyInner body, com.azure.core.util.Context context) Set the default api key.Update a monitor resource.update
(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, com.azure.core.util.Context context) Update a monitor resource.
-
Method Details
-
listApiKeys
com.azure.core.http.rest.PagedIterable<DatadogApiKeyInner> listApiKeys(String resourceGroupName, String monitorName) List the api keys for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listApiKeys
com.azure.core.http.rest.PagedIterable<DatadogApiKeyInner> listApiKeys(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the api keys for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDefaultKeyWithResponse
com.azure.core.http.rest.Response<DatadogApiKeyInner> getDefaultKeyWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get the default api key.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- the default api key along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDefaultKey
Get the default api key.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the default api key.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
setDefaultKeyWithResponse
com.azure.core.http.rest.Response<Void> setDefaultKeyWithResponse(String resourceGroupName, String monitorName, DatadogApiKeyInner body, com.azure.core.util.Context context) Set the default api key.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.body
- The body parameter.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
setDefaultKey
Set the default api key.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listHosts
com.azure.core.http.rest.PagedIterable<DatadogHostInner> listHosts(String resourceGroupName, String monitorName) List the hosts for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listHosts
com.azure.core.http.rest.PagedIterable<DatadogHostInner> listHosts(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the hosts for a given monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listLinkedResources
com.azure.core.http.rest.PagedIterable<LinkedResourceInner> listLinkedResources(String resourceGroupName, String monitorName) List all Azure resources associated to the same Datadog organization as the target resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listLinkedResources
com.azure.core.http.rest.PagedIterable<LinkedResourceInner> listLinkedResources(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List all Azure resources associated to the same Datadog organization as the target resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName) List the resources currently being monitored by the Datadog monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the resources currently being monitored by the Datadog monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner> list()List all monitors under the specified subscription.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner> list(com.azure.core.util.Context context) List all monitors under the specified subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner> listByResourceGroup(String resourceGroupName) List all monitors under the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DatadogMonitorResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List all monitors under the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- response of a list operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<DatadogMonitorResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get the properties of a specific monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- the properties of a specific monitor resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get the properties of a specific monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the properties of a specific monitor resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName) Create a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, com.azure.core.util.Context context) Create a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.body
- The body parameter.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
Create a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the response.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
DatadogMonitorResourceInner create(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, com.azure.core.util.Context context) Create a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.body
- The body parameter.context
- The context to associate with this operation.- Returns:
- the response.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginUpdate(String resourceGroupName, String monitorName) Update a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginUpdate(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, com.azure.core.util.Context context) Update a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.body
- The parameters for a PATCH request to a monitor resource.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
Update a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the response.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatadogMonitorResourceInner update(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, com.azure.core.util.Context context) Update a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.body
- The parameters for a PATCH request to a monitor resource.context
- The context to associate with this operation.- Returns:
- the response.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName) Delete a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Delete a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
refreshSetPasswordLinkWithResponse
com.azure.core.http.rest.Response<DatadogSetPasswordLinkInner> refreshSetPasswordLinkWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Refresh the set password link and return a latest one.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- the response body along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
refreshSetPasswordLink
Refresh the set password link and return a latest one.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the response.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-