Get

Get

Certified

Get the latest result of a Metaplane monitor

yaml
type: io.kestra.plugin.metaplane.Get
yaml
id: metaplane_gate
namespace: company.team

tasks:
  - id: run_monitor
    type: io.kestra.plugin.metaplane.Run
    apiToken: "{{ secret('METAPLANE_API_TOKEN') }}"
    monitorIds:
      - "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  - id: wait_for_monitor_run
    type: io.kestra.plugin.core.flow.Pause
    # Run only enqueues the monitor and does not wait for completion; this pause gives it
    # time to finish before Get reads its status. For a guaranteed-fresh result instead of
    # a fixed wait, react to io.kestra.plugin.metaplane.MonitorResultTrigger in a separate flow.
    pauseDuration: PT1M
  - id: get_result
    type: io.kestra.plugin.metaplane.Get
    apiToken: "{{ secret('METAPLANE_API_TOKEN') }}"
    monitorId: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  - id: halt_on_anomaly
    type: io.kestra.plugin.core.execution.Fail
    condition: "{{ outputs.get_result.status == 'FAIL' }}"
Properties
Defaulthttps://dev.api.metaplane.dev
Definitions
allowFailedbooleanstring
Defaultfalse
allowedResponseCodesarray
SubTypeinteger
auth
type*Requiredobject
passwordstring
usernamestring
type*Requiredobject
tokenstring
type*Requiredobject
passwordstring
usernamestring
basicAuthPasswordDeprecatedstring
basicAuthUserDeprecatedstring
connectTimeoutDeprecatedstring
Formatduration
connectionPoolIdleTimeoutDeprecatedstring
Formatduration
defaultCharsetstring
DefaultUTF-8
enabledTcpExtendedKeepAlivebooleanstring
Defaulttrue
followRedirectsbooleanstring
Defaulttrue
logLevelDeprecatedstring
Possible Values
ALLTRACEDEBUGINFOWARNERROROFFNOT_SPECIFIED
logsarray
SubTypestring
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY
maxContentLengthDeprecatedinteger
proxy
addressstring
passwordstring
portintegerstring
typestring
DefaultDIRECT
Possible Values
DIRECTHTTPSOCKS
usernamestring
proxyAddressDeprecatedstring
proxyPasswordDeprecatedstring
proxyPortDeprecatedinteger
proxyTypeDeprecatedstring
Possible Values
DIRECTHTTPSOCKS
proxyUsernameDeprecatedstring
readIdleTimeoutDeprecatedstring
Formatduration
readTimeoutDeprecatedstring
Formatduration
ssl
insecureTrustAllCertificatesbooleanstring
timeout
connectTimeoutstring
readIdleTimeoutstring
DefaultPT5M
Formatdate-time
Possible Values
PASSIN_TRAININGNOT_ENOUGH_DATAFAILED_TO_PREDICTINVALID_INPUTERRORFAILUNKNOWN