Пример #1
0
 def process_options(self):
     self.no_args()
     self.host = self.get_opt('host')
     self.port = self.get_opt('port')
     validate_host(self.host)
     validate_port(self.port)
     self.precision = self.get_opt('precision')
     self.list_tables = self.get_opt('list')
     if not self.list_tables:
         self.table = self.get_opt('table')
         validate_hbase_table(self.table, 'hbase')
     self.validate_thresholds(min=1)
     log_option('unique row', self.row)
     log_option('unique column qualifier', self.column)
     log_option('unique generated value', self.value)
     validate_int(self.precision, 'precision', 0, 10)
 def process_options(self):
     self.no_args()
     self.host = self.get_opt('host')
     self.port = self.get_opt('port')
     validate_host(self.host)
     validate_port(self.port)
     self.precision = self.get_opt('precision')
     self.list_tables = self.get_opt('list')
     if not self.list_tables:
         self.table = self.get_opt('table')
         validate_hbase_table(self.table, 'hbase')
     self.validate_thresholds(min=1)
     log_option('unique row', self.row)
     log_option('unique column qualifier', self.column)
     log_option('unique generated value', self.value)
     validate_int(self.precision, 'precision', 0, 10)
 def process_options(self):
     self.no_args()
     self.host = self.get_opt('host')
     self.port = self.get_opt('port')
     self.row = self.get_opt('row')
     self.column = self.get_opt('column')
     self.regex = self.get_opt('expected')
     self.precision = self.get_opt('precision')
     self.graph = self.get_opt('graph')
     self.units = self.get_opt('units')
     validate_host(self.host)
     validate_port(self.port)
     self.list_tables = self.get_opt('list')
     if not self.list_tables:
         self.table = self.get_opt('table')
         validate_hbase_table(self.table, 'hbase')
         validate_hbase_rowkey(self.row)
         validate_hbase_column_qualifier(self.column)
     if self.regex is not None:
         validate_regex('expected value', self.regex)
     if self.units is not None:
         validate_units(self.units)
     self.validate_thresholds(optional=True, positive=False)
     validate_int(self.precision, 'precision', 0, 10)
Пример #4
0
 def process_options(self):
     self.no_args()
     self.host = self.get_opt('host')
     self.port = self.get_opt('port')
     self.row = self.get_opt('row')
     self.column = self.get_opt('column')
     self.regex = self.get_opt('expected')
     self.precision = self.get_opt('precision')
     self.graph = self.get_opt('graph')
     self.units = self.get_opt('units')
     validate_host(self.host)
     validate_port(self.port)
     self.list_tables = self.get_opt('list')
     if not self.list_tables:
         self.table = self.get_opt('table')
         validate_hbase_table(self.table, 'hbase')
         validate_hbase_rowkey(self.row)
         validate_hbase_column_qualifier(self.column)
     if self.regex is not None:
         validate_regex('expected value', self.regex)
     if self.units is not None:
         validate_units(self.units)
     self.validate_thresholds(optional=True, positive=False)
     validate_int(self.precision, 'precision', 0, 10)