Want to integrate jenkins with statuspage.io using statuspage-gating plugging

Configure connection to StatusPage:
unclassified:
statuspageGating:
sources:
- label: “StatusPage”
apiKey: “foobar” # Encrypt this in production setting. Optional field
url: “https://acme.com” # Only needed when different from https://api.statuspage.io/v1/
page: “foo”
where is this code be run?

that looks like yaml for Configuration as Code

yes halkeye, thanks for contributing, but my confusion is where to run the config code. Please read from this link below to know if you can help me figure out things. the goal is to report my jenkins operational status to statuspage.io .
StatusPage Gating
this link did not specify more on how to do the configuration