File: Model\Otlp\FilterDialogFormModel.cs
Web Access
Project: src\src\Aspire.Dashboard\Aspire.Dashboard.csproj (Aspire.Dashboard)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.ComponentModel.DataAnnotations;
 
namespace Aspire.Dashboard.Model.Otlp;
 
public class FilterDialogFormModel
{
    [Required]
    public SelectViewModel<string>? Parameter { get; set; }
 
    [Required]
    public SelectViewModel<FilterCondition>? Condition { get; set; }
 
    // Set a max length on value because it will be added to the query string.
    // Max length is protection against accidently building a query string that exceeds limits because of a very long value.
    [Required]
    [MaxLength(1024)]
    public string? Value { get; set; }
}