本文整理汇总了Python中zmon_worker_monitor.adapters.ifunctionfactory_plugin.propartial函数的典型用法代码示例。如果您正苦于以下问题:Python propartial函数的具体用法?Python propartial怎么用?Python propartial使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了propartial函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(SAMLWrapper, url=self.saml_url, user=self.username, password=self.__password)
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:7,代码来源:saml.py
示例2: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(ElasticsearchWrapper, url=self._url)
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:7,代码来源:elasticsearch.py
示例3: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(MongoDBWrapper, host=factory_ctx.get('host'))
开发者ID:alfre2v,项目名称:zmon-worker,代码行数:7,代码来源:mongodb.py
示例4: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(ScalyrWrapper, read_key=self.read_key, scalyr_region=self.scalyr_region)
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:7,代码来源:scalyr.py
示例5: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(CloudwatchWrapper, region=factory_ctx.get('entity').get('region', None))
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:7,代码来源:cloudwatch.py
示例6: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(ZmonWrapper, factory_ctx['redis_host'], factory_ctx['redis_port'])
开发者ID:alfre2v,项目名称:zmon-worker,代码行数:7,代码来源:zmon_.py
示例7: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(JoblocksWrapper, cmdb_url=self.cmdb_url, project=factory_ctx['entity'].get('name'))
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:7,代码来源:joblocks.py
示例8: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(ExaplusWrapper, cluster=self._exacrm_cluster, password=self._exacrm_pass,
user=self._exacrm_user)
开发者ID:porrl,项目名称:zmon-worker,代码行数:8,代码来源:exasol.py
示例9: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(SqlOracleWrapper, factory_ctx['host'], factory_ctx['port'], factory_ctx['entity'].get('sid'),
user=self._user, password=self._pass)
开发者ID:nabcos,项目名称:zmon-worker,代码行数:8,代码来源:sql_oracle.py
示例10: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(MySqlWrapper, shards=factory_ctx['shards'], user=self._user, password=self._pass,
timeout=factory_ctx['soft_time_limit'] * 1000)
开发者ID:alfre2v,项目名称:zmon-worker,代码行数:8,代码来源:sql_mysql.py
示例11: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(CounterWrapper, key_prefix='{}:{}:'.format(factory_ctx['check_id'], factory_ctx['entity_id']),
redis_host=factory_ctx['redis_host'], redis_port=factory_ctx['redis_port'])
开发者ID:alfre2v,项目名称:zmon-worker,代码行数:8,代码来源:counter.py
示例12: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
seeds = factory_ctx.get('entity', {}).get('seeds') or factory_ctx.get('host')
return propartial(CassandraWrapper, node=seeds, username=self._username, password=self._password)
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:9,代码来源:cassandra_wrapper.py
示例13: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(
AppdynamicsWrapper, url=self._url, username=self._user, password=self._pass, es_url=self._es_url,
index_prefix=self._index_prefix)
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:9,代码来源:appdynamics.py
示例14: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(EntitiesWrapper,
infrastructure_account=factory_ctx.get('entity', {}).get('infrastructure_account', None),
service_url=self.service_url, oauth2=self.oauth2)
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:10,代码来源:entities_wrapper.py
示例15: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
# load plugins dependencies and store them locally for efficiency
if not self.counter_factory:
self.counter_factory = plugin_manager.get_plugin_obj_by_name('counter', 'Function')
return propartial(MemcachedWrapper, counter=self.counter_factory.create(factory_ctx), host=factory_ctx['host'])
开发者ID:drummerwolli,项目名称:zmon-worker,代码行数:10,代码来源:memcached.py
示例16: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
if not self.counter_factory:
self.counter_factory = plugin_manager.get_plugin_obj_by_name('counter', 'Function')
return propartial(LdapWrapper, user=self._ldapuser, password=self._ldappass, host=factory_ctx['host'],
counter=self.counter_factory.create(factory_ctx))
开发者ID:nabcos,项目名称:zmon-worker,代码行数:11,代码来源:checkldap.py
示例17: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(JmxWrapper,
jmxqueryhost=self._jmxquery_host,
jmxqueryport=self._jmxquery_port,
host=factory_ctx['host'],
port=factory_ctx['jmx_port'])
开发者ID:alfre2v,项目名称:zmon-worker,代码行数:11,代码来源:jmx.py
示例18: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(HistoryWrapper,
kairosdb_host=self.kairosdb_host,
kairosdb_port=self.kairosdb_port,
history_enabled=self.kairosdb_history_enabled,
check_id=factory_ctx['check_id'],
entities=factory_ctx['entity_id_for_kairos'])
开发者ID:porrl,项目名称:zmon-worker,代码行数:12,代码来源:history.py
示例19: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
# load plugins dependencies and store them locally for efficiency
if not self.http_factory:
self.http_factory = plugin_manager.get_plugin_obj_by_name('http', 'Function')
return propartial(EventLogWrapper,
http_wrapper=self.http_factory.create(factory_ctx),
url=self.eventlog_url)
开发者ID:alfre2v,项目名称:zmon-worker,代码行数:14,代码来源:eventlog.py
示例20: create
def create(self, factory_ctx):
"""
Automatically called to create the check function's object
:param factory_ctx: (dict) names available for Function instantiation
:return: an object that implements a check function
"""
return propartial(NagiosWrapper,
factory_ctx['host'],
exasol_user=self._exarpc_user,
exasol_password=self._exarpc_pass,
lounge_mysql_user=self._loungemysql_user,
lounge_mysql_password=self._loungemysql_pass,
hetcrawler_proxy_user=self._hetcrawler_proxy_user,
hetcrawler_proxy_pass=self._hetcrawler_proxy_pass)
开发者ID:porrl,项目名称:zmon-worker,代码行数:14,代码来源:nagios.py
注:本文中的zmon_worker_monitor.adapters.ifunctionfactory_plugin.propartial函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论