(self, version)
return {
            'descriptors': [],
            'metrics': self.archiver_metrics,
            'query': "select {metrics_columns} FROM pg_stat_archiver",
            'relation': False,
        }
Use COMMON_ARCHIVER_METRICS to read from pg_stat_archiver as
        defined in 9.4 (first version to have this table).
        Uses a dictionary to save the result for each instance
Use COMMON_ARCHIVER_METRICS to read from pg_stat_archiver as
        defined in 9.4 (first version to have this table).
        Uses a dictionary to save the result for each instance
Use COMMON_ARCHIVER_METRICS to read from pg_stat_archiver as defined in 9 . 4 ( first version to have this table ) . Uses a dictionary to save the result for each instance
def get_archiver_metrics(self, version):
        """Use COMMON_ARCHIVER_METRICS to read from pg_stat_archiver as
        defined in 9.4 (first version to have this table).
        Uses a dictionary to save the result for each instance
        """
        # While there's only one set for now, prepare for future additions to
        # the table, mirroring get_bgw_metrics()
        if self.archiver_metrics is None and version >= V9_4:
            self.archiver_metrics = dict(COMMON_ARCHIVER_METRICS)

        if not self.archiver_metrics:
            return None

        return {
            'descriptors': [],
            'metrics': self.archiver_metrics,
            'query': "select {metrics_columns} FROM pg_stat_archiver",
            'relation': False,
        }
def get_archiver_metrics ( self , version ) : # While there's only one set for now, prepare for future additions to # the table, mirroring get_bgw_metrics() if self . archiver_metrics is None and version >= V9_4 : self . archiver_metrics = dict ( COMMON_ARCHIVER_METRICS ) if not self . archiver_metrics : return None return { 'descriptors' : [ ] , 'metrics' : self . archiver_metrics , 'query' : "select {metrics_columns} FROM pg_stat_archiver" , 'relation' : False , }