Interface Monitors
public interface Monitors
Resource collection API of Monitors.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new LogzMonitorResource resource.void
Delete a monitor resource.void
deleteById
(String id) Delete a monitor resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a monitor resource.void
deleteByResourceGroup
(String resourceGroupName, String monitorName) Delete a monitor resource.Get the properties of a specific monitor resource.com.azure.core.http.rest.Response<LogzMonitorResource>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get the properties of a specific monitor resource.getByResourceGroup
(String resourceGroupName, String monitorName) Get the properties of a specific monitor resource.com.azure.core.http.rest.Response<LogzMonitorResource>
getByResourceGroupWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get the properties of a specific monitor resource.com.azure.core.http.rest.PagedIterable<LogzMonitorResource>
list()
List all monitors under the specified subscription.com.azure.core.http.rest.PagedIterable<LogzMonitorResource>
list
(com.azure.core.util.Context context) List all monitors under the specified subscription.com.azure.core.http.rest.PagedIterable<LogzMonitorResource>
listByResourceGroup
(String resourceGroupName) List all monitors under the specified resource group.com.azure.core.http.rest.PagedIterable<LogzMonitorResource>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List all monitors under the specified resource group.com.azure.core.http.rest.PagedIterable<MonitoredResource>
listMonitoredResources
(String resourceGroupName, String monitorName) List the resources currently being monitored by the Logz monitor resource.com.azure.core.http.rest.PagedIterable<MonitoredResource>
listMonitoredResources
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the resources currently being monitored by the Logz monitor resource.com.azure.core.http.rest.PagedIterable<UserRoleResponse>
listUserRoles
(String resourceGroupName, String monitorName) List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.com.azure.core.http.rest.PagedIterable<UserRoleResponse>
listUserRoles
(String resourceGroupName, String monitorName, UserRoleRequest body, com.azure.core.util.Context context) List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.
-
Method Details
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResource> listMonitoredResources(String resourceGroupName, String monitorName) List the resources currently being monitored by the Logz 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<MonitoredResource> listMonitoredResources(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the resources currently being monitored by the Logz 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<LogzMonitorResource> 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<LogzMonitorResource> 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<LogzMonitorResource> 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<LogzMonitorResource> 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<LogzMonitorResource> 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.
-
deleteByResourceGroup
Delete a monitor resource. This delete operation can take upto 10 minutes to complete.- 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. This delete operation can take upto 10 minutes to complete.- 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.
-
listUserRoles
com.azure.core.http.rest.PagedIterable<UserRoleResponse> listUserRoles(String resourceGroupName, String monitorName) List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response for list of user's role for Logz.io account 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.
-
listUserRoles
com.azure.core.http.rest.PagedIterable<UserRoleResponse> listUserRoles(String resourceGroupName, String monitorName, UserRoleRequest body, com.azure.core.util.Context context) List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.body
- Request for checking user's role for Logz.io account.context
- The context to associate with this operation.- Returns:
- response for list of user's role for Logz.io account 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.
-
getById
Get the properties of a specific monitor resource.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<LogzMonitorResource> getByIdWithResponse(String id, com.azure.core.util.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
. - 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.
-
deleteById
Delete a monitor resource. This delete operation can take upto 10 minutes to complete.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Delete a monitor resource. This delete operation can take upto 10 minutes to complete.- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new LogzMonitorResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new LogzMonitorResource definition.
-