Interface DatadogMonitorResource


public interface DatadogMonitorResource
An immutable client-side representation of DatadogMonitorResource.
  • Method Details

    • id

      String id()
      Gets the id property: Fully qualified resource Id for the resource.
      Returns:
      the id value.
    • name

      String name()
      Gets the name property: The name of the resource.
      Returns:
      the name value.
    • type

      String type()
      Gets the type property: The type of the resource.
      Returns:
      the type value.
    • location

      String location()
      Gets the location property: The geo-location where the resource lives.
      Returns:
      the location value.
    • tags

      Map<String,String> tags()
      Gets the tags property: Resource tags.
      Returns:
      the tags value.
    • sku

      Gets the sku property: The sku property.
      Returns:
      the sku value.
    • properties

      MonitorProperties properties()
      Gets the properties property: Properties specific to the monitor resource.
      Returns:
      the properties value.
    • identity

      IdentityProperties identity()
      Gets the identity property: The identity property.
      Returns:
      the identity value.
    • systemData

      com.azure.core.management.SystemData systemData()
      Gets the systemData property: Metadata pertaining to creation and last modification of the resource.
      Returns:
      the systemData value.
    • region

      com.azure.core.management.Region region()
      Gets the region of the resource.
      Returns:
      the region of the resource.
    • regionName

      String regionName()
      Gets the name of the resource region.
      Returns:
      the name of the resource region.
    • resourceGroupName

      String resourceGroupName()
      Gets the name of the resource group.
      Returns:
      the name of the resource group.
    • innerModel

      Gets the inner com.azure.resourcemanager.datadog.fluent.models.DatadogMonitorResourceInner object.
      Returns:
      the inner object.
    • update

      Begins update for the DatadogMonitorResource resource.
      Returns:
      the stage of resource update.
    • refresh

      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      DatadogMonitorResource refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • listApiKeys

      com.azure.core.http.rest.PagedIterable<DatadogApiKey> listApiKeys()
      List the api keys for a given monitor resource.
      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.
    • listApiKeys

      com.azure.core.http.rest.PagedIterable<DatadogApiKey> listApiKeys(com.azure.core.util.Context context)
      List the api keys for a given monitor resource.
      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.
    • getDefaultKeyWithResponse

      com.azure.core.http.rest.Response<DatadogApiKey> getDefaultKeyWithResponse(com.azure.core.util.Context context)
      Get the default api key.
      Parameters:
      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

      DatadogApiKey getDefaultKey()
      Get the default api key.
      Returns:
      the default api key.
      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.
    • setDefaultKeyWithResponse

      com.azure.core.http.rest.Response<Void> setDefaultKeyWithResponse(DatadogApiKeyInner body, com.azure.core.util.Context context)
      Set the default api key.
      Parameters:
      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

      void setDefaultKey()
      Set the default api key.
      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.
    • listHosts

      com.azure.core.http.rest.PagedIterable<DatadogHost> listHosts()
      List the hosts for a given monitor resource.
      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.
    • listHosts

      com.azure.core.http.rest.PagedIterable<DatadogHost> listHosts(com.azure.core.util.Context context)
      List the hosts for a given monitor resource.
      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.
    • listLinkedResources

      com.azure.core.http.rest.PagedIterable<LinkedResource> listLinkedResources()
      List all Azure resources associated to the same Datadog organization as the target resource.
      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.
    • listLinkedResources

      com.azure.core.http.rest.PagedIterable<LinkedResource> listLinkedResources(com.azure.core.util.Context context)
      List all Azure resources associated to the same Datadog organization as the target resource.
      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.
    • listMonitoredResources

      com.azure.core.http.rest.PagedIterable<MonitoredResource> listMonitoredResources()
      List the resources currently being monitored by the Datadog monitor resource.
      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.
    • listMonitoredResources

      com.azure.core.http.rest.PagedIterable<MonitoredResource> listMonitoredResources(com.azure.core.util.Context context)
      List the resources currently being monitored by the Datadog monitor resource.
      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.
    • refreshSetPasswordLinkWithResponse

      com.azure.core.http.rest.Response<DatadogSetPasswordLink> refreshSetPasswordLinkWithResponse(com.azure.core.util.Context context)
      Refresh the set password link and return a latest one.
      Parameters:
      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

      DatadogSetPasswordLink refreshSetPasswordLink()
      Refresh the set password link and return a latest one.
      Returns:
      the response.
      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.