google / google/slo-generator

Allow filtering on specific steps so that when using as a service we can trigger specific steps independently

Open
#244 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
564
Forks
88
PR merge metrics
No merged PRs in 30d

Description

https://github.com/google/slo-generator/blob/dcd2966ed787c925ee7f82ac1e2fe9113a3256d4/slo_generator/compute.py#L67

```
def compute(..., filter_steps=[]):
...
steps = error_budget_policy['steps']
if filter_steps: # filter on input step names
steps= [step for step in steps if step['name'] in filter_steps]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.