com.microsoft.azure.management.monitor.ActivityLogs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.monitor;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Method;
import com.microsoft.azure.management.monitor.implementation.ActivityLogsInner;
import com.microsoft.azure.management.monitor.implementation.MonitorManager;
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
import org.joda.time.DateTime;
import rx.Observable;
import java.util.List;
/**
* Entry point for Monitor Activity logs API.
*/
@LangDefinition(ContainerName = "/Microsoft.Azure.Management.Monitor.Fluent")
public interface ActivityLogs extends
HasManager,
HasInner {
/**
* Lists available event categories supported in the Activity Logs Service.
*
* @return list of available event categories supported in the Activity Logs Service.
*/
@Method
List listEventCategories();
/**
* Lists available event categories supported in the Activity Logs Service.
*
* @return list of available event categories supported in the Activity Logs Service.
*/
@Method
Observable listEventCategoriesAsync();
/**
* Begins a definition for a new Activity log query.
*
* @return the stage of start time filter definition.
*/
@Method
ActivityLogsQueryDefinitionStages.WithEventDataStartTimeFilter defineQuery();
/**
* The entirety of a Activity Logs query definition.
*/
interface ActivityLogsQueryDefinition extends
ActivityLogsQueryDefinitionStages.WithEventDataStartTimeFilter,
ActivityLogsQueryDefinitionStages.WithEventDataEndFilter,
ActivityLogsQueryDefinitionStages.WithEventDataFieldFilter,
ActivityLogsQueryDefinitionStages.WithActivityLogsSelectFilter,
ActivityLogsQueryDefinitionStages.WithActivityLogsQueryExecute {
}
/**
* Grouping of Activity log query stages.
*/
interface ActivityLogsQueryDefinitionStages {
/**
* The stage of a Activity Log query allowing to specify start time filter.
*/
interface WithEventDataStartTimeFilter {
/**
* Sets the start time for Activity Log query filter.
*
* @param startTime specifies start time of cut off filter.
* @return the stage of end time filter definition.
*/
WithEventDataEndFilter startingFrom(DateTime startTime);
}
/**
* The stage of a Activity Log query allowing to specify end time filter.
*/
interface WithEventDataEndFilter {
/**
* Sets the end time for Activity Log query filter.
*
* @param endTime specifies end time of cut off filter.
* @return the stage of optional query parameter definition and query execution.
*/
WithEventDataFieldFilter endsBefore(DateTime endTime);
}
/**
* The stage of a Activity Log query allowing to specify data fields in the server response.
*/
interface WithEventDataFieldFilter {
/**
* Selects data fields that will be populated in the server response.
*
* @param responseProperties field names in the server response.
* @return the stage of Activity log filtering by type and query execution.
*/
WithActivityLogsSelectFilter withResponseProperties(EventDataPropertyName... responseProperties);
/**
* Sets the server response to include all the available properties.
*
* @return the stage of Activity log filtering by type and query execution.
*/
@Method
WithActivityLogsSelectFilter withAllPropertiesInResponse();
}
/**
* The stage of the Activity log filtering by type and query execution.
*/
interface WithActivityLogsSelectFilter extends
WithActivityLogsQueryExecute {
/**
* Filters events for a given resource group.
*
* @param resourceGroupName Specifies resource group name.
* @return the stage of Activity log filtering by type and query execution.
*/
WithActivityLogsQueryExecute filterByResourceGroup(String resourceGroupName);
/**
* Filters events for a given resource.
*
* @param resourceId Specifies resource Id.
* @return the stage of Activity log filtering by type and query execution.
*/
WithActivityLogsQueryExecute filterByResource(String resourceId);
/**
* Filters events for a given resource provider.
*
* @param resourceProviderName Specifies resource provider.
* @return the stage of Activity log filtering by type and query execution.
*/
WithActivityLogsQueryExecute filterByResourceProvider(String resourceProviderName);
/**
* Filters events for a given correlation id.
*
* @param correlationId Specifies correlation id.
* @return the stage of Activity log filtering by type and query execution.
*/
WithActivityLogsQueryExecute filterByCorrelationId(String correlationId);
}
/**
* The stage of the Activity log query execution.
*/
interface WithActivityLogsQueryExecute {
/**
* Executes the query.
*
* @return Activity Log events received after query execution.
*/
@Method
PagedList execute();
/**
* Executes the query.
*
* @return a representation of the deferred computation of Activity Log query call.
*/
@Method
Observable executeAsync();
/**
* Filters events that were generated at the Tenant level.
*
* @return the stage of Activity log filtering by Tenant level and query execution.
*/
@Method
WithActivityLogsQueryExecute filterAtTenantLevel();
}
}
}