
com.azure.resourcemanager.newrelicobservability.models.Monitors Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.newrelicobservability.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
/**
* Resource collection API of Monitors.
*/
public interface Monitors {
/**
* List NewRelicMonitorResource resources by subscription ID.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a NewRelicMonitorResource list operation as paginated response with
* {@link PagedIterable}.
*/
PagedIterable list();
/**
* List NewRelicMonitorResource resources by subscription ID.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a NewRelicMonitorResource list operation as paginated response with
* {@link PagedIterable}.
*/
PagedIterable list(Context context);
/**
* List NewRelicMonitorResource resources by resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a NewRelicMonitorResource list operation as paginated response with
* {@link PagedIterable}.
*/
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List NewRelicMonitorResource resources by resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a NewRelicMonitorResource list operation as paginated response with
* {@link PagedIterable}.
*/
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Get a NewRelicMonitorResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a NewRelicMonitorResource along with {@link Response}.
*/
Response getByResourceGroupWithResponse(String resourceGroupName, String monitorName,
Context context);
/**
* Get a NewRelicMonitorResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a NewRelicMonitorResource.
*/
NewRelicMonitorResource getByResourceGroup(String resourceGroupName, String monitorName);
/**
* Delete a NewRelicMonitorResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param userEmail User Email.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String userEmail, String monitorName);
/**
* Delete a NewRelicMonitorResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param userEmail User Email.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String userEmail, String monitorName, Context context);
/**
* Get metric rules.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return metric rules along with {@link Response}.
*/
Response getMetricRulesWithResponse(String resourceGroupName, String monitorName,
MetricsRequest request, Context context);
/**
* Get metric rules.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return metric rules.
*/
MetricRules getMetricRules(String resourceGroupName, String monitorName, MetricsRequest request);
/**
* Get metric status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return metric status along with {@link Response}.
*/
Response getMetricStatusWithResponse(String resourceGroupName, String monitorName,
MetricsStatusRequest request, Context context);
/**
* Get metric status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return metric status.
*/
MetricsStatusResponse getMetricStatus(String resourceGroupName, String monitorName, MetricsStatusRequest request);
/**
* List the app service resources currently being monitored by the NewRelic resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the app services get request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list app services Operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listAppServices(String resourceGroupName, String monitorName,
AppServicesGetRequest request);
/**
* List the app service resources currently being monitored by the NewRelic resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the app services get request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list app services Operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listAppServices(String resourceGroupName, String monitorName,
AppServicesGetRequest request, Context context);
/**
* Switches the billing for NewRelic monitor resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the switch billing request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Monitor Resource by NewRelic.
*/
Response switchBillingWithResponse(String resourceGroupName, String monitorName,
SwitchBillingRequest request, Context context);
/**
* Switches the billing for NewRelic monitor resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the switch billing request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Monitor Resource by NewRelic.
*/
NewRelicMonitorResource switchBilling(String resourceGroupName, String monitorName, SwitchBillingRequest request);
/**
* List the compute vm resources currently being monitored by the NewRelic resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the Hosts get request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list VM Host Operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listHosts(String resourceGroupName, String monitorName, HostsGetRequest request);
/**
* List the compute vm resources currently being monitored by the NewRelic resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the Hosts get request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list VM Host Operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listHosts(String resourceGroupName, String monitorName, HostsGetRequest request,
Context context);
/**
* List the resources currently being monitored by the NewRelic monitor resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of all the resources being monitored by NewRelic monitor resource as paginated response with
* {@link PagedIterable}.
*/
PagedIterable listMonitoredResources(String resourceGroupName, String monitorName);
/**
* List the resources currently being monitored by the NewRelic monitor resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of all the resources being monitored by NewRelic monitor resource as paginated response with
* {@link PagedIterable}.
*/
PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
Context context);
/**
* List all Azure resources associated to the same NewRelic organization and account as the target resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listLinkedResources(String resourceGroupName, String monitorName);
/**
* List all Azure resources associated to the same NewRelic organization and account as the target resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listLinkedResources(String resourceGroupName, String monitorName, Context context);
/**
* Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of payload to be passed while installing VM agent along with {@link Response}.
*/
Response vmHostPayloadWithResponse(String resourceGroupName, String monitorName,
Context context);
/**
* Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of payload to be passed while installing VM agent.
*/
VMExtensionPayload vmHostPayload(String resourceGroupName, String monitorName);
/**
* Get a NewRelicMonitorResource.
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a NewRelicMonitorResource along with {@link Response}.
*/
NewRelicMonitorResource getById(String id);
/**
* Get a NewRelicMonitorResource.
*
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a NewRelicMonitorResource along with {@link Response}.
*/
Response getByIdWithResponse(String id, Context context);
/**
* Begins definition for a new NewRelicMonitorResource resource.
*
* @param name resource name.
* @return the first stage of the new NewRelicMonitorResource definition.
*/
NewRelicMonitorResource.DefinitionStages.Blank define(String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy