Functions
first(iterable)
Overview
Development
Deployment
- Configuration
- Authentication
- Provision
- Secret Manager
- Docker
- Kubernetes
- AWS ECS
- Specifications
Providers
- Overview
- Fingerprints
- Adding a New Provider
- Getting Started
- What is a Provider?
- Supported Providers
Workflows
Keep API
- GETRoot
- providers
- actions
- healthcheck
- topology
- alerts
- deduplications
- maintenance
- incidents
- settings
- workflows
- whoami
- pusher
- status
- rules
- preset
- enrichment
- auth
- metrics
- users
- groups
- mappings
- dashboard
- tags
Keep CLI
Functions
first(iterable)
Input
An iterable.
Output
The first item of the iterable.
Example
actions:
- name: keep-slack
foreach: "{{steps.this.results}}"
condition:
- type: threshold
value: "keep.first(keep.split({{ foreach.value }}, ' '))"
# each line looks like:
# ' 64 2023-02-09 20:08:16,773 INFO: uvicorn.access -: 127.0.0.1:53948 - "GET /test2 HTTP/1.1" 503 Service Unavailable'
# where the "64" is the number of the
compare_to: 70