User-defined Functions
Overview
User-defined Functions in Sift make it easy to create reusable logic that can be shared across multiple Rules and Calculated Channels. Expressions in Sift, whether used for Rules or Calculated Channels, are written using functions based on the Common Expression Language (CEL). With User-defined Functions, teams can now define their own custom logic, encapsulating complex or frequently used patterns into named, reusable expressions.
By capturing common calculations as User-defined Functions, teams can significantly improve the readability, maintainability, and consistency of their expressions. Instead of duplicating similar logic across multiple Rules or Calculated Channels, users can reference a single, centralized function, making expressions shorter, clearer, and easier to manage. This approach fosters the sharing of best practices across teams, promotes collaboration, and reduces the risk of introducing errors through duplicated or inconsistent logic.
User-defined Functions in Sift also incorporate version control, ensuring that expressions remain reliable and traceable even as the underlying logic evolves over time. As analysis requirements grow and change, teams can update functions in a controlled way, maintaining robust and reliable telemetry analysis across the workspace. Through this flexibility and structure, User-defined Functions empower teams to build more scalable, maintainable, and accurate telemetry monitoring systems within Sift.