Monitors Interface

public interface Monitors

Resource collection API of Monitors.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new DatadogMonitorResource resource.

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

Delete a monitor resource.

abstract void deleteById(String id)

Delete a monitor resource.

abstract void deleteByIdWithResponse(String id, Context context)

Delete a monitor resource.

abstract void deleteByResourceGroup(String resourceGroupName, String monitorName)

Delete a monitor resource.

abstract DatadogMonitorResource getById(String id)

Get the properties of a specific monitor resource.

abstract Response<DatadogMonitorResource> getByIdWithResponse(String id, Context context)

Get the properties of a specific monitor resource.

abstract DatadogMonitorResource getByResourceGroup(String resourceGroupName, String monitorName)

Get the properties of a specific monitor resource.

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

Get the properties of a specific monitor resource.

abstract DatadogApiKey getDefaultKey(String resourceGroupName, String monitorName)

Get the default api key.

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

Get the default api key.

abstract PagedIterable<DatadogMonitorResource> list()

List all monitors under the specified subscription.

abstract PagedIterable<DatadogMonitorResource> list(Context context)

List all monitors under the specified subscription.

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

List the api keys for a given monitor resource.

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

List the api keys for a given monitor resource.

abstract PagedIterable<DatadogMonitorResource> listByResourceGroup(String resourceGroupName)

List all monitors under the specified resource group.

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

List all monitors under the specified resource group.

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

List the hosts for a given monitor resource.

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

List the hosts for a given monitor resource.

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

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

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

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

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

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

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

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

abstract DatadogSetPasswordLink refreshSetPasswordLink(String resourceGroupName, String monitorName)

Refresh the set password link and return a latest one.

abstract Response<DatadogSetPasswordLink> 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.

Method Details

define

public abstract DatadogMonitorResource.DefinitionStages.Blank define(String name)

Begins definition for a new DatadogMonitorResource resource.

Parameters:

name - resource name.

Returns:

the first stage of the new DatadogMonitorResource definition.

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.

deleteById

public abstract void deleteById(String id)

Delete a monitor resource.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Delete a monitor resource.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

deleteByResourceGroup

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

getById

public abstract DatadogMonitorResource getById(String id)

Get the properties of a specific monitor resource.

Parameters:

id - the resource ID.

Returns:

the properties of a specific monitor resource along with Response<T>.

getByIdWithResponse

public abstract Response<DatadogMonitorResource> getByIdWithResponse(String id, Context context)

Get the properties of a specific monitor resource.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the properties of a specific monitor resource along with Response<T>.

getByResourceGroup

public abstract DatadogMonitorResource 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<DatadogMonitorResource> 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 DatadogApiKey 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<DatadogApiKey> 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<DatadogMonitorResource> list()

List all monitors under the specified subscription.

Returns:

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

list

public abstract PagedIterable<DatadogMonitorResource> 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<DatadogApiKey> 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<DatadogApiKey> 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<DatadogMonitorResource> 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<DatadogMonitorResource> 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<DatadogHost> 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<DatadogHost> 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<LinkedResource> 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<LinkedResource> 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<MonitoredResource> 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<MonitoredResource> 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 DatadogSetPasswordLink 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<DatadogSetPasswordLink> 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:

Applies to