son_sp.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:son-cli 作者: sonata-nfv 项目源码 文件源码
def __init__(self, url, vnf_name=None, metric=None, vm_id=None,
                 desc='exported metric from SP', print=True):

        self.vnf_name = vnf_name
        self.metric = metric
        self.vc_id = vm_id #the unique identifier of the vm, used by OpenStack
        self.desc = desc
        self.print = print

        self.metric_received = False
        self.prometheus_metric = None

        websocket.WebSocketApp.__init__(self, url,
                                        on_message=self._on_message,
                                        on_error=self._on_error,
                                        on_close=self._on_close,
                                        on_open=self._on_open
                                        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号