This commit is contained in:
@@ -11,7 +11,7 @@ namespace raven_integration
|
||||
public class Metrics
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,16 +21,16 @@ namespace raven_integration
|
||||
[Fact]
|
||||
public async void MetricsShouldFetch()
|
||||
{
|
||||
DateTime tsStart = DateTime.Now.AddMinutes(-1).ToOffsetAdjustedUniversalTime();
|
||||
DateTime tsEnd = DateTime.Now.AddHours(-1).ToOffsetAdjustedUniversalTime();
|
||||
DateTime tsStart = DateTime.Now.AddMinutes(-1).ToOffsetAdjustedUniversalTime();
|
||||
DateTime tsEnd = DateTime.Now.AddHours(-6).ToOffsetAdjustedUniversalTime();
|
||||
|
||||
ApiResponse a = await Util.GetAsync($"server-metric?tsStart={tsStart}&tsEnd={tsEnd}", await Util.GetTokenAsync("OpsAdminFull"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
a.ObjectResponse["data"]["downSampled"].Should().NotBeNull();
|
||||
a.ObjectResponse["data"]["metricMM"].Should().NotBeNull();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user