class_docstr: Collector represents the Prometheus Collector object
class_docstr_tok: ["Collector","represents","the","Prometheus","Collector","object"]
docstr: Add view data object to be sent to server
docstr_tok: ["Add","view","data","object","to","be","sent","to","server"]
code: def add_view_data(self, view_data):
      """Add view data object to be sent to server"""
      self.register_view(view_data.view)
      v_name = get_view_name(self.options.namespace, view_data.view)
      self.view_name_to_data_map[v_name] = view_data
  
imports: import re
  from prometheus_client import start_http_server
  from prometheus_client.core import REGISTRY, CounterMetricFamily, GaugeMetricFamily, HistogramMetricFamily, UnknownMetricFamily
  from opencensus.common.transports import sync
  from opencensus.stats import aggregation_data
  from opencensus.stats import base_exporter
  import logging
label_desc: Use image node_id 7 for calling the Collector obj's underlying member method code with example usage: obj.add_view_data(view_data) without return types