My Oracle Support Banner

OSB GetStatistics Via WLST Doesn't Work - AttributeError: 'javainstance' (Doc ID 2760864.1)

Last updated on MARCH 16, 2021

Applies to:

Oracle Service Bus - Version and later
Information in this document applies to any platform.


On : version, OSB Documentation

OSB getStatistics via WLST doesn't work - AttributeError: 'javainstance'

How to use getStatistics for returning Proxy/Business runtime metrics via WLST.
Instruction given in Error In Call GetProxyServiceStatistics On ServiceDomain Inside Wlst Script (Doc ID 2675643.1) doesn't work when replacing getProxyServiceStatistics with getStatistics.
The best way would be to provide a snippet.

My test:
from import ALSBConfigurationMBean
from com.bea.wli.config import Ref
from com.bea.wli.monitoring import ServiceDomainMBean
from com.bea.wli.monitoring import ResourceType
wls:/cbc-osb-dev03/domainRuntime/DomainServices/ServiceDomain> allRefs = alsbCore.getRefs(Ref.DOMAIN)
wls:/cbc-osb-dev03/domainRuntime/DomainServices/ServiceDomain> for ref in allRefs:
... props = cmo.getStatistics([ref],ResourceType.SERVICE.values(),'')
... print props
Traceback (innermost last):
  File "", line 2, in ?
AttributeError: 'javainstance' object has no attribute 'getStatistics'


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.