sparse-intern-71089
04/03/2021, 2:48 PMpowerful-printer-57241
04/03/2021, 2:59 PMpublic sealed class AzureFeaturePulumiAlertStack : Stack
{
public AzureFeaturePulumiAlertStack()
{
var redisStackReference = new StackReference("mews-admin/Mews.Server.Environments/FeaturePulumiRedis");
var redisId = redisStackReference.GetOutput(nameof(AzureFeaturePulumiRedisStack.RedisId));
redisId.Apply(id => CreateMetricAlert(AzureFeaturePulumiAlerts.RedisMemoryHigh, id.ToString()).Id);
}
private static Pulumi.AzureNative.Insights.MetricAlert CreateMetricAlert<TResource>(MetricAlert<TResource> alert, string scopeId)
{
return new Pulumi.AzureNative.Insights.MetricAlert(...);
}
}
powerful-printer-57241
04/03/2021, 3:06 PMApply
?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by