import { DefaultClient, QueryArguments, AKResponse } from "./Client"; import { Group } from "./Groups"; export class Rule { pk: string; name: string; transports: string[]; severity: string; group?: Group; constructor() { throw Error(); } static get(pk: string): Promise { return DefaultClient.fetch(["events", "rules", pk]); } static list(filter?: QueryArguments): Promise> { return DefaultClient.fetch>(["events", "rules"], filter); } static adminUrl(rest: string): string { return `/administration/events/rules/${rest}`; } }