def METHOD_NAME(self, ns, metrics):
    session = local_session(self.ctx.session_factory)
    client = session.client('monitoring', 'v3', 'projects.timeSeries')
    params = {'name': "projects/{}".format(self.write_metrics_project_id),
              'body': {'timeSeries': metrics}}
    client.execute_command('create', params)