Home
last modified time | relevance | path

Searched refs:viewData (Results 1 – 19 of 19) sorted by relevance

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DStatsRecorderImplTest.java99 ViewData viewData = viewManager.getView(VIEW_NAME); in record_CurrentContextNotSet() local
102 assertThat(viewData.getAggregationMap().keySet()) in record_CurrentContextNotSet()
126 ViewData viewData = viewManager.getView(VIEW_NAME); in record_CurrentContextSet() local
129 assertThat(viewData.getAggregationMap().keySet()).containsExactly(Arrays.asList(VALUE)); in record_CurrentContextSet()
149 ViewData viewData = viewManager.getView(VIEW_NAME); in record_UnregisteredMeasure() local
153 viewData.getAggregationMap(), in record_UnregisteredMeasure()
167 ViewData viewData = viewManager.getView(VIEW_NAME); in record_WithAttachments_Distribution() local
168 assertThat(viewData).isNotNull(); in record_WithAttachments_Distribution()
170 (DistributionData) viewData.getAggregationMap().get(Collections.singletonList(VALUE)); in record_WithAttachments_Distribution()
192 ViewData viewData = viewManager.getView(VIEW_NAME); in record_WithAttachments_DistributionNoHistogram() local
[all …]
DMeasureToViewMapTest.java63 ViewData viewData = measureToViewMap.getView(VIEW_NAME, clock, State.ENABLED); in testRegisterAndGetView() local
64 assertThat(viewData.getView()).isEqualTo(VIEW); in testRegisterAndGetView()
65 assertThat(viewData.getWindowData()) in testRegisterAndGetView()
67 assertThat(viewData.getAggregationMap()).isEmpty(); in testRegisterAndGetView()
DViewManagerImplTest.java310 ViewData viewData = viewManager.getView(VIEW_NAME); in testRecordCumulative() local
311 assertThat(viewData.getView()).isEqualTo(view); in testRecordCumulative()
312 assertThat(viewData.getWindowData()) in testRecordCumulative()
315 viewData.getAggregationMap(), in testRecordCumulative()
527 ViewData viewData = viewManager.getView(VIEW_NAME); in testRecordCumulativeMultipleTagValues() local
529 viewData.getAggregationMap(), in testRecordCumulativeMultipleTagValues()
631 ViewData viewData = viewManager.getView(VIEW_NAME); in testRecordWithEmptyStatsContext() local
633 viewData.getAggregationMap(), in testRecordWithEmptyStatsContext()
679 ViewData viewData = viewManager.getView(VIEW_NAME); in testRecordWithTagsThatDoNotMatchViewData() local
681 viewData.getAggregationMap(), in testRecordWithTagsThatDoNotMatchViewData()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DNoopViewManagerTest.java105 ViewData viewData = viewManager.getView(VIEW_NAME); in noopViewManager_GetView_Cumulative() local
106 assertThat(viewData.getView()).isEqualTo(view); in noopViewManager_GetView_Cumulative()
107 assertThat(viewData.getAggregationMap()).isEmpty(); in noopViewManager_GetView_Cumulative()
108 assertThat(viewData.getStart()).isEqualTo(Timestamp.create(0, 0)); in noopViewManager_GetView_Cumulative()
109 assertThat(viewData.getEnd()).isEqualTo(Timestamp.create(0, 0)); in noopViewManager_GetView_Cumulative()
110 assertThat(viewData.getWindowData()) in noopViewManager_GetView_Cumulative()
122 ViewData viewData = viewManager.getView(VIEW_NAME); in noopViewManager_GetView_Interval() local
123 assertThat(viewData.getView()).isEqualTo(view); in noopViewManager_GetView_Interval()
124 assertThat(viewData.getAggregationMap()).isEmpty(); in noopViewManager_GetView_Interval()
125 assertThat(viewData.getWindowData()).isEqualTo(IntervalData.create(Timestamp.create(0, 0))); in noopViewManager_GetView_Interval()
DViewDataTest.java69 ViewData viewData = ViewData.create(view, ENTRIES, windowData); in testCumulativeViewData() local
70 assertThat(viewData.getView()).isEqualTo(view); in testCumulativeViewData()
71 assertThat(viewData.getAggregationMap()).isEqualTo(ENTRIES); in testCumulativeViewData()
72 assertThat(viewData.getWindowData()).isEqualTo(windowData); in testCumulativeViewData()
81 ViewData viewData = ViewData.create(view, ENTRIES, windowData); in testIntervalViewData() local
82 assertThat(viewData.getView()).isEqualTo(view); in testIntervalViewData()
83 assertThat(viewData.getAggregationMap()).isEqualTo(ENTRIES); in testIntervalViewData()
84 assertThat(viewData.getWindowData()).isEqualTo(windowData); in testIntervalViewData()
/external/opencensus-java/exporters/stats/signalfx/src/test/java/io/opencensus/exporter/stats/signalfx/
DSignalFxSessionAdaptorTest.java69 @Mock private ViewData viewData; field in SignalFxSessionAdaptorTest
75 Mockito.when(viewData.getView()).thenReturn(view); in setUp()
158 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); in unsupportedAggregationYieldsNoDatapoints()
166 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); in noAggregationDataYieldsNoDatapoints()
246 Mockito.when(viewData.getAggregationMap()).thenReturn(map); in adaptViewIntoDatapoints()
250 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); in adaptViewIntoDatapoints()
287 Mockito.when(viewData.getAggregationMap()).thenReturn(map); in adaptViewWithEmptyTagValueIntoDatapoints()
291 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); in adaptViewWithEmptyTagValueIntoDatapoints()
DSignalFxStatsExporterWorkerThreadTest.java124 ViewData viewData = Mockito.mock(ViewData.class); in setsDatapointsFromViewOnSession() local
125 Mockito.when(viewData.getView()).thenReturn(view); in setsDatapointsFromViewOnSession()
126 Mockito.when(viewData.getAggregationMap()) in setsDatapointsFromViewOnSession()
132 Mockito.when(viewManager.getView(Mockito.eq(viewName))).thenReturn(viewData); in setsDatapointsFromViewOnSession()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMeasureToViewMap.java132 for (MutableViewData viewData : views) { in getMutableViewData()
133 if (viewData.getView().getName().equals(viewName)) { in getMutableViewData()
134 return viewData; in getMutableViewData()
158 for (MutableViewData viewData : viewDataCollection) { in record()
159 viewData.record( in record()
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/
DPrometheusStatsCollector.java113 ViewData viewData = viewManager.getView(view.getName()); in collect() local
114 if (viewData == null) { in collect()
117 samples.add(PrometheusExportUtils.createMetricFamilySamples(viewData)); in collect()
DPrometheusExportUtils.java101 static MetricFamilySamples createMetricFamilySamples(ViewData viewData) { in createMetricFamilySamples() argument
102 View view = viewData.getView(); in createMetricFamilySamples()
108 viewData.getAggregationMap().entrySet()) { in createMetricFamilySamples()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DStatszZPageHandler.java175 ViewData viewData = viewManager.getView(current.viewName); in emitHtmlBody() local
176 emitViewData(viewData, current.viewName, out, formatter); in emitHtmlBody()
295 /*@Nullable*/ ViewData viewData, View.Name viewName, PrintWriter out, Formatter formatter) { in emitViewData() argument
296 if (viewData == null) { in emitViewData()
300 View view = viewData.getView(); in emitViewData()
301 emitViewInfo(view, viewData.getWindowData(), out, formatter); in emitViewData()
307 viewData.getAggregationMap().entrySet()) { in emitViewData()
DRpczZPageHandler.java347 ViewData viewData = viewManager.getView(view.getName()); in getStatsSnapshots() local
348 if (viewData == null) { in getStatsSnapshots()
352 viewData.getAggregationMap().entrySet()) { in getStatsSnapshots()
367 getStats(snapshot, entry.getValue(), view, viewData.getWindowData()); in getStatsSnapshots()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/
DQuickStart.java107 ViewData viewData = viewManager.getView(VIDEO_SIZE_VIEW_NAME); in main() local
109 String.format("Recorded stats for %s:\n %s", VIDEO_SIZE_VIEW_NAME.asString(), viewData)); in main()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtils.java300 @javax.annotation.Nullable ViewData viewData, in createTimeSeriesList()
304 if (viewData == null) { in createTimeSeriesList()
307 View view = viewData.getView(); in createTimeSeriesList()
321 viewData.getAggregationMap().entrySet()) { in createTimeSeriesList()
325 createPoint(entry.getValue(), viewData.getWindowData(), view.getAggregation())); in createTimeSeriesList()
DStackdriverExporterWorker.java181 for (/*@Nullable*/ ViewData viewData : viewDataList) { in export()
183 StackdriverExportUtils.createTimeSeriesList(viewData, monitoredResource, domain)); in export()
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtilsTest.java482 ViewData viewData = ViewData.create(view, aggregationMap, cumulativeData); in createTimeSeriesList_cumulative() local
485 viewData, DEFAULT_RESOURCE, CUSTOM_OPENCENSUS_DOMAIN); in createTimeSeriesList_cumulative()
528 ViewData viewData = in createTimeSeriesList_interval() local
532 viewData, DEFAULT_RESOURCE, CUSTOM_OPENCENSUS_DOMAIN)) in createTimeSeriesList_interval()
553 ViewData viewData = ViewData.create(view, aggregationMap, cumulativeData); in createTimeSeriesList_withCustomMonitoredResource() local
555 StackdriverExportUtils.createTimeSeriesList(viewData, resource, CUSTOM_OPENCENSUS_DOMAIN); in createTimeSeriesList_withCustomMonitoredResource()
DStackdriverExporterWorkerTest.java122 ViewData viewData = in export() local
128 doReturn(viewData).when(mockViewManager).getView(VIEW_NAME); in export()
148 viewData, DEFAULT_RESOURCE, CUSTOM_OPENCENSUS_DOMAIN); in export()
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/
DStatszZPageHandlerTest.java213 private static void assertContainsViewData(OutputStream output, ViewData viewData) { in assertContainsViewData() argument
214 View view = viewData.getView(); in assertContainsViewData()
239 viewData.getAggregationMap().entrySet()) { in assertContainsViewData()
/external/opencensus-java/
DREADME.md181 ViewData viewData = viewManager.getView(VIDEO_SIZE_VIEW_NAME);
183 String.format("Recorded stats for %s:\n %s", VIDEO_SIZE_VIEW_NAME.asString(), viewData));