MonitorsClient Interface

public interface MonitorsClient

An instance of this class provides access to all the operations defined in MonitorsClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName)

Create a monitor resource.

abstract SyncPoller<PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, Context context)

Create a monitor resource.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName)

Delete a monitor resource.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, Context context)

Delete a monitor resource.

abstract SyncPoller<PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginUpdate(String resourceGroupName, String monitorName)

Update a monitor resource.

abstract SyncPoller<PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginUpdate(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, Context context)

Update a monitor resource.

abstract DatadogMonitorResourceInner create(String resourceGroupName, String monitorName)

Create a monitor resource.

abstract DatadogMonitorResourceInner create(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, Context context)

Create a monitor resource.

abstract void delete(String resourceGroupName, String monitorName)

Delete a monitor resource.

abstract void delete(String resourceGroupName, String monitorName, Context context)

Delete a monitor resource.

abstract DatadogMonitorResourceInner getByResourceGroup(String resourceGroupName, String monitorName)

Get the properties of a specific monitor resource.

abstract Response<DatadogMonitorResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String monitorName, Context context)

Get the properties of a specific monitor resource.

abstract DatadogApiKeyInner getDefaultKey(String resourceGroupName, String monitorName)

Get the default api key.

abstract Response<DatadogApiKeyInner> getDefaultKeyWithResponse(String resourceGroupName, String monitorName, Context context)

Get the default api key.

abstract PagedIterable<DatadogMonitorResourceInner> list()

List all monitors under the specified subscription.

abstract PagedIterable<DatadogMonitorResourceInner> list(Context context)

List all monitors under the specified subscription.

abstract PagedIterable<DatadogApiKeyInner> listApiKeys(String resourceGroupName, String monitorName)

List the api keys for a given monitor resource.

abstract PagedIterable<DatadogApiKeyInner> listApiKeys(String resourceGroupName, String monitorName, Context context)

List the api keys for a given monitor resource.

abstract PagedIterable<DatadogMonitorResourceInner> listByResourceGroup(String resourceGroupName)

List all monitors under the specified resource group.

abstract PagedIterable<DatadogMonitorResourceInner> listByResourceGroup(String resourceGroupName, Context context)

List all monitors under the specified resource group.

abstract PagedIterable<DatadogHostInner> listHosts(String resourceGroupName, String monitorName)

List the hosts for a given monitor resource.

abstract PagedIterable<DatadogHostInner> listHosts(String resourceGroupName, String monitorName, Context context)

List the hosts for a given monitor resource.

abstract PagedIterable<LinkedResourceInner> listLinkedResources(String resourceGroupName, String monitorName)

List all Azure resources associated to the same Datadog organization as the target resource.

abstract PagedIterable<LinkedResourceInner> listLinkedResources(String resourceGroupName, String monitorName, Context context)

List all Azure resources associated to the same Datadog organization as the target resource.

abstract PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName)

List the resources currently being monitored by the Datadog monitor resource.

abstract PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName, Context context)

List the resources currently being monitored by the Datadog monitor resource.

abstract DatadogSetPasswordLinkInner refreshSetPasswordLink(String resourceGroupName, String monitorName)

Refresh the set password link and return a latest one.

abstract Response<DatadogSetPasswordLinkInner> refreshSetPasswordLinkWithResponse(String resourceGroupName, String monitorName, Context context)

Refresh the set password link and return a latest one.

abstract void setDefaultKey(String resourceGroupName, String monitorName)

Set the default api key.

abstract Response<Void> setDefaultKeyWithResponse(String resourceGroupName, String monitorName, DatadogApiKeyInner body, Context context)

Set the default api key.

abstract DatadogMonitorResourceInner update(String resourceGroupName, String monitorName)

Update a monitor resource.

abstract DatadogMonitorResourceInner update(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, Context context)

Update a monitor resource.

Method Details

beginCreate

public abstract SyncPoller<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<T,U> for polling of long-running operation.

beginCreate

public abstract SyncPoller<PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, 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<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<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<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, 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<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller<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<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller<PollResult<DatadogMonitorResourceInner>,DatadogMonitorResourceInner> beginUpdate(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, 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 body parameter.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

create

public abstract DatadogMonitorResourceInner create(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 response.

create

public abstract DatadogMonitorResourceInner create(String resourceGroupName, String monitorName, DatadogMonitorResourceInner body, 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.

delete

public abstract void delete(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.

delete

public abstract void delete(String resourceGroupName, String monitorName, 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.

getByResourceGroup

public abstract DatadogMonitorResourceInner getByResourceGroup(String resourceGroupName, String monitorName)

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.

getByResourceGroupWithResponse

public abstract Response<DatadogMonitorResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String monitorName, 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<T>.

getDefaultKey

public abstract DatadogApiKeyInner getDefaultKey(String resourceGroupName, String monitorName)

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.

getDefaultKeyWithResponse

public abstract Response<DatadogApiKeyInner> getDefaultKeyWithResponse(String resourceGroupName, String monitorName, 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<T>.

list

public abstract PagedIterable<DatadogMonitorResourceInner> list()

List all monitors under the specified subscription.

Returns:

response of a list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<DatadogMonitorResourceInner> list(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<T>.

listApiKeys

public abstract 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<T>.

listApiKeys

public abstract PagedIterable<DatadogApiKeyInner> listApiKeys(String resourceGroupName, String monitorName, 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<T>.

listByResourceGroup

public abstract 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<T>.

listByResourceGroup

public abstract PagedIterable<DatadogMonitorResourceInner> listByResourceGroup(String resourceGroupName, 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<T>.

listHosts

public abstract 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<T>.

listHosts

public abstract PagedIterable<DatadogHostInner> listHosts(String resourceGroupName, String monitorName, 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<T>.

listLinkedResources

public abstract 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<T>.

listLinkedResources

public abstract PagedIterable<LinkedResourceInner> listLinkedResources(String resourceGroupName, String monitorName, 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<T>.

listMonitoredResources

public abstract 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<T>.

listMonitoredResources

public abstract PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName, 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<T>.

refreshSetPasswordLink

public abstract DatadogSetPasswordLinkInner refreshSetPasswordLink(String resourceGroupName, String monitorName)

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.

refreshSetPasswordLinkWithResponse

public abstract Response<DatadogSetPasswordLinkInner> refreshSetPasswordLinkWithResponse(String resourceGroupName, String monitorName, 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<T>.

setDefaultKey

public abstract void setDefaultKey(String resourceGroupName, String monitorName)

Set the default api key.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
monitorName - Monitor resource name.

setDefaultKeyWithResponse

public abstract Response<Void> setDefaultKeyWithResponse(String resourceGroupName, String monitorName, DatadogApiKeyInner body, 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:

update

public abstract DatadogMonitorResourceInner update(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 response.

update

public abstract DatadogMonitorResourceInner update(String resourceGroupName, String monitorName, DatadogMonitorResourceUpdateParameters body, 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 body parameter.
context - The context to associate with this operation.

Returns:

the response.

Applies to