juju/client/_client1.py
async def CleanupOldMetrics(self, entities=None):
        '''
        CleanupOldMetrics removes old metrics from the collection.
        The single arg params is expected to contain and model uuid.
        Even though the call will delete all metrics across models
        it serves to validate that the connection has access to at least one model.

        entities : typing.Sequence[~Entity]
        Returns -> ErrorResults
        '''
        if entities is not None and not isinstance(entities, (bytes, str, list)):
            raise Exception("Expected entities to be a Sequence, received: {}".format(type(entities)))

        # map input types to rpc msg
        _params = dict()
        msg = dict(type='MetricsManager',
                   request='CleanupOldMetrics',
                   version=1,
                   params=_params)
        _params['entities'] = entities
        reply = await self.rpc(msg)
        return reply

        CleanupOldMetrics removes old metrics from the collection.
        The single arg params is expected to contain and model uuid.
        Even though the call will delete all metrics across models
        it serves to validate that the connection has access to at least one model.

        entities : typing.Sequence[~Entity]
        Returns -> ErrorResults
        
CleanupOldMetrics removes old metrics from the collection.
The single arg params is expected to contain and model uuid.
Even though the call will delete all metrics across models
it serves to validate that the connection has access to at least one model.

entities : typing.Sequence[~Entity]
Returns -> ErrorResults
CleanupOldMetrics removes old metrics from the collection . The single arg params is expected to contain and model uuid . Even though the call will delete all metrics across models it serves to validate that the connection has access to at least one model . entities : typing . Sequence [ ~Entity ] Returns - > ErrorResults
async def CleanupOldMetrics(self, entities=None):
        if entities is not None and not isinstance(entities, (bytes, str, list)):
            raise Exception("Expected entities to be a Sequence, received: {}".format(type(entities)))
        _params = dict()
        msg = dict(type='MetricsManager',
                   request='CleanupOldMetrics',
                   version=1,
                   params=_params)
        _params['entities'] = entities
        reply = await self.rpc(msg)
        return reply
async def CleanupOldMetrics ( self , entities = None ) : if entities is not None and not isinstance ( entities , ( bytes , str , list ) ) : raise Exception ( "Expected entities to be a Sequence, received: {}" . format ( type ( entities ) ) ) _params = dict ( ) msg = dict ( type = 'MetricsManager' , request = 'CleanupOldMetrics' , version = 1 , params = _params ) _params [ 'entities' ] = entities reply = await self . rpc ( msg ) return reply
CleanupOldMetrics removes old metrics from the collection.
CleanupOldMetrics removes old metrics from the collection .
'''
        CleanupOldMetrics removes old metrics from the collection.
        The single arg params is expected to contain and model uuid.
        Even though the call will delete all metrics across models
        it serves to validate that the connection has access to at least one model.

        entities : typing.Sequence[~Entity]
        Returns -> ErrorResults
        ''' # map input types to rpc msg
self
entities