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

bucharest-gold / opossum / 142
98%
master: 100%

Build:
Build:
LAST BUILD BRANCH: 184-run-all-tests-in-browser
DEFAULT BRANCH: master
Ran 08 Mar 2017 06:53PM UTC
Jobs 2
Files 4
Run time 16s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
142

push

travis-ci

lance
feat: circuit status now contains a rolling window

The rolling stats window is configurable in both total time sampled, and
how many snapshots, or buckets, within that time frame.

The new options that can be applied to a circuit breaker are
`rollingCountTimeout` and `rollingCountBuckets`, which default to 10000
and 10, respectively. So by default, the window is a statistical view
over the last 10 seconds, consisting of 10 one second snapshots.

The current circuit breaker status api has not been modified directly,
however the expected results are different. For example, you can still
do this:

```js
console.log(`Failure count: ${circuit.status.failures}`);
```

But that count will consist only of the number of failures within the
current snapshot.

To obtain stats for the entire window, use the `window` property.

```js
const stats = circuit.status.window;
```

This will give you an array containing the statistical sampling for the
entire window. So, given the defaults noted above, by default this will
be a ten element array, with each element containing an object with
sample data that looks something like this:

```js
{
  failures: 11,
  fallbacks: 9,
  successes: 3491,
  rejects: 2,
  fires: 3493,
  timeouts: 0,
  start: 1488999002013
}
```

43 of 48 branches covered (89.58%)

151 of 154 relevant lines covered (98.05%)

41.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 142.1 08 Mar 2017 06:53PM UTC 0
96.04
Travis Job 142.1
2 142.2 08 Mar 2017 06:53PM UTC 0
96.04
Travis Job 142.2
Source Files on build 142
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #142
  • 40fd56d8 on github
  • Next Build on rolling-stats (#144)
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