예제 #1
0
		public HtmlRenderer( string outputDirectory, StaffHistory history ) : this( outputDirectory )
		{
			m_TimeStamp = DateTime.Now;

			m_Objects = new ObjectCollection();

			history.Render( m_Objects );
		}
예제 #2
0
		public HtmlRenderer( string outputDirectory, Snapshot ss, SnapshotHistory history ) : this( outputDirectory )
		{
			m_TimeStamp = ss.TimeStamp;

			m_Objects = new ObjectCollection();

			for ( int i = 0; i < ss.Children.Count; ++i )
				m_Objects.Add( ss.Children[i] );

			m_Objects.Add( BarGraph.OverTime( history, "General Stats", "Clients", 1, 100, 6 ) );
			m_Objects.Add( BarGraph.OverTime( history, "General Stats", "Items", 24, 9, 1  ) );
			m_Objects.Add( BarGraph.OverTime( history, "General Stats", "Players", 24, 9, 1 ) );
			m_Objects.Add( BarGraph.OverTime( history, "General Stats", "NPCs", 24, 9, 1 ) );
			m_Objects.Add( BarGraph.DailyAverage( history, "General Stats", "Clients" ) );
			m_Objects.Add( BarGraph.Growth( history, "General Stats", "Clients" ) );
		}
예제 #3
0
파일: HtmlRenderer.cs 프로젝트: Nerun/runuo
        public HtmlRenderer(string outputDirectory, Snapshot ss, SnapshotHistory history) : this( outputDirectory )
        {
            m_TimeStamp = ss.TimeStamp;

            m_Objects = new ObjectCollection();

            for (int i = 0; i < ss.Children.Count; ++i)
            {
                m_Objects.Add(ss.Children[i]);
            }

            m_Objects.Add(BarGraph.OverTime(history, "General Stats", "Clients", 1, 100, 6));
            m_Objects.Add(BarGraph.OverTime(history, "General Stats", "Items", 24, 9, 1));
            m_Objects.Add(BarGraph.OverTime(history, "General Stats", "Players", 24, 9, 1));
            m_Objects.Add(BarGraph.OverTime(history, "General Stats", "NPCs", 24, 9, 1));
            m_Objects.Add(BarGraph.DailyAverage(history, "General Stats", "Clients"));
            m_Objects.Add(BarGraph.Growth(history, "General Stats", "Clients"));
        }
예제 #4
0
        public void Render(ObjectCollection objects)
        {
            lock (RenderLock)
            {
                objects.Add(GraphQueueStatus());

                StaffInfo[] staff = GetStaff();

                BaseInfo.SortRange = TimeSpan.FromDays(7.0);
                Array.Sort(staff);

                objects.Add(GraphHourlyPages(m_Pages, PageResolution.None, "New pages by hour", "graph_new_pages_hr"));
                objects.Add(GraphHourlyPages(m_Pages, PageResolution.Handled, "Handled pages by hour", "graph_handled_pages_hr"));
                objects.Add(GraphHourlyPages(m_Pages, PageResolution.Deleted, "Deleted pages by hour", "graph_deleted_pages_hr"));
                objects.Add(GraphHourlyPages(m_Pages, PageResolution.Canceled, "Canceled pages by hour", "graph_canceled_pages_hr"));
                objects.Add(GraphHourlyPages(m_Pages, PageResolution.Logged, "Logged-out pages by hour", "graph_logged_pages_hr"));

                BaseInfo.SortRange = TimeSpan.FromDays(1.0);
                Array.Sort(staff);

                objects.Add(ReportTotalPages(staff, TimeSpan.FromDays(1.0), "1 Day"));
                objects.AddRange(ChartTotalPages(staff, TimeSpan.FromDays(1.0), "1 Day", "graph_daily_pages"));

                BaseInfo.SortRange = TimeSpan.FromDays(7.0);
                Array.Sort(staff);

                objects.Add(ReportTotalPages(staff, TimeSpan.FromDays(7.0), "1 Week"));
                objects.AddRange(ChartTotalPages(staff, TimeSpan.FromDays(7.0), "1 Week", "graph_weekly_pages"));

                BaseInfo.SortRange = TimeSpan.FromDays(30.0);
                Array.Sort(staff);

                objects.Add(ReportTotalPages(staff, TimeSpan.FromDays(30.0), "1 Month"));
                objects.AddRange(ChartTotalPages(staff, TimeSpan.FromDays(30.0), "1 Month", "graph_monthly_pages"));

                for (int i = 0; i < staff.Length; ++i)
                {
                    objects.Add(GraphHourlyPages(staff[i]));
                }
            }
        }
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal ObjectCollectionEnumerator(ObjectCollection collection)
 {
     this._index      = -1;
     this._collection = collection;
 }
예제 #6
0
		public void Render( ObjectCollection objects )
		{
			lock ( RenderLock )
			{
				objects.Add( GraphQueueStatus() );

				StaffInfo[] staff = GetStaff();

				BaseInfo.SortRange = TimeSpan.FromDays( 7.0 );
				Array.Sort( staff );

				objects.Add( GraphHourlyPages( m_Pages, PageResolution.None, "New pages by hour", "graph_new_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Handled, "Handled pages by hour", "graph_handled_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Deleted, "Deleted pages by hour", "graph_deleted_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Canceled, "Canceled pages by hour", "graph_canceled_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Logged, "Logged-out pages by hour", "graph_logged_pages_hr" ) );

				BaseInfo.SortRange = TimeSpan.FromDays( 1.0 );
				Array.Sort( staff );

				objects.Add( ReportTotalPages( staff, TimeSpan.FromDays(  1.0 ), "1 Day" ) );
				objects.AddRange( (PersistableObject[])ChartTotalPages( staff, TimeSpan.FromDays(  1.0 ), "1 Day", "graph_daily_pages" ) );

				BaseInfo.SortRange = TimeSpan.FromDays( 7.0 );
				Array.Sort( staff );

				objects.Add( ReportTotalPages( staff, TimeSpan.FromDays(  7.0 ), "1 Week" ) );
				objects.AddRange( (PersistableObject[])ChartTotalPages( staff, TimeSpan.FromDays(  7.0 ), "1 Week", "graph_weekly_pages" ) );

				BaseInfo.SortRange = TimeSpan.FromDays( 30.0 );
				Array.Sort( staff );

				objects.Add( ReportTotalPages( staff, TimeSpan.FromDays( 30.0 ), "1 Month" ) );
				objects.AddRange( (PersistableObject[])ChartTotalPages( staff, TimeSpan.FromDays( 30.0 ), "1 Month", "graph_monthly_pages" ) );

				for ( int i = 0; i < staff.Length; ++i )
					objects.Add( GraphHourlyPages( staff[i] ) );
			}
		}
예제 #7
0
 public Snapshot()
 {
     this.m_Children = new ObjectCollection();
 }
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal ObjectCollectionEnumerator(ObjectCollection collection)
 {
     this._index = -1;
     this._collection = collection;
 }
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal ObjectCollectionEnumerator(ObjectCollection collection)
 {
     _index = -1;
     _collection = collection;
 }
예제 #10
0
파일: Snapshot.cs 프로젝트: Crome696/ServUO
 public Snapshot()
 {
     this.m_Children = new ObjectCollection();
 }
예제 #11
0
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal ObjectCollectionEnumerator(ObjectCollection collection)
 {
     _index      = -1;
     _collection = collection;
 }