Home
last modified time | relevance | path

Searched refs:ViewData (Results 1 – 25 of 35) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DViewDataTest.java42 import io.opencensus.stats.ViewData.AggregationWindowData;
43 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
44 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
69 ViewData viewData = ViewData.create(view, ENTRIES, windowData); in testCumulativeViewData()
81 ViewData viewData = ViewData.create(view, ENTRIES, windowData); in testIntervalViewData()
96 ViewData.create( in testViewDataEquals()
100 ViewData.create( in testViewDataEquals()
105 ViewData.create( in testViewDataEquals()
110 ViewData.create(intervalView, ENTRIES, IntervalData.create(Timestamp.fromMillis(2000))), in testViewDataEquals()
111 ViewData.create(intervalView, ENTRIES, IntervalData.create(Timestamp.fromMillis(2000)))) in testViewDataEquals()
[all …]
DNoopViewManagerTest.java28 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
29 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
105 ViewData viewData = viewManager.getView(VIEW_NAME); in noopViewManager_GetView_Cumulative()
122 ViewData viewData = viewManager.getView(VIEW_NAME); in noopViewManager_GetView_Interval()
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DViewData.java58 public abstract class ViewData { class
61 ViewData() {} in ViewData() method in ViewData
121 public static ViewData create( in create()
136 new Function<ViewData.AggregationWindowData.CumulativeData, ViewData>() { in create()
138 public ViewData apply(ViewData.AggregationWindowData.CumulativeData arg) { in create()
143 new Function<ViewData.AggregationWindowData.IntervalData, ViewData>() { in create()
145 public ViewData apply(ViewData.AggregationWindowData.IntervalData arg) { in create()
156 Functions.<ViewData>throwAssertionError()); in create()
171 public static ViewData create(
195 private static ViewData createInternal(
DNoopStats.java175 public ViewData getView(View.Name name) { in getView()
182 return ViewData.create( in getView()
187 Functions.<ViewData.AggregationWindowData>returnConstant( in getView()
188 ViewData.AggregationWindowData.CumulativeData.create( in getView()
190 Functions.<ViewData.AggregationWindowData>returnConstant( in getView()
191 ViewData.AggregationWindowData.IntervalData.create(ZERO_TIMESTAMP)), in getView()
192 Functions.<ViewData.AggregationWindowData>throwAssertionError())); in getView()
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/
DRpczZPageHandlerTest.java30 import io.opencensus.stats.ViewData;
31 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
32 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
70 ViewData.create( in emitSummaryTableForEachMethod()
77 ViewData.create( in emitSummaryTableForEachMethod()
85 ViewData.create( in emitSummaryTableForEachMethod()
DStatszZPageHandlerTest.java44 import io.opencensus.stats.ViewData;
94 private static final ViewData.AggregationWindowData.CumulativeData CUMULATIVE_DATA =
95 ViewData.AggregationWindowData.CumulativeData.create(
97 private static final ViewData VIEW_DATA_1 =
98 ViewData.create(
104 private static final ViewData VIEW_DATA_2 =
105 ViewData.create(
213 private static void assertContainsViewData(OutputStream output, ViewData viewData) { in assertContainsViewData()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableViewData.java45 import io.opencensus.stats.ViewData;
99 abstract ViewData toViewData(Timestamp now, State state); in toViewData()
161 ViewData toViewData(Timestamp now, State state) { in toViewData()
163 return ViewData.create( in toViewData()
166 ViewData.AggregationWindowData.CumulativeData.create(start, now)); in toViewData()
169 return ViewData.create( in toViewData()
172 ViewData.AggregationWindowData.CumulativeData.create(ZERO_TIMESTAMP, ZERO_TIMESTAMP)); in toViewData()
259 ViewData toViewData(Timestamp now, State state) { in toViewData()
262 return ViewData.create( in toViewData()
265 ViewData.AggregationWindowData.IntervalData.create(now)); in toViewData()
[all …]
DViewManagerImpl.java20 import io.opencensus.stats.ViewData;
40 public ViewData getView(View.Name viewName) { in getView()
DStatsManager.java27 import io.opencensus.stats.ViewData;
58 ViewData getView(View.Name viewName) { in getView()
/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/
DPrometheusStatsCollectorTest.java33 import io.opencensus.stats.ViewData;
34 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
82 private static final ViewData VIEW_DATA =
83 ViewData.create(
85 private static final ViewData VIEW_DATA_WITH_LE_TAG_KEY =
86 ViewData.create(
DPrometheusExportUtilsTest.java46 import io.opencensus.stats.ViewData;
47 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
48 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
266 ViewData.create( in createMetricFamilySamples()
278 ViewData.create( in createMetricFamilySamples()
290 ViewData.create( in createMetricFamilySamples()
316 ViewData.create( in createMetricFamilySamples()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DViewManagerImplTest.java50 import io.opencensus.stats.ViewData;
51 import io.opencensus.stats.ViewData.AggregationWindowData;
52 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
53 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
310 ViewData viewData = viewManager.getView(VIEW_NAME); in testRecordCumulative()
485 ViewData viewData1 = viewManager.getView(VIEW_NAME); in getViewDoesNotClearStats()
497 ViewData viewData2 = viewManager.getView(VIEW_NAME); in getViewDoesNotClearStats()
527 ViewData viewData = viewManager.getView(VIEW_NAME); in testRecordCumulativeMultipleTagValues()
572 ViewData viewData1 = viewManager.getView(VIEW_NAME); in testRecordIntervalMultipleTagValues()
591 ViewData viewData2 = viewManager.getView(VIEW_NAME); in testRecordIntervalMultipleTagValues()
[all …]
DStatsRecorderImplTest.java43 import io.opencensus.stats.ViewData;
44 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
99 ViewData viewData = viewManager.getView(VIEW_NAME); in record_CurrentContextNotSet()
126 ViewData viewData = viewManager.getView(VIEW_NAME); in record_CurrentContextSet()
149 ViewData viewData = viewManager.getView(VIEW_NAME); in record_UnregisteredMeasure()
167 ViewData viewData = viewManager.getView(VIEW_NAME); in record_WithAttachments_Distribution()
192 ViewData viewData = viewManager.getView(VIEW_NAME); in record_WithAttachments_DistributionNoHistogram()
207 ViewData viewData = viewManager.getView(VIEW_NAME); in record_WithAttachments_Count()
280 ViewData viewData = viewManager.getView(VIEW_NAME); in recordTwice()
DStatsTestUtil.java38 import io.opencensus.stats.ViewData;
39 import io.opencensus.stats.ViewData.AggregationWindowData;
40 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
41 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
172 static ViewData createEmptyViewData(View view) { in createEmptyViewData()
173 return ViewData.create( in createEmptyViewData()
DMeasureToViewMapTest.java28 import io.opencensus.stats.ViewData;
29 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
63 ViewData viewData = measureToViewMap.getView(VIEW_NAME, clock, State.ENABLED); in testRegisterAndGetView()
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExporterWorkerTest.java50 import io.opencensus.stats.ViewData;
51 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
122 ViewData viewData = in export()
123 ViewData.create( in export()
169 ViewData empty = in doNotExportForEmptyViewData()
170 ViewData.create( in doNotExportForEmptyViewData()
DStackdriverExportUtilsTest.java57 import io.opencensus.stats.ViewData;
58 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData;
59 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData;
482 ViewData viewData = ViewData.create(view, aggregationMap, cumulativeData); in createTimeSeriesList_cumulative()
528 ViewData viewData = in createTimeSeriesList_interval()
529 ViewData.create(view, aggregationMap, IntervalData.create(Timestamp.fromMillis(2000))); in createTimeSeriesList_interval()
553 ViewData viewData = ViewData.create(view, aggregationMap, cumulativeData); in createTimeSeriesList_withCustomMonitoredResource()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DRpczZPageHandler.java89 import io.opencensus.stats.ViewData;
347 ViewData viewData = viewManager.getView(view.getName()); in getStatsSnapshots()
377 ViewData.AggregationWindowData windowData) { in getStats()
400 / getDurationInSecs((ViewData.AggregationWindowData.CumulativeData) windowData); in getStats()
417 / getDurationInSecs((ViewData.AggregationWindowData.CumulativeData) windowData); in getStats()
441 / getDurationInSecs((ViewData.AggregationWindowData.CumulativeData) windowData); in getStats()
447 ViewData.AggregationWindowData.CumulativeData cumulativeData) { in getDurationInSecs()
DStatszZPageHandler.java45 import io.opencensus.stats.ViewData;
175 ViewData viewData = viewManager.getView(current.viewName); in emitHtmlBody()
295 /*@Nullable*/ ViewData viewData, View.Name viewName, PrintWriter out, Formatter formatter) { in emitViewData()
315 View view, ViewData.AggregationWindowData windowData, PrintWriter out, Formatter formatter) { in emitViewInfo()
347 new Function<ViewData.AggregationWindowData.CumulativeData, Void>() { in emitViewInfo()
349 public Void apply(ViewData.AggregationWindowData.CumulativeData arg) { in emitViewInfo()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtils.java59 import io.opencensus.stats.ViewData;
300 @javax.annotation.Nullable ViewData viewData, in createTimeSeriesList()
359 ViewData.AggregationWindowData windowData, in createPoint()
370 ViewData.AggregationWindowData windowData, final Aggregation aggregation) { in createTimeInterval()
372 new Function<ViewData.AggregationWindowData.CumulativeData, TimeInterval>() { in createTimeInterval()
374 public TimeInterval apply(ViewData.AggregationWindowData.CumulativeData arg) { in createTimeInterval()
DStackdriverExporterWorker.java33 import io.opencensus.stats.ViewData;
172 List</*@Nullable*/ ViewData> viewDataList = Lists.newArrayList(); in export()
181 for (/*@Nullable*/ ViewData viewData : viewDataList) { in export()
/external/opencensus-java/exporters/stats/signalfx/src/main/java/io/opencensus/exporter/stats/signalfx/
DSignalFxStatsExporterWorkerThread.java27 import io.opencensus.stats.ViewData;
76 ViewData data = views.getView(view.getName()); in export()
/external/opencensus-java/exporters/stats/signalfx/src/test/java/io/opencensus/exporter/stats/signalfx/
DSignalFxStatsExporterWorkerThreadTest.java40 import io.opencensus.stats.ViewData;
124 ViewData viewData = Mockito.mock(ViewData.class); in setsDatapointsFromViewOnSession()
/external/opencensus-java/contrib/grpc_metrics/src/test/java/io/opencensus/contrib/grpc/metrics/
DRpcViewsTest.java24 import io.opencensus.stats.ViewData;
108 public ViewData getView(View.Name view) { in getView()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/
DQuickStart.java27 import io.opencensus.stats.ViewData;
107 ViewData viewData = viewManager.getView(VIDEO_SIZE_VIEW_NAME); in main()

12