fleet/server/webhooks
Victor Lyuboslavsky 592a7450e3
Enabling setting host status webhook at the team level via REST API and fleetctl apply/gitops. (#17186)
Enabling setting host status webhook at the team level via REST API and
fleetctl apply/gitops.
#14916

Example payload:
```json
{
    "data": {
        "days_unseen": 3,
        "host_ids": [
            10724,
            10726,
            10738,
            10739,
            10740,
            10741,
            10742,
            10744,
            10745,
            10746,
            10747,
            10748,
            10749
        ],
        "team_id": 3,
        "total_hosts": 15,
        "unseen_hosts": 13
    },
    "text": "More than 86.67% of your hosts have not checked into Fleet for more than 3 days. You've been sent this message because the Host status webhook is enabled in your Fleet instance."
}
```

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-03-04 12:35:27 -06:00
..
failing_policies.go Mask secret query params when logging url error (#12980) 2023-07-26 16:40:58 -05:00
failing_policies_test.go Added host_count_updated_at to policy API responses. (#15767) 2023-12-27 15:24:27 -06:00
host_status.go Enabling setting host status webhook at the team level via REST API and fleetctl apply/gitops. (#17186) 2024-03-04 12:35:27 -06:00
host_status_test.go Enabling setting host status webhook at the team level via REST API and fleetctl apply/gitops. (#17186) 2024-03-04 12:35:27 -06:00
mapper.go Feature 10196: Add filepath to end-points and third party integrations (#11285) 2023-05-17 16:53:15 -04:00
mapper_test.go Feature 10196: Add filepath to end-points and third party integrations (#11285) 2023-05-17 16:53:15 -04:00
vuln_args.go Feature 7559: Include 3rd party severity scores in the vulnerability web-hook payload (#7581) 2022-09-06 15:12:17 -04:00
vulnerabilities.go Feature 10196: Add filepath to end-points and third party integrations (#11285) 2023-05-17 16:53:15 -04:00
vulnerabilities_test.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00