Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Latest commit

 

History

History
4777 lines (4538 loc) · 105 KB

cloudevents.md

File metadata and controls

4777 lines (4538 loc) · 105 KB

Keptn CloudEvents


All Keptn events conform to the CloudEvents spec in version 1.0. The CloudEvents specification is a vendor-neutral specification for defining the format of event data.

In Keptn, events have a payload structure as follows (Note: The triggeredid is not contained in events of type triggered mentioned below):

"sh.keptn.event": {
  "required": [
    "data",
    "id",
    "shkeptncontext",
    "source",
    "specversion",
    "time",
    "triggeredid",
    "gitcommitid",
    "type"
  ],
  "properties": {
    "data": {
      "type": ["object", "string"],
      "description": "The Keptn event payload depending on the type."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "Unique UUID of the Keptn event"
    },
    "shkeptncontext": {
      "format": "uuid",
      "type": "string",
      "description": "Unique UUID value that connects various events together"
    },
    "source": {
      "format": "uri-reference",
      "type": "string",
      "minLength": 1,
      "description": "URL to service implementation in Keptn code repo"
    },
    "specversion": {
      "type": "string",
      "minLength": 1,
      "description": "The version of the CloudEvents specification",
      "value": "1.0"
    },
    "shkeptnspecversion": {
      "type": "string",
      "minLength": 1,
      "description": "The version of the Keptn specification",
      "value": "0.2.0"
    },
    "time": {
      "format": "date-time",
      "type": "string",
      "description": "Timestamp of when the event happened"
    },
    "triggeredid": {
      "format": "uuid",
      "type": "string",
      "description": "The event ID that has triggered the step"
    },
    "gitcommitid": {
      "format": "uuid",
      "type": "string",
      "description": "The git commit ID of the resource used in the context"
    },
    "type": {
      "type": "string",
      "minLength": 1,
      "description": "Type of the Keptn event"
    }
  },
  "additionalProperties": false,
  "type": "object"
}

Type

In Keptn, events follow two different formats of event types. One is related to the overall status of a task sequence execution, while the other format is related to the execution of a certain task within a sequence.

Task sequence events

The event type of a Keptn CloudEvent concerning the overall state of a task sequence has the following format:

  • sh.keptn.event.[stage].[task sequence].[event status] - For events concerning the execution of a task sequence

As indicated by the brackets, the event type is defined by a stage, task sequence and the event status.

  • The task sequence is declared in the Shipyard of a project.
  • The kinds of event states are defined with: triggered and finished

For example, if a task sequence with the name delivery in the stage hardening should be executed, it has to be triggered by sending an event with the type sh.keptn.event.hardening.delivery.triggered. Once the delivery sequence is completed, a sh.keptn.event.hardening.delivery.finished event will be sent to indicate the completion of the task sequence.

Task events

The event type of a Keptn CloudEvent concerning the execution of a certain task within a task sequence has the following format:

  • sh.keptn.event.[task].[event status] - For events concerning the execution of a certain task within a task sequence

As indicated by the brackets, the event type is defined by a task and the event status.

  • The task is declared in the Shipyard of a project. For example, a Shipyard can contain tasks like: deployment, test, or evaluation. Consequently, the event type for a deployment task would be sh.keptn.event.deployment.[event status]
  • The kinds of event states are defined with: triggered, started, status.changed, and finished (status.changed is optional)

By combining the task and event status for the deployment task, the event types are:

  • sh.keptn.event.deployment.triggered
  • sh.keptn.event.deployment.started
  • sh.keptn.event.deployment.status.changed
  • sh.keptn.event.deployment.finished

Standard vs. Custom Task Events

This page shows some standard task events such as deployment, test and evaluation. The Keptn project has chosen to define these as they are common "tasks" that DevOps and SRE practioners want to achieve.

The Shipyard file accepts any String as a task name: you are not limited to only the tasks shown on this page.

Keptn core will "translate" the task name to a cloudevent type and build that taskname.triggered event automatically for you.

For example, given this Shipyard:

...
tasks:
  - name: "my-custom-task"
...

Keptn would "automatically" translate that at runtime into a cloudevent like this:

{
  ...
  "type": "sh.keptn.event.my-custom-task.triggered"
  ...
}

All tasks have a lifecycle:

  1. task.triggered
  2. task.started
  3. task.status.changed (optional)
  4. task.finished

Any custom integrations must craft and send back these events such as task.started:

{
  ...
  "type": "sh.keptn.event.my-custom-task.started"
  ...
}

