(field: { name: string; expression: string })
| 32 | // so tie the field name to the expression while avoiding deploy-to-deploy churn. |
| 33 | // https://github.com/honeycombio/terraform-provider-honeycombio/issues/852 |
| 34 | const calculatedField = (field: { name: string; expression: string }) => ({ |
| 35 | ...field, |
| 36 | name: `${field.name}_${( |
| 37 | Array.from(field.expression).reduce((result, char) => Math.imul(31, result) + char.charCodeAt(0), 0) >>> 0 |
| 38 | ).toString(36)}`, |
| 39 | }) |
| 40 | |
| 41 | const modelHttpErrorsQuery = (product: "go" | "zen") => { |
| 42 | const filters = [ |
no test coverage detected