Application Insights URL Ping 测试 - GUID 实际上需要是唯一的吗?
Application Insights URL Ping test - do the GUIDs actually need to be unique?
以编程方式创建 Application Insights URL ping test 时,例如通过 Terraform 或 REST API,至少有两个 GUID 字段。在我见过的所有示例中,这些示例似乎都在使用随机但静态的值。
所以我的问题是:在什么范围内这些实际上需要是唯一的?例如,我可以在两个具有完全相同 XML 定义的不同 Application Insights 实例中创建相同的 URL 测试吗?
所以我说的是 Id="zzzzzzzz-zzzzzz-zzzz-zzzzzz"
和 Guid="xxxxxxx-xxxxxxx-xxxxxxx-xxxxxx"
:
<WebTest Name="appinsights-webtest1" Id="zzzzzzzz-zzzzzz-zzzz-zzzzzz" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="30" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
<Items>
<Request Method="GET" Guid="xxxxxxx-xxxxxxx-xxxxxxx-xxxxxx" Version="1.1" Url="https://example.com" ThinkTime="0" Timeout="30" ParseDependentRequests="False" FollowRedirects="False" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
</Items>
</WebTest>
目前 URL Ping 仍然使用 Visual Studio 测试代理(自 2019 年 3 月起已弃用)来 运行 这些测试。因此,它希望以他们的格式进行测试。 Application Insights 可用性服务忽略这些值。您可以将任何 GUID 放在那里。
PS:我们即将发布新的现代化 SKU 的 Public 预览。 API 此 SKU 将更加精简,不需要以专有 xml 格式编写测试。
以编程方式创建 Application Insights URL ping test 时,例如通过 Terraform 或 REST API,至少有两个 GUID 字段。在我见过的所有示例中,这些示例似乎都在使用随机但静态的值。
所以我的问题是:在什么范围内这些实际上需要是唯一的?例如,我可以在两个具有完全相同 XML 定义的不同 Application Insights 实例中创建相同的 URL 测试吗?
所以我说的是 Id="zzzzzzzz-zzzzzz-zzzz-zzzzzz"
和 Guid="xxxxxxx-xxxxxxx-xxxxxxx-xxxxxx"
:
<WebTest Name="appinsights-webtest1" Id="zzzzzzzz-zzzzzz-zzzz-zzzzzz" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="30" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
<Items>
<Request Method="GET" Guid="xxxxxxx-xxxxxxx-xxxxxxx-xxxxxx" Version="1.1" Url="https://example.com" ThinkTime="0" Timeout="30" ParseDependentRequests="False" FollowRedirects="False" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
</Items>
</WebTest>
目前 URL Ping 仍然使用 Visual Studio 测试代理(自 2019 年 3 月起已弃用)来 运行 这些测试。因此,它希望以他们的格式进行测试。 Application Insights 可用性服务忽略这些值。您可以将任何 GUID 放在那里。
PS:我们即将发布新的现代化 SKU 的 Public 预览。 API 此 SKU 将更加精简,不需要以专有 xml 格式编写测试。