All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.monitor.implementation.AlertRulesImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Monitor SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.resourcemanager.monitor.implementation;

import com.azure.resourcemanager.monitor.MonitorManager;
import com.azure.resourcemanager.monitor.models.ActivityLogAlerts;
import com.azure.resourcemanager.monitor.models.AlertRules;
import com.azure.resourcemanager.monitor.models.MetricAlerts;

/** Implementation for {@link MetricAlerts}. */
public class AlertRulesImpl implements AlertRules {

    private final MetricAlerts metricAlerts;
    private final ActivityLogAlerts activityLogAlerts;

    public AlertRulesImpl(final MonitorManager monitorManager) {
        metricAlerts = new MetricAlertsImpl(monitorManager);
        activityLogAlerts = new ActivityLogAlertsImpl(monitorManager);
    }

    @Override
    public MetricAlerts metricAlerts() {
        return metricAlerts;
    }

    @Override
    public ActivityLogAlerts activityLogAlerts() {
        return activityLogAlerts;
    }

    @Override
    public MonitorManager manager() {
        return this.metricAlerts.manager();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy