Merge branch 'master' into eventing

This commit is contained in:
ShekharGupta1988 2018-03-21 13:10:45 -07:00
Родитель f1f0875f24 7e91e186c6
Коммит 18f23d85fe
3 изменённых файлов: 94 добавлений и 22 удалений

Просмотреть файл

@ -1,3 +1,4 @@
[![Build Status](https://travis-ci.org/Azure/Azure-AppServices-Diagnostics.svg?branch=master)](https://travis-ci.org/Azure/Azure-AppServices-Diagnostics)
# Contributing

Просмотреть файл

@ -0,0 +1,93 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Diagnostics.ModelsAndUtils
{
public class Rendering
{
public RenderingType RenderingType { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public Rendering()
{
RenderingType = RenderingType.TimeSeries;
}
public Rendering(RenderingType type)
{
RenderingType = type;
}
}
public class TableRendering : Rendering
{
public IEnumerable<string> DisplayColumnNames { get; set; }
public string GroupByColumnName { get; set; }
public TableRendering() : base(RenderingType.Table)
{
DisplayColumnNames = null;
GroupByColumnName = null;
}
}
public class TimeSeriesRendering : Rendering
{
public int DefaultValue { get; set; }
public TimeSeriesType GraphType { get; set; }
public string TimestampColumnName { get; set; }
public string RoleInstanceColumnName { get; set; }
public IEnumerable<string> SeriesColumns { get; set; }
public TimeSeriesRendering()
{
DefaultValue = 0;
GraphType = TimeSeriesType.LineGraph;
}
}
public class TimeSeriesPerInstanceRendering : Rendering
{
public TimeSeriesType GraphType { get; set; }
public string TimestampColumnName { get; set; }
public string RoleInstanceColumnName { get; set; }
public string CounterColumnName { get; set; }
public string ValueColumnName { get; set; }
public IEnumerable<string> InstanceFilter { get; set; }
public IEnumerable<string> CounterNameFilter { get; set; }
public string SelectedInstance { get; set; }
}
public enum RenderingType
{
NoGraph = 0,
Table,
TimeSeries,
TimeSeriesPerInstance,
PieChart
}
public enum TimeSeriesType
{
LineGraph = 0,
BarGraph,
StackedAreaGraph,
StackedBarGraph
}
}

Просмотреть файл

@ -29,26 +29,4 @@ namespace Diagnostics.ModelsAndUtils
RenderingProperties = new Rendering();
}
}
public class Rendering
{
public GraphType Type { get; set; }
public Rendering()
{
Type = GraphType.TimeSeries;
}
public Rendering(GraphType type)
{
Type = type;
}
}
public enum GraphType
{
NoGraph = 0,
Table,
TimeSeries
}
}