Files
DP44/Common/DTS.CommonCore/.svn/pristine/91/9182fd10e7063e96ad7e5264631cd29dc378cdcb.svn-base

81 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using System.ComponentModel.DataAnnotations;
namespace DTS.Common.Interface.Graphs
{
/// <summary>
/// describes a record in the db for a graph
/// </summary>
public interface IGraphRecord
{
/// <summary>
/// database key for graph
/// </summary>
int GraphId { get; set; }
/// <summary>
/// test setup key for graph
/// </summary>
int TestSetupId { get; set; }
/// <summary>
/// name of graph
/// </summary>
[MaxLength(50)]
string GraphName { get; set; }
/// <summary>
/// description of graph
/// </summary>
[MaxLength(50)]
string GraphDescription { get; set; }
/// <summary>
/// all the channels in the graph
/// </summary>
[MaxLength(2048)]
string ChannelsString { get; set; }
/// <summary>
/// whether to restrict domain axis to a min value
/// </summary>
bool UseDomainMin { get; set; }
/// <summary>
/// the minimum value to show on domain axis
/// (only valid when UseDomainMin is true)
/// </summary>
double DomainMin { get; set; }
/// <summary>
/// whether to restrict domain axis to a max value
/// </summary>
bool UseDomainMax { get; set; }
/// <summary>
/// maximum value to show on domain axis
/// (only valid when UseDomainMax is true)
/// </summary>
double DomainMax { get; set; }
/// <summary>
/// whether to restrict range axis to a min value
/// </summary>
bool UseRangeMin { get; set; }
/// <summary>
/// minimum value to show on range axis
/// (only valid when UseRangeMin is true)
/// </summary>
double RangeMin { get; set; }
/// <summary>
/// whether to restrict range axis to a max value
/// </summary>
bool UseRangeMax { get; set; }
/// <summary>
/// the maximum value to show on the range axis
/// (only valid when UseRangeMax is true)
/// </summary>
double RangeMax { get; set; }
/// <summary>
/// any thresholds/lines to show on the graph
/// </summary>
[MaxLength(2048)]
string ThresholdsString { get; set; }
/// <summary>
/// whether to synchronize record with central db
/// [deprecated]
/// </summary>
bool LocalOnly { get; set; }
}
}