Skip to content

Commit

Permalink
Merge pull request #121 from tago-io/SRV-507_Usage_Action
Browse files Browse the repository at this point in the history
SRV-507 Add Action Resource for Usage Alert
  • Loading branch information
FabianoEger authored Sep 24, 2024
2 parents 7abb7b0 + e5fbc6f commit 70bdbac
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/modules/Resources/actions.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GenericID, Conditionals, TagsObj, Query, ExpireTimeOption } from "../../common/common.types";

type ActionType = "condition" | "resource" | "interval" | "schedule" | "mqtt_topic";
type ActionType = "condition" | "resource" | "interval" | "schedule" | "mqtt_topic" | "usage_alert";

type ActionTypeParams =
| {
Expand Down Expand Up @@ -63,6 +63,26 @@ type ActionTriggerType =
second_value?: string;
value_type: "string" | "number" | "boolean" | "*";
unlock?: boolean;
}
| {
service_or_resource:
| "input"
| "output"
| "analysis"
| "data_records"
| "sms"
| "email"
| "run_users"
| "push_notification"
| "file_storage"
| "device"
| "dashboard"
| "action"
| "tcore"
| "team_members"
| "am";
condition: "=" | ">";
condition_value: number;
};

interface ActionCreateInfo {
Expand Down

0 comments on commit 70bdbac

Please sign in to comment.