CreateAlert Endpoint

I want to create alerts based on my own custom logic programmatically. The API has the createAlert endpoint that takes the “expression” string. I’m guessing the expression string is where I would define the alert conditions? E.g. price crossing below X. Does anyone have a syntax basic example of how to define an expression string for the createAlert endpoint? Thanks!