TelemetryRepositoryTests\MetricsTests.cs (77)
42CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1)),
43CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(2)),
44CreateSumMetric(metricName: "test2", startTime: s_testTime.AddMinutes(1)),
52CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1)),
53CreateHistogramMetric(metricName: "test2", startTime: s_testTime.AddMinutes(1))
133CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: metricAttributes)
249CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: metricAttributes)
316var start = s_testTime.AddMinutes(1);
342CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }),
343CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(2)),
344CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value1")]),
345CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value2")]),
346CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value1"), KeyValuePair.Create("key2", "value1")]),
347CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key1", "value1"), KeyValuePair.Create("key2", "")])
370StartTime = s_testTime.AddMinutes(1),
371EndTime = s_testTime.AddMinutes(1.5),
400var instrument = applications.Single().GetInstrument("test-meter", "test", s_testTime.AddMinutes(1), s_testTime.AddMinutes(1.5));
450CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), value: 1),
451CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(2), value: 2),
452CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(3), value: 3),
453CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(4), value: 4),
454CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(5), value: 5),
491Assert.Equal(s_testTime.AddMinutes(2), m.Start);
492Assert.Equal(s_testTime.AddMinutes(3), m.End);
497Assert.Equal(s_testTime.AddMinutes(3), m.Start);
498Assert.Equal(s_testTime.AddMinutes(4), m.End);
503Assert.Equal(s_testTime.AddMinutes(4), m.Start);
504Assert.Equal(s_testTime.AddMinutes(5), m.End);
529CreateSumMetric(metricName: "test1", value: 1, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-1")]),
530CreateSumMetric(metricName: "test1", value: 2, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-2")])
545CreateSumMetric(metricName: "test1", value: 3, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-3")]),
546CreateSumMetric(metricName: "test2", value: 4, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-4")])
561CreateSumMetric(metricName: "test1", value: 5, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-5")]),
562CreateSumMetric(metricName: "test3", value: 6, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-6")])
595StartTime = s_testTime,
596EndTime = s_testTime.AddMinutes(20)
647CreateSumMetric(metricName: "test1", value: 1, startTime: s_testTime.AddMinutes(1)),
648CreateSumMetric(metricName: "test1", value: 2, startTime: s_testTime.AddMinutes(1))
663CreateSumMetric(metricName: "test1", value: 3, startTime: s_testTime.AddMinutes(1)),
664CreateSumMetric(metricName: "test2", value: 4, startTime: s_testTime.AddMinutes(1))
679CreateSumMetric(metricName: "test1", value: 5, startTime: s_testTime.AddMinutes(1)),
680CreateSumMetric(metricName: "test3", value: 6, startTime: s_testTime.AddMinutes(1))
722CreateSumMetric(metricName: "test1", value: 1, startTime: s_testTime.AddMinutes(1)),
723CreateSumMetric(metricName: "test1", value: 2, startTime: s_testTime.AddMinutes(1))
738CreateSumMetric(metricName: "test1", value: 3, startTime: s_testTime.AddMinutes(1)),
739CreateSumMetric(metricName: "test2", value: 4, startTime: s_testTime.AddMinutes(1))
754CreateSumMetric(metricName: "test1", value: 5, startTime: s_testTime.AddMinutes(1)),
755CreateSumMetric(metricName: "test3", value: 6, startTime: s_testTime.AddMinutes(1))
782StartTime = s_testTime,
783EndTime = s_testTime.AddMinutes(20)
805StartTime = s_testTime,
806EndTime = s_testTime.AddMinutes(20)
835StartTime = s_testTime,
836EndTime = s_testTime.AddMinutes(20)
850StartTime = s_testTime,
851EndTime = s_testTime.AddMinutes(20)
880CreateSumMetric(metricName: "test1", value: 1, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-1")]),
881CreateSumMetric(metricName: "test1", value: 2, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-2")]),
896CreateSumMetric(metricName: "test1", value: 3, startTime: s_testTime.AddMinutes(1)),
897CreateSumMetric(metricName: "test2", value: 4, startTime: s_testTime.AddMinutes(1))
912CreateSumMetric(metricName: "test1", value: 5, startTime: s_testTime.AddMinutes(1)),
913CreateSumMetric(metricName: "test3", value: 6, startTime: s_testTime.AddMinutes(1))
935StartTime = s_testTime,
936EndTime = s_testTime.AddMinutes(20)
946StartTime = s_testTime,
947EndTime = s_testTime.AddMinutes(20)
975StartTime = s_testTime,
976EndTime = s_testTime.AddMinutes(20)
990StartTime = s_testTime,
991EndTime = s_testTime.AddMinutes(20)
1022CreateSumMetric(metricName: "", value: 1, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-1")]),
1023CreateSumMetric(metricName: "test1", value: 2, startTime: s_testTime.AddMinutes(1), attributes: [KeyValuePair.Create("key-1", "value-2")]),
1070TimeUnixNano = DateTimeToUnixNanoseconds(s_testTime.AddMinutes(1))
1078TimeUnixNano = DateTimeToUnixNanoseconds(s_testTime.AddMinutes(2))
1086TimeUnixNano = DateTimeToUnixNanoseconds(s_testTime.AddMinutes(3))