Skip to content

Instantly share code, notes, and snippets.

@justinyoo justinyoo/WebTestResource.cs Secret
Created Jun 20, 2016

Embed
What would you like to do?
Application Insights WebTests SDK
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
You can’t perform that action at this time.