41 instantiations of ResourceInfoJson
Aspire.Cli.Tests (41)
Commands\ExportCommandTests.cs (14)
31new ResourceInfoJson { Name = "redis", InstanceId = null }, 32new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 120resources: [new ResourceInfoJson { Name = "redis", InstanceId = null }], 238new[] { new ResourceInfoJson { Name = "target-resource", InstanceId = null } }, 308new ResourceInfoJson { Name = "redis", InstanceId = null }, 309new ResourceInfoJson { Name = "apiservice", InstanceId = "abc" }, 310new ResourceInfoJson { Name = "apiservice", InstanceId = "def" }, 434new ResourceInfoJson { Name = "redis", InstanceId = null }, 435new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 494new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 548new ResourceInfoJson { Name = "redis", InstanceId = null }, 549new ResourceInfoJson { Name = "apiservice", InstanceId = "abc" }, 550new ResourceInfoJson { Name = "apiservice", InstanceId = "def" }, 613resources: [new ResourceInfoJson { Name = "redis", InstanceId = null }],
Commands\TelemetryCommandTests.cs (3)
151new() { Name = "frontend", InstanceId = "abc123" }, 152new() { Name = "backend", InstanceId = null }, 153new() { Name = "frontend", InstanceId = "xyz789" },
Commands\TelemetryLogsCommandTests.cs (4)
58new ResourceInfoJson { Name = "redis", InstanceId = null }, 59new ResourceInfoJson { Name = "apiservice", InstanceId = null }, 93new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 94new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() },
Commands\TelemetrySpansCommandTests.cs (4)
58new ResourceInfoJson { Name = "frontend", InstanceId = null }, 59new ResourceInfoJson { Name = "backend", InstanceId = null }, 93new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 94new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() },
Commands\TelemetryTracesCommandTests.cs (4)
58new ResourceInfoJson { Name = "frontend", InstanceId = null }, 59new ResourceInfoJson { Name = "backend", InstanceId = null }, 109new ResourceInfoJson { Name = "apiservice", InstanceId = guid1.ToString() }, 110new ResourceInfoJson { Name = "apiservice", InstanceId = guid2.ToString() },
Mcp\ListStructuredLogsToolTests.cs (5)
147new() { Name = "api-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true }, 148new() { Name = "api-service", InstanceId = "instance-2", HasLogs = true, HasTraces = true, HasMetrics = true }, 149new() { Name = "worker-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true } 252new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 299new() { Name = "other-resource", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true }
Mcp\ListTracesToolTests.cs (7)
119new() { Name = "api-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true }, 120new() { Name = "api-service", InstanceId = "instance-2", HasLogs = true, HasTraces = true, HasMetrics = true }, 121new() { Name = "worker-service", InstanceId = "instance-1", HasLogs = true, HasTraces = true, HasMetrics = true } 234new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 281new() { Name = "other-resource", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true } 389new() { Name = "api-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true }, 390new() { Name = "worker-service", InstanceId = null, HasLogs = true, HasTraces = true, HasMetrics = true }
17 references to ResourceInfoJson
aspire (7)
Commands\TelemetryCommandHelpers.cs (5)
164IList<ResourceInfoJson> resources, 181var exactMatch = resources.FirstOrDefault(r => 206public static async Task<ResourceInfoJson[]> GetAllResourcesAsync(HttpClient client, string baseUrl, CancellationToken cancellationToken) 320/// Converts an array of <see cref="ResourceInfoJson"/> to a list of <see cref="IOtlpResource"/> for use with <see cref="OtlpHelpers.GetResourceName"/>. 322public static IReadOnlyList<IOtlpResource> ToOtlpResources(ResourceInfoJson[] resources)
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (2)
67[JsonSerializable(typeof(ResourceInfoJson))] 68[JsonSerializable(typeof(ResourceInfoJson[]))]
Aspire.Cli.Tests (10)
Commands\ExportCommandTests.cs (1)
689ResourceInfoJson[] resources,
Commands\TelemetryCommandTests.cs (1)
149var resources = new ResourceInfoJson[]
Commands\TelemetryTestHelper.cs (1)
65ResourceInfoJson[] resources,
Mcp\ListStructuredLogsToolTests.cs (3)
145var resources = new ResourceInfoJson[] 250var resources = new ResourceInfoJson[] 297var resources = new ResourceInfoJson[]
Mcp\ListTracesToolTests.cs (4)
117var resources = new ResourceInfoJson[] 232var resources = new ResourceInfoJson[] 279var resources = new ResourceInfoJson[] 387var resources = new ResourceInfoJson[]