task.status.changed:

{
  ...
  "type": "sh.keptn.event.my-custom-task.status.changed"
  ...
}

And task.finished:

{
  ...
  "type": "sh.keptn.event.my-custom-task.started"
  ...
}

Data

The data block of a Keptn CloudEvent carries the Keptn Payload of a specific event and contains the properties:

  • labels
  • message
  • project
  • service
  • stage
  • status: indicates whether the service executing the task was able to perform the task without any unexpected errors. Possible values are succeeded, errored,or unknown
  • result: indicates the result of a successful task execution without unexpected problems (i.e. status = succeeded), such as the result of an evaluation, or a test execution. Possible values are pass, warning, or fail
  • [task]

Like the task property in the event type, the task property in the data block depends on the task declaration in the Shipyard. Based on the example of a deployment task, the data block contains a deployment property of type object. Hence, any payload can be added to this deployment property

In the following each data block is described and an example of a CloudEvent containing the data block is given.

Project

Project Create Triggered

Type

sh.keptn.event.project.create.triggered

Data Json Schema
Json Schema of sh.keptn.event.project.create.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ProjectCreateData",
  "definitions": {
    "ProjectCreateData": {
      "required": [
        "projectName",
        "shipyard"
      ],
      "properties": {
        "projectName": {
          "type": "string"
        },
        "gitRemoteURL": {
          "type": "string"
        },
        "shipyard": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.project.create.triggered",
  "datacontenttype": "application/json",
  "data": {
    "projectName": "sockshop",
    "gitRemoteURL": "https://github.com/project/repository",
    "shipyard": "c3RhZ2VzOg0KICAtIG5hbWU6ICJkZXYiDQogICAgZGVwbG95bWVudF9zdHJhdGVneTogImRpcmVjdCINCiAgICB0ZXN0X3N0cmF0ZWd5OiAiZnVuY3Rpb25hbCINCiAgLSBuYW1lOiAic3RhZ2luZyINCiAgICBkZXBsb3ltZW50X3N0cmF0ZWd5OiAiYmx1ZV9ncmVlbl9zZXJ2aWNlIg0KICAgIHRlc3Rfc3RyYXRlZ3k6ICJwZXJmb3JtYW5jZSINCiAgLSBuYW1lOiAicHJvZHVjdGlvbiINCiAgICBkZXBsb3ltZW50X3N0cmF0ZWd5OiAiYmx1ZV9ncmVlbl9zZXJ2aWNlIg0KICAgIHJlbWVkaWF0aW9uX3N0cmF0ZWd5OiAiYXV0b21hdGVkIg0K"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Project Create Started

Type

sh.keptn.event.project.create.started

Data Json Schema
Json Schema of sh.keptn.event.project.create.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ProjectCreateStartedEventData",
  "definitions": {
    "ProjectCreateStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.project.create.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Project Create Finished

Type

sh.keptn.event.project.create.finished

Data Json Schema
Json Schema of sh.keptn.event.project.create.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ProjectCreateFinishedEventData",
  "definitions": {
    "ProjectCreateData": {
      "required": [
        "projectName",
        "shipyard"
      ],
      "properties": {
        "projectName": {
          "type": "string"
        },
        "gitRemoteURL": {
          "type": "string"
        },
        "shipyard": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ProjectCreateFinishedEventData": {
      "required": [
        "createdProject"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "createdProject": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ProjectCreateData"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.project.create.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "createdProject": {
      "projectName": "sockshop",
      "gitRemoteURL": "https://github.com/project/repository",
      "shipyard": "c3RhZ2VzOg0KICAtIG5hbWU6ICJkZXYiDQogICAgZGVwbG95bWVudF9zdHJhdGVneTogImRpcmVjdCINCiAgICB0ZXN0X3N0cmF0ZWd5OiAiZnVuY3Rpb25hbCINCiAgLSBuYW1lOiAic3RhZ2luZyINCiAgICBkZXBsb3ltZW50X3N0cmF0ZWd5OiAiYmx1ZV9ncmVlbl9zZXJ2aWNlIg0KICAgIHRlc3Rfc3RyYXRlZ3k6ICJwZXJmb3JtYW5jZSINCiAgLSBuYW1lOiAicHJvZHVjdGlvbiINCiAgICBkZXBsb3ltZW50X3N0cmF0ZWd5OiAiYmx1ZV9ncmVlbl9zZXJ2aWNlIg0KICAgIHJlbWVkaWF0aW9uX3N0cmF0ZWd5OiAiYXV0b21hdGVkIg0K"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Service

Service Create Started

Type

sh.keptn.event.service.create.started

Data Json Schema
Json Schema of sh.keptn.event.service.create.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ServiceCreateStartedEventData",
  "definitions": {
    "ServiceCreateStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.service.create.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Service Create Status Changed

Type

sh.keptn.event.service.create.status.changed

Data Json Schema
Json Schema of sh.keptn.event.service.create.status.changed

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ServiceCreateStatusChangedEventData",
  "definitions": {
    "ServiceCreateStatusChangedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.service.create.status.changed",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Service Create Finished

Type

sh.keptn.event.service.create.finished

Data Json Schema
Json Schema of sh.keptn.event.service.create.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ServiceCreateFinishedEventData",
  "definitions": {
    "ServiceCreateFinishedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.service.create.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Approval

Approval Triggered

Type

sh.keptn.event.approval.triggered

Data Json Schema
Json Schema of sh.keptn.event.approval.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ApprovalTriggeredEventData",
  "definitions": {
    "Approval": {
      "required": [
        "pass",
        "warning"
      ],
      "properties": {
        "pass": {
          "enum": [
            "automatic",
            "manual"
          ],
          "type": "string"
        },
        "warning": {
          "enum": [
            "automatic",
            "manual"
          ],
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ApprovalTriggeredEventData": {
      "required": [
        "approval"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "approval": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/Approval"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.approval.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "approval": {
      "pass": "automatic",
      "warning": "manual"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Approval Started

Type

sh.keptn.event.approval.started

Data Json Schema
Json Schema of sh.keptn.event.approval.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ApprovalStartedEventData",
  "definitions": {
    "ApprovalStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.approval.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Approval Status Changed

Type

sh.keptn.event.approval.status.changed

Data Json Schema
Json Schema of sh.keptn.event.approval.status.changed

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ApprovalStatusChangedEventData",
  "definitions": {
    "ApprovalStatusChangedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.approval.status.changed",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Approval Finished

Type

sh.keptn.event.approval.finished

Data Json Schema
Json Schema of sh.keptn.event.approval.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ApprovalFinishedEventData",
  "definitions": {
    "ApprovalFinishedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.approval.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Deployment

Deployment Triggered

Type

sh.keptn.event.deployment.triggered

Data Json Schema
Json Schema of sh.keptn.event.deployment.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/DeploymentTriggeredEventData",
  "definitions": {
    "ConfigurationChange": {
      "required": [
        "values"
      ],
      "properties": {
        "values": {
          "patternProperties": {
            ".*": {
              "additionalProperties": true
            }
          },
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "DeploymentTriggeredData": {
      "required": [
        "deploymentURIsLocal",
        "deploymentstrategy"
      ],
      "properties": {
        "deploymentURIsLocal": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentURIsPublic": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentstrategy": {
          "enum": [
            "direct",
            "blue_green_service",
            "user_managed"
          ],
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "DeploymentTriggeredEventData": {
      "required": [
        "configurationChange",
        "deployment"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "configurationChange": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ConfigurationChange"
        },
        "deployment": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/DeploymentTriggeredData"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.deployment.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "configurationChange": {
      "values": {
        "key": "value"
      }
    },
    "deployment": {
      "deploymentURIsLocal": [
        "http://carts.sockshop-staging.svc.cluster.local"
      ],
      "deploymentURIsPublic": [
        "http://carts.sockshot.local:80"
      ],
      "deploymentstrategy": "direct"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Deployment Started

Type

sh.keptn.event.deployment.started

Data Json Schema
Json Schema of sh.keptn.event.deployment.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/DeploymentStartedEventData",
  "definitions": {
    "DeploymentStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.deployment.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Deployment Status Changed

Type

sh.keptn.event.deployment.status.changed

Data Json Schema
Json Schema of sh.keptn.event.deployment.status.changed

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/DeploymentStatusChangedEventData",
  "definitions": {
    "DeploymentStatusChangedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.deployment.status.changed",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Deployment Finished

Type

sh.keptn.event.deployment.finished

Data Json Schema
Json Schema of sh.keptn.event.deployment.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/DeploymentFinishedEventData",
  "definitions": {
    "DeploymentFinishedData": {
      "required": [
        "deploymentstrategy",
        "deploymentURIsLocal",
        "deploymentNames",
        "gitCommit"
      ],
      "properties": {
        "deploymentstrategy": {
          "enum": [
            "direct",
            "blue_green_service",
            "user_managed"
          ],
          "type": "string"
        },
        "deploymentURIsLocal": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentURIsPublic": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentNames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "gitCommit": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "DeploymentFinishedEventData": {
      "required": [
        "deployment"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "deployment": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/DeploymentFinishedData"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.deployment.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "deployment": {
      "deploymentstrategy": "direct",
      "deploymentURIsLocal": [
        "http://carts.sockshop-staging.svc.cluster.local"
      ],
      "deploymentURIsPublic": [
        "http://carts.sockshot.local:80"
      ],
      "deploymentNames": [
        "deployment-1"
      ],
      "gitCommit": "ca82a6dff817gc66f44342007202690a93763949"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Rollback

Rollback Triggered

Type

sh.keptn.event.rollback.triggered

Data Json Schema
Json Schema of sh.keptn.event.rollback.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/RollbackTriggeredEventData",
  "definitions": {
    "RollbackTriggeredEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.rollback.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Rollback Started

Type

sh.keptn.event.rollback.started

Data Json Schema
Json Schema of sh.keptn.event.rollback.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/RollbackStartedEventData",
  "definitions": {
    "RollbackStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.rollback.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Rollback Finished

Type

sh.keptn.event.rollback.finished

Data Json Schema
Json Schema of sh.keptn.event.rollback.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/RollbackFinishedEventData",
  "definitions": {
    "RollbackFinishedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.rollback.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Test

Test Triggered

Type

sh.keptn.event.test.triggered

Data Json Schema
Json Schema of sh.keptn.event.test.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/TestTriggeredEventData",
  "definitions": {
    "TestTriggeredDeploymentDetails": {
      "required": [
        "deploymentURIsLocal"
      ],
      "properties": {
        "deploymentURIsLocal": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentURIsPublic": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "TestTriggeredDetails": {
      "required": [
        "teststrategy"
      ],
      "properties": {
        "teststrategy": {
          "enum": [
            "real-user",
            "functional",
            "performance",
            "healthcheck"
          ],
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "TestTriggeredEventData": {
      "required": [
        "test",
        "deployment"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "test": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/TestTriggeredDetails"
        },
        "deployment": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/TestTriggeredDeploymentDetails"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.test.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "test": {
      "teststrategy": "functional"
    },
    "deployment": {
      "deploymentURIsLocal": [
        "http://carts.sockshop-staging.svc.cluster.local"
      ],
      "deploymentURIsPublic": [
        "http://carts.sockshot.local:80"
      ]
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Test Started

Type

sh.keptn.event.test.started

Data Json Schema
Json Schema of sh.keptn.event.test.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/TestStartedEventData",
  "definitions": {
    "TestStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.test.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Test Status Changed

Type

sh.keptn.event.test.triggered

Data Json Schema
Json Schema of sh.keptn.event.test.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/TestStatusChangedEventData",
  "definitions": {
    "TestStatusChangedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.test.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Test Finished

Type

sh.keptn.event.test.finished

Data Json Schema
Json Schema of sh.keptn.event.test.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/TestFinishedEventData",
  "definitions": {
    "TestFinishedDetails": {
      "required": [
        "start",
        "end",
        "gitCommit"
      ],
      "properties": {
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "gitCommit": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "TestFinishedEventData": {
      "required": [
        "test"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "test": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/TestFinishedDetails"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.test.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "test": {
      "start": "2019-10-20T07:57:27.152330783Z",
      "end": "2019-10-20T08:57:27.152330783Z",
      "gitCommit": "ca82a6dff817gc66f44342007202690a93763949"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Evaluation

Evaluation Triggered

Type

sh.keptn.event.evaluation.triggered

Data Json Schema
Json Schema of sh.keptn.event.evaluation.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/EvaluationTriggeredEventData",
  "definitions": {
    "Deployment": {
      "required": [
        "deploymentNames"
      ],
      "properties": {
        "deploymentNames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "Evaluation": {
      "required": [
        "start",
        "end",
        "timeframe"
      ],
      "properties": {
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "timeframe": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "EvaluationTriggeredEventData": {
      "required": [
        "test",
        "evaluation",
        "deployment"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "test": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/Test"
        },
        "evaluation": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/Evaluation"
        },
        "deployment": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/Deployment"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "Test": {
      "required": [
        "start",
        "end"
      ],
      "properties": {
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.evaluation.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "test": {
      "start": "2019-10-20T06:57:27.152330783Z",
      "end": "2019-10-20T07:57:27.152330783Z"
    },
    "evaluation": {
      "start": "2019-10-20T07:57:27.152330783Z",
      "end": "2019-10-20T08:57:27.152330783Z",
      "timeframe": "10m"
    },
    "deployment": {
      "deploymentNames": [
        "deployment-1"
      ]
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Evaluation Started

Type

sh.keptn.event.evaluation.started

Data Json Schema
Json Schema of sh.keptn.event.evaluation.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/EvaluationStartedEventData",
  "definitions": {
    "EvaluationStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.evaluation.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Evaluation Status Changed

Type

sh.keptn.event.evaluation.status.changed

Data Json Schema
Json Schema of sh.keptn.event.evaluation.status.changed

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/EvaluationStatusChangedEventData",
  "definitions": {
    "EvaluationStatusChangedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.evaluation.status.changed",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Evaluation Finished

Type

sh.keptn.event.evaluation.finished

Data Json Schema
Json Schema of sh.keptn.event.evaluation.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/EvaluationFinishedEventData",
  "definitions": {
    "EvaluationDetails": {
      "required": [
        "timeStart",
        "timeEnd",
        "result",
        "score",
        "sloFileContent",
        "indicatorResults",
        "gitCommit"
      ],
      "properties": {
        "timeStart": {
          "type": "string"
        },
        "timeEnd": {
          "type": "string"
        },
        "result": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "sloFileContent": {
          "type": "string"
        },
        "indicatorResults": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/SLIEvaluationResult"
          },
          "type": "array"
        },
        "comparedEvents": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "gitCommit": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "EvaluationFinishedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "evaluation": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/EvaluationDetails"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SLIEvaluationResult": {
      "required": [
        "score",
        "value",
        "displayName",
        "passTargets",
        "warningTargets",
        "keySli",
        "status"
      ],
      "properties": {
        "score": {
          "type": "number"
        },
        "value": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/SLIResult"
        },
        "displayName": {
          "type": "string"
        },
        "passTargets": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/SLITarget"
          },
          "type": "array"
        },
        "warningTargets": {
          "items": {
            "$ref": "#/definitions/SLITarget"
          },
          "type": "array"
        },
        "keySli": {
          "type": "boolean"
        },
        "status": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SLIResult": {
      "required": [
        "metric",
        "value",
        "success"
      ],
      "properties": {
        "metric": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "success": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SLITarget": {
      "required": [
        "criteria",
        "targetValue",
        "violated"
      ],
      "properties": {
        "criteria": {
          "type": "string"
        },
        "targetValue": {
          "type": "number"
        },
        "violated": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.evaluation.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "evaluation": {
      "timeStart": "2019-11-18T11:21:06Z",
      "timeEnd": "2019-11-18T11:29:36Z",
      "result": "fail",
      "score": 0,
      "sloFileContent": "LS0tDQpzcGVjX3ZlcnNpb246ICcxLjAnDQpjb21wYXJpc29uOg0KICBjb21wYXJlX3dpdGg6ICJzaW5nbGVfcmVzdWx0Ig0KICBpbmNsdWRlX3Jlc3VsdF93aXRoX3Njb3JlOiAicGFzcyINCiAgYWdncmVnYXRlX2Z1bmN0aW9uOiBhdmcNCm9iamVjdGl2ZXM6DQogIC0gc2xpOiByZXNwb25zZV90aW1lX3A5NQ0KICAgIHBhc3M6ICAgICAgICAjIHBhc3MgaWYgKHJlbGF0aXZlIGNoYW5nZSA8PSAxMCUgQU5EIGFic29sdXRlIHZhbHVlIGlzIDwgNTAwKQ0KICAgICAgLSBjcml0ZXJpYToNCiAgICAgICAgICAtICI8PSsxMCUiICMgcmVsYXRpdmUgdmFsdWVzIHJlcXVpcmUgYSBwcmVmaXhlZCBzaWduIChwbHVzIG9yIG1pbnVzKQ0KICAgICAgICAgIC0gIjw2MDAiICAgIyBhYnNvbHV0ZSB2YWx1ZXMgb25seSByZXF1aXJlIGEgbG9naWNhbCBvcGVyYXRvcg0KICAgIHdhcm5pbmc6ICAgICAjIGlmIHRoZSByZXNwb25zZSB0aW1lIGlzIGJlbG93IDgwMG1zLCB0aGUgcmVzdWx0IHNob3VsZCBiZSBhIHdhcm5pbmcNCiAgICAgIC0gY3JpdGVyaWE6DQogICAgICAgICAgLSAiPD04MDAiDQp0b3RhbF9zY29yZToNCiAgcGFzczogIjkwJSINCiAgd2FybmluZzogNzUl",
      "indicatorResults": [
        {
          "score": 0,
          "value": {
            "metric": "response_time_p95",
            "value": 1002.6278552658177,
            "success": true,
            "message": "a message"
          },
          "displayName": "Response Time P95",
          "passTargets": [
            {
              "criteria": "\u003c=+10%",
              "targetValue": 600,
              "violated": true
            }
          ],
          "warningTargets": [
            {
              "criteria": "\u003c=+20%",
              "targetValue": 800,
              "violated": true
            }
          ],
          "keySli": false,
          "status": "failed"
        }
      ],
      "comparedEvents": [
        "event-id-1",
        "event-id-2"
      ],
      "gitCommit": "ca82a6dff817gc66f44342007202690a93763949"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Evaluation Invalidated

Type

sh.keptn.event.evaluation.invalidated

Data Json Schema
Json Schema of sh.keptn.event.evaluation.invalidated

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/EventData",
  "definitions": {
    "EventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.evaluation.invalidated",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Release

Release Triggered

Type

sh.keptn.event.release.triggered

Data Json Schema
Json Schema of sh.keptn.event.release.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ReleaseTriggeredEventData",
  "definitions": {
    "DeploymentFinishedData": {
      "required": [
        "deploymentstrategy",
        "deploymentURIsLocal",
        "deploymentNames",
        "gitCommit"
      ],
      "properties": {
        "deploymentstrategy": {
          "enum": [
            "direct",
            "blue_green_service",
            "user_managed"
          ],
          "type": "string"
        },
        "deploymentURIsLocal": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentURIsPublic": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deploymentNames": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "gitCommit": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ReleaseTriggeredEventData": {
      "required": [
        "deployment"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "deployment": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/DeploymentFinishedData"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.release.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "deployment": {
      "deploymentstrategy": "duplicate",
      "deploymentURIsLocal": [
        "http://carts.sockshop-staging.svc.cluster.local"
      ],
      "deploymentURIsPublic": [
        "http://carts.sockshot.local:80"
      ],
      "deploymentNames": [
        "carts-primary",
        "carts-generated"
      ],
      "gitCommit": "ca82a6dff817gc66f44342007202690a93763949"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Release Started

Type

sh.keptn.event.release.started

Data Json Schema
Json Schema of sh.keptn.event.release.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ReleaseStartedEventData",
  "definitions": {
    "ReleaseStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.release.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Release Status Changed

Type

sh.keptn.event.release.status.changed

Data Json Schema
Json Schema of sh.keptn.event.release.status.changed

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ReleaseStatusChangedEventData",
  "definitions": {
    "ReleaseStatusChangedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.release.status.changed",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Release Finished

Type

sh.keptn.event.release.finished

Data Json Schema
Json Schema of sh.keptn.event.release.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ReleaseFinishedEventData",
  "definitions": {
    "ReleaseData": {
      "required": [
        "gitCommit"
      ],
      "properties": {
        "gitCommit": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ReleaseFinishedEventData": {
      "required": [
        "release"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "release": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ReleaseData"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.release.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "release": {
      "gitCommit": "ca82a6dff817gc66f44342007202690a93763949"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Get Action

Get Action Triggered

Type

sh.keptn.event.get-action.triggered

Data Json Schema
Json Schema of sh.keptn.event.get-action.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/GetActionTriggeredEventData",
  "definitions": {
    "GetActionTriggeredEventData": {
      "required": [
        "problem",
        "actionIndex"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "problem": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ProblemDetails"
        },
        "actionIndex": {
          "type": "integer"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ProblemDetails": {
      "required": [
        "problemTitle",
        "rootCause"
      ],
      "properties": {
        "problemTitle": {
          "type": "string"
        },
        "rootCause": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.get-action.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "problem": {
      "problemTitle": "Response time degradation",
      "rootCause": "Problem root cause"
    },
    "actionIndex": 0
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Get Action Started

Type

sh.keptn.event.get-action.started

Data Json Schema
Json Schema of sh.keptn.event.get-action.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/GetActionStartedEventData",
  "definitions": {
    "GetActionStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.get-action.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Get Action Finished

Type

sh.keptn.event.get-action.finished

Data Json Schema
Json Schema of sh.keptn.event.get-action.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/GetActionFinishedEventData",
  "definitions": {
    "ActionInfo": {
      "required": [
        "name",
        "action"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "action": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "value": {
          "additionalProperties": true
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "GetActionFinishedEventData": {
      "required": [
        "action",
        "ActionIndex"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "action": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ActionInfo"
        },
        "ActionIndex": {
          "type": "integer"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.get-action.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "action": {
      "name": "Feature toggling",
      "action": "toggle-feature",
      "description": "Toggles a feature flag",
      "value": {
        "EnableItemCache": "on"
      }
    },
    "ActionIndex": 1
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Action

Action Triggered

Type

sh.keptn.event.action.triggered

Data Json Schema
Json Schema of sh.keptn.event.action.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ActionTriggeredEventData",
  "definitions": {
    "ActionInfo": {
      "required": [
        "name",
        "action"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "action": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "value": {
          "additionalProperties": true
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ActionTriggeredEventData": {
      "required": [
        "action",
        "problem"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "action": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ActionInfo"
        },
        "problem": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ProblemDetails"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ProblemDetails": {
      "required": [
        "problemTitle",
        "rootCause"
      ],
      "properties": {
        "problemTitle": {
          "type": "string"
        },
        "rootCause": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.action.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "action": {
      "name": "Feature toggling",
      "action": "toggle-feature",
      "description": "Toggles a feature flag",
      "value": {
        "EnableItemCache": "on"
      }
    },
    "problem": {
      "problemTitle": "cpu_usage_sockshop_carts",
      "rootCause": "problem root cause"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Action Started

Type

sh.keptn.event.action.started

Data Json Schema
Json Schema of sh.keptn.event.action.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ActionStartedEventData",
  "definitions": {
    "ActionStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.action.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Action Finished

Type

sh.keptn.event.action.finished

Data Json Schema
Json Schema of sh.keptn.event.action.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ActionFinishedEventData",
  "definitions": {
    "ActionData": {
      "properties": {
        "gitCommit": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "ActionFinishedEventData": {
      "required": [
        "action"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "action": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/ActionData"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.action.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "action": {
      "gitCommit": "93a5-3fas-a09d-8ckf"
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Get SLI

Get SLI Triggered

Type

sh.keptn.event.get-sli.triggered

Data Json Schema
Json Schema of sh.keptn.event.get-sli.triggered

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/GetSLITriggeredEventData",
  "definitions": {
    "GetSLI": {
      "required": [
        "sliProvider",
        "start",
        "end"
      ],
      "properties": {
        "sliProvider": {
          "type": "string"
        },
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "indicators": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "customFilters": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/SLIFilter"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "GetSLITriggeredEventData": {
      "required": [
        "get-sli",
        "deployment"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "get-sli": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/GetSLI"
        },
        "deployment": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SLIFilter": {
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.get-sli.triggered",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message",
    "get-sli": {
      "sliProvider": "dynatrace",
      "start": "2019-10-28T15:44:27.152330783Z",
      "end": "2019-10-28T15:54:27.152330783Z",
      "indicators": [
        "throughput",
        "error_rate",
        "request_latency_p95"
      ],
      "customFilters": [
        {
          "key": "dynatraceEntityName",
          "value": "HealthCheckController"
        },
        {
          "key": "tags",
          "value": "test-subject:true"
        }
      ]
    },
    "deployment": "direct"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Get SLI Started

Type

sh.keptn.event.get-sli.started

Data Json Schema
Json Schema of sh.keptn.event.get-sli.started

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/GetSLIStartedEventData",
  "definitions": {
    "GetSLIStartedEventData": {
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.get-sli.started",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "labels": {
      "label-key": "label-value"
    },
    "status": "succeeded",
    "result": "pass",
    "message": "a message"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Get SLI Finished

Type

sh.keptn.event.get-sli.finished

Data Json Schema
Json Schema of sh.keptn.event.get-sli.finished

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/GetSLIFinishedEventData",
  "definitions": {
    "GetSLIFinished": {
      "required": [
        "start",
        "end"
      ],
      "properties": {
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "indicatorValues": {
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "$ref": "#/definitions/SLIResult"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "GetSLIFinishedEventData": {
      "required": [
        "get-sli"
      ],
      "properties": {
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "status": {
          "enum": [
            "succeeded",
            "errored",
            "unknown"
          ],
          "type": "string"
        },
        "result": {
          "enum": [
            "pass",
            "warning",
            "fail"
          ],
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "get-sli": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "$ref": "#/definitions/GetSLIFinished"
        }
      },
      "additionalProperties": false,
      "type": "object"
    },
    "SLIResult": {
      "required": [
        "metric",
        "value",
        "success"
      ],
      "properties": {
        "metric": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "success": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.get-sli.finished",
  "datacontenttype": "application/json",
  "data": {
    "project": "sockshop",
    "stage": "dev",
    "service": "carts",
    "get-sli": {
      "start": "2019-10-20T07:57:27.152330783Z",
      "end": "2019-10-22T08:57:27.152330783Z",
      "indicatorValues": [
        {
          "metric": "response_time_p50",
          "value": 1011.0745528937252,
          "success": true
        }
      ]
    }
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Monitoring

Configure Monitoring

Type

sh.keptn.event.monitoring.configure

Data Json Schema
Json Schema of sh.keptn.event.monitoring.configure

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ConfigureMonitoringEventData",
  "definitions": {
    "ConfigureMonitoringEventData": {
      "required": [
        "type",
        "project",
        "service"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "project": {
          "type": "string"
        },
        "service": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.event.monitoring.configure",
  "datacontenttype": "application/json",
  "data": {
    "type": "dynatrace",
    "project": "sockshop",
    "service": "service"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

Problem

Problem

Type

sh.keptn.events.problem

Data Json Schema
Json Schema of sh.keptn.events.problem

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ProblemEventData",
  "definitions": {
    "ProblemEventData": {
      "required": [
        "ProblemID",
        "ProblemTitle",
        "ProblemDetails",
        "PID",
        "labels"
      ],
      "properties": {
        "State": {
          "type": "string"
        },
        "ProblemID": {
          "type": "string"
        },
        "ProblemTitle": {
          "type": "string"
        },
        "ProblemDetails": {
          "type": "string",
          "media": {
            "binaryEncoding": "base64"
          }
        },
        "PID": {
          "type": "string"
        },
        "ProblemURL": {
          "type": "string"
        },
        "ImpactedEntity": {
          "type": "string"
        },
        "Tags": {
          "type": "string"
        },
        "project": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "labels": {
          "patternProperties": {
            ".*": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.events.problem",
  "datacontenttype": "application/json",
  "data": {
    "State": "OPEN",
    "ProblemID": "ab81-941c-f198",
    "ProblemTitle": "Response Time Degradation",
    "ProblemDetails": {
      "displayName": "641",
      "endTime": -1,
      "hasRootCause": false,
      "id": "1234_5678V2",
      "impactLevel": "SERVICE",
      "severityLevel": "PERFORMANCE",
      "startTime": 1587624420000,
      "status": "OPEN"
    },
    "PID": "93a5-3fas-a09d-8ckf",
    "ProblemURL": "https://.../#problems/problemdetails;pid=93a5-3fas-a09d-8ckf",
    "ImpactedEntity": "carts-primary",
    "project": "sockshop",
    "stage": "production",
    "service": "service",
    "labels": null
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)

General purpose events

In addition to the task sequence/task events listed above, Keptn also supports the following general-purpose events:

Logging

For easier debugging of errors that occur either during the execution of a task of a sequence, or while performing any other operation, Keptn integration services can send error log events to the Keptn API via the distributor.

Error Log

Type

sh.keptn.log.error

Data Json Schema
Json Schema of sh.keptn.log.error

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/definitions/ErrorLogEvent",
  "definitions": {
    "ErrorLogEvent": {
      "required": [
        "message",
        "integrationid",
        "task"
      ],
      "properties": {
        "message": {
          "type": "string"
        },
        "integrationid": {
          "type": "string"
        },
        "task": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}

Example Cloud Event
{
  "specversion": "1.0",
  "id": "c4d3a334-6cb9-4e8c-a372-7e0b45942f53",
  "source": "source-service",
  "type": "sh.keptn.log.error",
  "datacontenttype": "application/json",
  "data": {
    "message": "an unexpected error occurred",
    "integrationid": "2b4b199c-cdaf-11eb-b8bc-0242ac130003",
    "task": "deployment"
  },
  "shkeptncontext": "a3e5f16d-8888-4720-82c7-6995062905c1",
  "triggeredid": "3f9640b6-1d2a-4f11-95f5-23259f1d82d6",
  "gitcommitid": "521747298a3790fde1710f3aa2d03b55020575aa"
}

(↑ up to index)