- Project
- Service
- Approval
- Deployment
- Rollback
- Test
- Evaluation
- Release
- Get-Action
- Action
- Get-SLI
- Monitoring
- Problem
- Error Log
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"
}
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.
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
andfinished
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.
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
, orevaluation
. Consequently, the event type for adeployment
task would besh.keptn.event.deployment.[event status]
- The kinds of event states are defined with:
triggered
,started
,status.changed
, andfinished
(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
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:
- task.triggered
- task.started
- task.status.changed (optional)
- 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"
...
}
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
,orunknown
- 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 arepass
,warning
, orfail
- [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.
sh.keptn.event.project.create.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.project.create.started
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"
}
}
}
{
"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"
}
sh.keptn.event.project.create.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.service.create.started
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"
}
}
}
{
"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"
}
sh.keptn.event.service.create.status.changed
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"
}
}
}
{
"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"
}
sh.keptn.event.service.create.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.approval.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.approval.started
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"
}
}
}
{
"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"
}
sh.keptn.event.approval.status.changed
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"
}
}
}
{
"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"
}
sh.keptn.event.approval.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.deployment.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.deployment.started
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"
}
}
}
{
"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"
}
sh.keptn.event.deployment.status.changed
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"
}
}
}
{
"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"
}
sh.keptn.event.deployment.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.rollback.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.rollback.started
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"
}
}
}
{
"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"
}
sh.keptn.event.rollback.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.test.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.test.started
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"
}
}
}
{
"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"
}
sh.keptn.event.test.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.test.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.evaluation.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.evaluation.started
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"
}
}
}
{
"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"
}
sh.keptn.event.evaluation.status.changed
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"
}
}
}
{
"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"
}
sh.keptn.event.evaluation.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.evaluation.invalidated
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"
}
}
}
{
"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"
}
sh.keptn.event.release.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.release.started
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"
}
}
}
{
"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"
}
sh.keptn.event.release.status.changed
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"
}
}
}
{
"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"
}
sh.keptn.event.release.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.get-action.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.get-action.started
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"
}
}
}
{
"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"
}
sh.keptn.event.get-action.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.action.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.action.started
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"
}
}
}
{
"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"
}
sh.keptn.event.action.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.get-sli.triggered
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"
}
}
}
{
"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"
}
sh.keptn.event.get-sli.started
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"
}
}
}
{
"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"
}
sh.keptn.event.get-sli.finished
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"
}
}
}
{
"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"
}
sh.keptn.event.monitoring.configure
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"
}
}
}
{
"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"
}
sh.keptn.events.problem
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"
}
}
}
{
"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"
}
In addition to the task sequence/task events listed above, Keptn also supports the following general-purpose events:
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.
sh.keptn.log.error
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"
}
}
}
{
"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"
}