Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit 6ec6414

Browse files
committed
Initial contribution from Pivotal Steeltoe project
1 parent c735532 commit 6ec6414

368 files changed

Lines changed: 23336 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Steeltoe.Management.Census.Trace;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
6+
namespace Steeltoe.Management.Census.Common
7+
{
8+
public interface IClock
9+
{
10+
ITimestamp Now { get; }
11+
long NowNanos { get; }
12+
}
13+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Common
6+
{
7+
public interface IDuration : IComparable<IDuration>
8+
{
9+
long Seconds { get; }
10+
int Nanos { get; }
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Common
6+
{
7+
public interface IScope : IDisposable
8+
{
9+
}
10+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Common
6+
{
7+
public interface ITimestamp : IComparable<ITimestamp>
8+
{
9+
long Seconds { get; }
10+
int Nanos { get; }
11+
ITimestamp AddNanos(long nanosToAdd);
12+
ITimestamp AddDuration(IDuration duration);
13+
IDuration SubtractTimestamp(ITimestamp timestamp);
14+
15+
}
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Internal
6+
{
7+
public interface IEventQueue
8+
{
9+
void Enqueue(IEventQueueEntry entry);
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Internal
6+
{
7+
public interface IEventQueueEntry
8+
{
9+
void Process();
10+
}
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Steeltoe.Management.Census.Common;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
6+
namespace Steeltoe.Management.Census.Internal
7+
{
8+
public interface ITimestampConverter
9+
{
10+
ITimestamp ConvertNanoTime(long nanoTime);
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Stats.Aggregations
6+
{
7+
public interface ICount : IAggregation
8+
{
9+
}
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Stats.Aggregations
6+
{
7+
public interface ICountData : IAggregationData
8+
{
9+
long Count { get; }
10+
}
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace Steeltoe.Management.Census.Stats.Aggregations
6+
{
7+
public interface IDistribution : IAggregation
8+
{
9+
10+
IBucketBoundaries BucketBoundaries { get; }
11+
}
12+
}

0 commit comments

Comments
 (0)