2023-02-28 20:34:46 +00:00
|
|
|
{
|
|
|
|
|
"kind": "team",
|
|
|
|
|
"apiVersion": "v1",
|
|
|
|
|
"spec": {
|
|
|
|
|
"team": {
|
|
|
|
|
"id": 42,
|
|
|
|
|
"created_at": "1999-03-10T02:45:06.371Z",
|
|
|
|
|
"name": "team1",
|
|
|
|
|
"description": "team1 description",
|
2024-01-22 16:00:02 +00:00
|
|
|
"host_expiry_settings": {
|
|
|
|
|
"host_expiry_enabled": false,
|
|
|
|
|
"host_expiry_window": 0
|
|
|
|
|
},
|
2023-02-28 20:34:46 +00:00
|
|
|
"webhook_settings": {
|
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 18:35:27 +00:00
|
|
|
"host_status_webhook": {
|
|
|
|
|
"enable_host_status_webhook": false,
|
|
|
|
|
"destination_url": "",
|
|
|
|
|
"host_percentage": 0,
|
|
|
|
|
"days_count": 0
|
|
|
|
|
},
|
2023-02-28 20:34:46 +00:00
|
|
|
"failing_policies_webhook": {
|
|
|
|
|
"enable_failing_policies_webhook": false,
|
|
|
|
|
"destination_url": "",
|
|
|
|
|
"policy_ids": null,
|
|
|
|
|
"host_batch_size": 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"integrations": {
|
|
|
|
|
"jira": null,
|
|
|
|
|
"zendesk": null
|
|
|
|
|
},
|
|
|
|
|
"features": {
|
|
|
|
|
"enable_host_users": true,
|
|
|
|
|
"enable_software_inventory": true
|
|
|
|
|
},
|
|
|
|
|
"mdm": {
|
2023-10-06 22:04:33 +00:00
|
|
|
"enable_disk_encryption": false,
|
2023-02-28 20:34:46 +00:00
|
|
|
"macos_updates": {
|
2023-06-06 18:31:33 +00:00
|
|
|
"minimum_version": null,
|
|
|
|
|
"deadline": null
|
2023-02-28 20:34:46 +00:00
|
|
|
},
|
2023-11-29 16:07:24 +00:00
|
|
|
"windows_updates": {
|
|
|
|
|
"deadline_days": null,
|
|
|
|
|
"grace_period_days": null
|
|
|
|
|
},
|
2023-02-28 20:34:46 +00:00
|
|
|
"macos_settings": {
|
2023-10-06 22:04:33 +00:00
|
|
|
"custom_settings": null
|
2023-04-07 20:31:02 +00:00
|
|
|
},
|
|
|
|
|
"macos_setup": {
|
2023-04-26 21:09:21 +00:00
|
|
|
"bootstrap_package": null,
|
2023-05-10 20:22:08 +00:00
|
|
|
"enable_end_user_authentication": false,
|
2023-04-25 13:36:01 +00:00
|
|
|
"macos_setup_assistant": null
|
2023-11-29 14:32:42 +00:00
|
|
|
},
|
|
|
|
|
"windows_settings": {
|
|
|
|
|
"custom_settings": null
|
2023-02-28 20:34:46 +00:00
|
|
|
}
|
|
|
|
|
},
|
2023-10-10 22:00:45 +00:00
|
|
|
"scripts": null,
|
2023-02-28 20:34:46 +00:00
|
|
|
"user_count": 99,
|
|
|
|
|
"host_count": 42
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
"kind": "team",
|
|
|
|
|
"apiVersion": "v1",
|
|
|
|
|
"spec": {
|
|
|
|
|
"team": {
|
|
|
|
|
"id": 43,
|
|
|
|
|
"created_at": "1999-03-10T02:45:06.371Z",
|
|
|
|
|
"name": "team2",
|
|
|
|
|
"description": "team2 description",
|
|
|
|
|
"agent_options": {
|
|
|
|
|
"config": {
|
|
|
|
|
"foo": "bar"
|
|
|
|
|
},
|
|
|
|
|
"overrides": {
|
|
|
|
|
"platforms": {
|
|
|
|
|
"darwin": {
|
|
|
|
|
"foo": "override"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-22 16:00:02 +00:00
|
|
|
"host_expiry_settings": {
|
|
|
|
|
"host_expiry_enabled": true,
|
|
|
|
|
"host_expiry_window": 15
|
|
|
|
|
},
|
2023-02-28 20:34:46 +00:00
|
|
|
"webhook_settings": {
|
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 18:35:27 +00:00
|
|
|
"host_status_webhook": {
|
|
|
|
|
"enable_host_status_webhook": false,
|
|
|
|
|
"destination_url": "",
|
|
|
|
|
"host_percentage": 0,
|
|
|
|
|
"days_count": 0
|
|
|
|
|
},
|
2023-02-28 20:34:46 +00:00
|
|
|
"failing_policies_webhook": {
|
|
|
|
|
"enable_failing_policies_webhook": false,
|
|
|
|
|
"destination_url": "",
|
|
|
|
|
"policy_ids": null,
|
|
|
|
|
"host_batch_size": 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"integrations": {
|
|
|
|
|
"jira": null,
|
|
|
|
|
"zendesk": null
|
|
|
|
|
},
|
|
|
|
|
"features": {
|
|
|
|
|
"enable_host_users": false,
|
|
|
|
|
"enable_software_inventory": false,
|
|
|
|
|
"additional_queries": {
|
|
|
|
|
"foo": "bar"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"mdm": {
|
2023-10-06 22:04:33 +00:00
|
|
|
"enable_disk_encryption": false,
|
2023-02-28 20:34:46 +00:00
|
|
|
"macos_updates": {
|
|
|
|
|
"minimum_version": "12.3.1",
|
|
|
|
|
"deadline": "2021-12-14"
|
|
|
|
|
},
|
2023-11-29 16:07:24 +00:00
|
|
|
"windows_updates": {
|
|
|
|
|
"deadline_days": 7,
|
|
|
|
|
"grace_period_days": 3
|
|
|
|
|
},
|
2023-02-28 20:34:46 +00:00
|
|
|
"macos_settings": {
|
2023-10-06 22:04:33 +00:00
|
|
|
"custom_settings": null
|
2023-04-07 20:31:02 +00:00
|
|
|
},
|
|
|
|
|
"macos_setup": {
|
2023-04-26 21:09:21 +00:00
|
|
|
"bootstrap_package": null,
|
2023-05-10 20:22:08 +00:00
|
|
|
"enable_end_user_authentication": false,
|
2023-04-25 13:36:01 +00:00
|
|
|
"macos_setup_assistant": null
|
2023-11-29 14:32:42 +00:00
|
|
|
},
|
|
|
|
|
"windows_settings": {
|
|
|
|
|
"custom_settings": null
|
2023-02-28 20:34:46 +00:00
|
|
|
}
|
|
|
|
|
},
|
2023-10-10 22:00:45 +00:00
|
|
|
"scripts": null,
|
2023-02-28 20:34:46 +00:00
|
|
|
"user_count": 87,
|
|
|
|
|
"host_count": 43
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|