com.azure.resourcemanager.monitor.models.DiagnosticSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-monitor Show documentation
Show all versions of azure-resourcemanager-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.monitor.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.monitor.MonitorManager;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById;
import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating;
import com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById;
import java.util.List;
import reactor.core.publisher.Mono;
/** Entry point for diagnostic settings management API. */
@Fluent
public interface DiagnosticSettings
extends SupportsCreating,
SupportsBatchCreation,
SupportsGettingById,
SupportsDeletingById,
SupportsBatchDeletion,
HasManager {
/**
* Lists all the Diagnostic Settings categories for Log and Metric Settings for a specific resource.
*
* @param resourceId of the requested resource.
* @return list of Diagnostic Settings category available for the resource.
*/
List listCategoriesByResource(String resourceId);
/**
* Lists all the Diagnostic Settings categories for Log and Metric Settings for a specific resource.
*
* @param resourceId of the requested resource.
* @return list of Diagnostic Settings category available for the resource.
*/
PagedFlux listCategoriesByResourceAsync(String resourceId);
/**
* Gets the information about Diagnostic Setting category for Log or Metric Setting for a specific resource.
*
* @param resourceId of the requested resource.
* @param name of the Log or Metric category.
* @return Diagnostic Setting category available for the resource.
*/
DiagnosticSettingsCategory getCategory(String resourceId, String name);
/**
* Gets the information about Diagnostic Setting category for Log or Metric Setting for a specific resource.
*
* @param resourceId of the requested resource.
* @param name of the Log or Metric category.
* @return Diagnostic Setting category available for the resource.
*/
Mono getCategoryAsync(String resourceId, String name);
/**
* Lists all the diagnostic settings in the currently selected subscription for a specific resource.
*
* @param resourceId that Diagnostic Setting is associated with.
* @return list of resources
*/
PagedIterable listByResource(String resourceId);
/**
* Lists all the diagnostic settings in the currently selected subscription for a specific resource.
*
* @param resourceId that Diagnostic Setting is associated with.
* @return list of resources
*/
PagedFlux listByResourceAsync(String resourceId);
/**
* Deletes a Diagnostic Setting from Azure, identifying it by its resourceId and name.
*
* @param resourceId that Diagnostic Setting is associated with.
* @param name the name of Diagnostic Setting.
*/
void delete(String resourceId, String name);
/**
* Asynchronously delete a Diagnostic Setting from Azure, identifying it by its resourceId and name.
*
* @param resourceId that Diagnostic Setting is associated with.
* @param name the name of Diagnostic Setting.
* @return a representation of the deferred computation of this call
*/
Mono deleteAsync(String resourceId, String name);
/**
* Gets the information about Diagnostic Setting from Azure based on the resource id and setting name.
*
* @param resourceId that Diagnostic Setting is associated with.
* @param name the name of Diagnostic Setting.
* @return an immutable representation of the resource
*/
DiagnosticSetting get(String resourceId, String name);
/**
* Gets the information about Diagnostic Setting from Azure based on the resource id and setting name.
*
* @param resourceId that Diagnostic Setting is associated with.
* @param name the name of Diagnostic Setting.
* @return an immutable representation of the resource
*/
Mono getAsync(String resourceId, String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy