-
-
Save justinyoo/40ee3814886b33504cef9230c5230ce5 to your computer and use it in GitHub Desktop.
Application Insights WebTests SDK
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 class WebTestResource : GenericResource | |
{ | |
private const string ResourceType = "Microsoft.Insights/webtests"; | |
private const string ApiVersion = "2015-05-01"; | |
public WebTestResource(string name, string url, ResourceBaseExtended insights) | |
{ | |
var syntheticMonitorId = $"{name}-{insights.Name}"; | |
this.ResourceIdentity = new ResourceIdentity($"{syntheticMonitorId}", ResourceType, ApiVersion); | |
this.Location = insights.Location; | |
this.Tags.Add($"hidden-link:{insights.Id}", "Resource"); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment