mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
_This PR is the direct-to-`main` replacement for #19096, which merged to a now-defunct feature branch_ ## Addresses #19052 - update config, webhook interfaces, mock - clean up deprecated Sandbox code - implement Activity Feed Automations Modal and associated logic - Also addresses #19284  - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
38 lines
976 B
TypeScript
38 lines
976 B
TypeScript
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
destination_url: PropTypes.string,
|
|
policy_ids: PropTypes.arrayOf(PropTypes.number),
|
|
enable_failing_policies_webhook: PropTypes.bool,
|
|
host_batch_size: PropTypes.number,
|
|
});
|
|
|
|
export interface IWebhookHostStatus {
|
|
enable_host_status_webhook?: boolean;
|
|
destination_url?: string;
|
|
host_percentage?: number;
|
|
days_count?: number;
|
|
}
|
|
export interface IWebhookFailingPolicies {
|
|
destination_url?: string;
|
|
policy_ids?: number[];
|
|
enable_failing_policies_webhook?: boolean;
|
|
host_batch_size?: number;
|
|
}
|
|
|
|
export interface IWebhookSoftwareVulnerabilities {
|
|
destination_url?: string;
|
|
enable_vulnerabilities_webhook?: boolean;
|
|
host_batch_size?: number;
|
|
}
|
|
|
|
export interface IWebhookActivities {
|
|
enable_activities_webhook: boolean;
|
|
destination_url: string;
|
|
}
|
|
|
|
export type IWebhook =
|
|
| IWebhookHostStatus
|
|
| IWebhookFailingPolicies
|
|
| IWebhookSoftwareVulnerabilities
|
|
| IWebhookActivities;
|