yandextank/plugins/InfluxUploader/decoder.py
def __make_points_for_label(self, ts, data, label, prefix, gun_stats):
        """x
        Make a set of points for `this` label

        overall_quantiles, overall_meta, net_codes, proto_codes, histograms
        """
        label_points = list()

        label_points.extend(
            (
                # overall quantiles for label
                self.__make_points(
                    prefix + "overall_quantiles",
                    {"label": label},
                    ts,
                    self.__make_quantile_fields(data)
                ),
                # overall meta (gun status) for label
                self.__make_points(
                    prefix + "overall_meta",
                    {"label": label},
                    ts,
                    self.__make_overall_meta_fields(data, gun_stats)
                ),
                # net codes for label
                self.__make_points(
                    prefix + "net_codes",
                    {"label": label},
                    ts,
                    self.__make_netcodes_fields(data)
                ),
                # proto codes for label
                self.__make_points(
                    prefix + "proto_codes",
                    {"label": label},
                    ts,
                    self.__make_protocodes_fields(data)
                )
            )
        )
        # histograms, one row for each bin
        if self.histograms:
            for bin_, count in zip(data["interval_real"]["hist"]["bins"],
                                   data["interval_real"]["hist"]["data"]):
                label_points.append(
                    self.__make_points(
                        prefix + "histograms",
                        {"label": label},
                        ts,
                        {"bin": bin_, "count": count}
                    )
                )
        return label_points
def __make_points_for_label(self, ts, data, label, prefix, gun_stats):
        label_points = list()

        label_points.extend(
            (
                # overall quantiles for label
                self.__make_points(
                    prefix + "overall_quantiles",
                    {"label": label},
                    ts,
                    self.__make_quantile_fields(data)
                ),
                # overall meta (gun status) for label
                self.__make_points(
                    prefix + "overall_meta",
                    {"label": label},
                    ts,
                    self.__make_overall_meta_fields(data, gun_stats)
                ),
                # net codes for label
                self.__make_points(
                    prefix + "net_codes",
                    {"label": label},
                    ts,
                    self.__make_netcodes_fields(data)
                ),
                # proto codes for label
                self.__make_points(
                    prefix + "proto_codes",
                    {"label": label},
                    ts,
                    self.__make_protocodes_fields(data)
                )
            )
        )
        # histograms, one row for each bin
        if self.histograms:
            for bin_, count in zip(data["interval_real"]["hist"]["bins"],
                                   data["interval_real"]["hist"]["data"]):
                label_points.append(
                    self.__make_points(
                        prefix + "histograms",
                        {"label": label},
                        ts,
                        {"bin": bin_, "count": count}
                    )
                )
        return label_points
def __make_points_for_label ( self , ts , data , label , prefix , gun_stats ) : label_points = list ( ) label_points . extend ( ( # overall quantiles for label self . __make_points ( prefix + "overall_quantiles" , { "label" : label } , ts , self . __make_quantile_fields ( data ) ) , # overall meta (gun status) for label self . __make_points ( prefix + "overall_meta" , { "label" : label } , ts , self . __make_overall_meta_fields ( data , gun_stats ) ) , # net codes for label self . __make_points ( prefix + "net_codes" , { "label" : label } , ts , self . __make_netcodes_fields ( data ) ) , # proto codes for label self . __make_points ( prefix + "proto_codes" , { "label" : label } , ts , self . __make_protocodes_fields ( data ) ) ) ) # histograms, one row for each bin if self . histograms : for bin_ , count in zip ( data [ "interval_real" ] [ "hist" ] [ "bins" ] , data [ "interval_real" ] [ "hist" ] [ "data" ] ) : label_points . append ( self . __make_points ( prefix + "histograms" , { "label" : label } , ts , { "bin" : bin_ , "count" : count } ) ) return label_points
x
        Make a set of points for `this` label

        overall_quantiles, overall_meta, net_codes, proto_codes, histograms
x Make a set of points for this label