• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

statuscompliance / status-backend / 14488758623

16 Apr 2025 08:56AM UTC coverage: 30.374% (+1.4%) from 29.023%
14488758623

push

github

web-flow
test(utils): added scopeUtilities (#134)

147 of 606 branches covered (24.26%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

479 of 1455 relevant lines covered (32.92%)

3.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/utils/gaugeStructure.js
1
const gaugeStructure = {
1✔
UNCOV
2
  datasource: {
×
3
    default: true,
4
    type: 'mysql',
5
    uid: 'P5E4ECD82955BB660',
6
  },
7
  description: '',
8
  fieldConfig: {
9
    defaults: {
10
      color: {
11
        mode: 'thresholds',
12
      },
13
      custom: {
14
        neutral: 0,
15
      },
16
      decimals: 1,
17
      displayName: 'Control name',
18
      mappings: [],
19
      max: 100,
20
      min: 0,
21
      thresholds: {
22
        mode: 'percentage',
23
        steps: [
24
          {
25
            color: 'red',
26
            value: null,
27
          },
28
          {
29
            color: 'orange',
30
            value: 50,
31
          },
32
          {
33
            color: 'yellow',
34
            value: 70,
35
          },
36
          {
37
            color: 'green',
38
            value: 80,
39
          },
40
        ],
41
      },
42
    },
43
    overrides: [],
44
  },
45
  gridPos: {
46
    h: 8,
47
    w: 12,
48
    x: 0,
49
    y: 0,
50
  },
51
  id: 1,
52
  options: {
53
    minVizHeight: 75,
54
    minVizWidth: 75,
55
    orientation: 'auto',
56
    reduceOptions: {
57
      calcs: ['lastNotNull'],
58
      fields: '',
59
      values: false,
60
    },
61
    showThresholdLabels: true,
62
    showThresholdMarkers: true,
63
    sizing: 'auto',
64
    text: {},
65
  },
66
  pluginVersion: '11.2.1',
67
  targets: [
68
    {
69
      dataset: 'statusdb',
70
      datasource: {
71
        type: 'mysql',
72
        uid: 'P5E4ECD82955BB660',
73
      },
74
      editorMode: 'builder',
75
      format: 'table',
76
      rawQuery: true,
77
      rawSql: 'SELECT COUNT(`limit`) FROM statusdb.Configurations WHERE `limit` = 1 LIMIT 50 ',
78
      refId: 'A',
79
      sql: {
80
        columns: [
81
          {
82
            name: 'COUNT',
83
            parameters: [
84
              {
85
                name: '`limit`',
86
                type: 'functionParameter',
87
              },
88
            ],
89
            type: 'function',
90
          },
91
        ],
92
        groupBy: [],
93
        limit: 50,
94
        whereJsonTree: {
95
          children1: [
96
            {
97
              id: 'aabbbb8b-0123-4456-b89a-b192488a102c',
98
              properties: {
99
                field: '`limit`',
100
                fieldSrc: 'field',
101
                operator: 'equal',
102
                value: [1],
103
                valueError: [null],
104
                valueSrc: ['value'],
105
                valueType: ['number'],
106
              },
107
              type: 'rule',
108
            },
109
          ],
110
          id: '998a889b-0123-4456-b89a-b1924882e862',
111
          properties: {
112
            conjunction: 'AND',
113
          },
114
          type: 'group',
115
        },
116
        whereString: '`limit` = 1',
117
      },
118
      table: 'Configurations',
119
    },
120
  ],
121
  title: 'Panel Title',
122
  type: 'gauge',
123
};
124

125
export default gaugeStructure;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc