Static field kibana

I am creating a visualisation that needs a static threeshold

Can you provide me examples of script fields of static values

thanks

Hey @Jouad_Mohammed, would you mind elaborating upon how you're intending to use the static threshold? Are you just looking to get a field added to every document that is a static number/string/etc?

I have a set of categories (fields), each field has a maximum value.
I need define theese values as a scripted field

many thanks
i will create lot of static vars

he question here is how to include them into an histograme