Exemple #1
0
    def params(self):
        """Returns a sample event of this entity.

        :return: a sample event of this entity
        :rtype: dict
        """
        dynamic_vals = generate_vals(self.param_specs)
        if self.static_vals:
            return merge_vals(dynamic_vals, self.static_vals)
        else:
            return dynamic_vals
Exemple #2
0
    def params(self):
        """Returns a sample event of this entity.

        :return: a sample event of this entity
        :rtype: dict
        """
        dynamic_vals = generate_vals(self.param_specs)
        if self.static_vals:
            return merge_vals(dynamic_vals, self.static_vals)
        else:
            return dynamic_vals
def combine_data(static_info_re, mapping_info, external_info):
    if external_info:
        mapping_info = utils.merge_vals(mapping_info, external_info)
    static_info = utils.generate_vals(static_info_re)
    return utils.merge_vals(static_info, mapping_info)
def combine_data(static_info_re, mapping_info, external_info):
    if external_info:
        mapping_info = utils.merge_vals(mapping_info, external_info)
    static_info = utils.generate_vals(static_info_re)
    return utils.merge_vals(static_info, mapping_info)