def map_for_scenario(self, context_obj):
        scenario_ctx = {}
        for key, value in six.iteritems(context_obj):
            if key not in ["users", "tenants"]:
                scenario_ctx[key] = value

        user = random.choice(context_obj["users"])
        tenant = context_obj["tenants"][user["tenant_id"]]
        scenario_ctx["user"], scenario_ctx["tenant"] = user, tenant

        return scenario_ctx
Flush all metrics up to the given timestamp.
dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/context/keystone/users.py/UserContextMixin.map_for_scenario--crossover with--dataset/ETHPy150Open DataDog/datadogpy/datadog/threadstats/metrics.py/Metric.flush