Created
August 5, 2021 07:04
-
-
Save skurik/2b208da43433694989d2ddd25a55f8df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class AzureRedisAlerts | |
{ | |
public readonly MewsResource<MetricAlert<RedisCache>> MemoryHigh = MewsResource<MetricAlert<RedisCache>>.CreateManaged( | |
name: "redis-memory-high", | |
resource: new MetricAlert<RedisCache>( | |
resourceGroup: ResourceDependency<ResourceGroup>.Create<AzureResourceGroups>(g => g.Monitoring), | |
actionGroup: ResourceDependency<ActionGroup>.Create<AzureActionGroups>(g => g.Default), | |
targetResource: ResourceDependency<RedisCache>.Create<AzureRedisCaches>(c => c.WestEurope), | |
description: "Redis memory high" | |
) | |
); | |
public RedisAlerts() | |
{ | |
AllMetricAlerts = new Dictionary<string, MewsResource<MetricAlert<RedisCache>>> | |
{ | |
{ nameof(MemoryHigh), MemoryHigh } | |
}; | |
} | |
public Dictionary<string, MewsResource<MetricAlert<RedisCache>>> AllMetricAlerts { get; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment