Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
0

dynatrace-event dynatrace-event

Sends Event Dynatrace

arguments

  • ANNOTATION_DESCRIPTION - A detailed description of the custom annotation, for example DNS route has been changed to x.mydomain.com.
  • ANNOTATION_TYPE - The type of the custom annotation, for example DNS route has been changed.
  • API_TOKEN - Dynatrace API Token
  • CERTIFICATE_PATH - Filepath to CA Certificate, if self-hosted and signing cert
  • CI_BACK_LINK - The link to the deployed artifact within the 3rd party system.
  • CONFIGURATION - The ID or the name of the configuration that has been changed by the event.
  • DEPLOYMENT_NAME - The ID of the triggered deployment.
  • DEPLOYMENT_PROJECT - The project name of the deployed package.
  • DEPLOYMENT_VERSION - The version of the triggered deployment.
  • DESCRIPTION - The textual description of the configuration change.
  • DYNATRACE_DOMAIN - Dynatrace Domain, if self-hosted
  • DYNATRACE_ENVIRONMENT_ID - Dynatrace Environment ID, if SaaS
  • ENTITYIDS - Semi-colon separated Entity IDs. Required unless using METYPES + KEYS
  • EVENT_TYPE - Event type to send to Dynatrace
  • KEYS - Semi-colon separated KEYS. Required unless using ENTITYIDS.
  • METYPES - Semi-colon separated METYPES. Required unless using ENTITYIDS.
  • ORIGINAL - The previous value of the configuration.
  • REMEDIATION_ACTION - The link to the deployment related remediation action within the external tool.
  • SOURCE - The name or ID of the external source of the event.
  • TITLE - The title of the configuration that has been set by the event.
    CreateDeploymentEvent:
  type: dynatrace-event
  arguments:
    DYNATRACE_ENVIRONMENT_ID: vti11461
    API_TOKEN: x2392fhhgdys867gt3fd
    EVENT_TYPE: CUSTOM_DEPLOYMENT
    DEPLOYMENT_NAME: Application A
    DEPLOYMENT_VERSION: 1.0.0
    DEPLOYMENT_PROJECT: Production
    ENTITYIDS: CLOUD_APPLICATION-5F93DCB0C0A737CD

  
    CreateErrorEvent:
  type: dynatrace-event
  arguments:
    DYNATRACE_ENVIRONMENT_ID: vti11461
    API_TOKEN: x2392fhhgdys867gt3fd
    EVENT_TYPE: ERROR_EVENT
    DESCRIPTION: 'Build Failed: ${{CF_BUILD_URL}}'
    TITLE: CODEFRESH BUILD FAILED
    SOURCE: Codefresh
    ENTITYIDS: CLOUD_APPLICATION-5F93DCB0C0A737CD

  
github.com
Dustin Van Buskirk
Oct 29, 2021