Beispiel #1
0
def define_chart_at(params=None, id=1, name=None, level='F', jtype='B'):
    if params is None or name is None:
        return
    descr = 'Level ' + getleveltext(level=level, jtype=jtype) + ' job average throughput'
    url = reverse('statsavgdata_rel', args=[name, level])
    params.append({
        'id': id,
        'descr': descr,
        'box': 'box-primary',
        'chart': 1,
        'level': level,
        'url': url,
        'unit': 3,
    })
Beispiel #2
0
def define_chart_tr(params=None, id=1, name=None, level='F', jtype='B'):
    if params is None or name is None:
        return
    if level == 'A':
        descr = name + ' job time running'
    else:
        descr = 'Level ' + getleveltext(level=level, jtype=jtype) + ' job time running'
    url = reverse('statstimedata_rel', args=[name, level])
    params.append({
        'id': id,
        'descr': descr,
        'box': 'box-primary',
        'chart': 1,
        'level': level,
        'url': url,
        'unit': 2,
    })