2021-12-28 18:07:18 +00:00
|
|
|
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,
|
|
|
|
});
|
|
|
|
|
2022-02-05 00:48:35 +00:00
|
|
|
export interface IWebhookHostStatus {
|
|
|
|
enable_host_status_webhook?: boolean;
|
|
|
|
destination_url?: string;
|
|
|
|
host_percentage?: number;
|
|
|
|
days_count?: number;
|
|
|
|
}
|
2021-12-28 18:07:18 +00:00
|
|
|
export interface IWebhookFailingPolicies {
|
|
|
|
destination_url?: string;
|
|
|
|
policy_ids?: number[];
|
|
|
|
enable_failing_policies_webhook?: boolean;
|
|
|
|
host_batch_size?: number;
|
|
|
|
}
|
2022-02-05 00:48:35 +00:00
|
|
|
|
|
|
|
export interface IWebhookSoftwareVulnerabilities {
|
|
|
|
destination_url?: string;
|
|
|
|
enable_vulnerabilities_webhook?: boolean;
|
|
|
|
host_batch_size?: number;
|
|
|
|
}
|
2022-06-10 18:29:45 +00:00
|
|
|
|
|
|
|
export type IWebhook =
|
|
|
|
| IWebhookHostStatus
|
|
|
|
| IWebhookFailingPolicies
|
|
|
|
| IWebhookSoftwareVulnerabilities;
|