@condor-labs/ec-events-gateway
Version:
Client to send events to events gateway API
21 lines (20 loc) • 570 B
JavaScript
module.exports = {
BAD_PAYLOAD: 'Bad payload',
URL_REQUIRED: 'Url is required',
PAYLOAD_REQUIRED: 'Payload is required',
PAYLOAD_LARGE: 'Payload is too large',
INVALID_SCHEMA: 'Invalid schema',
PAYLOAD_VALID: 'Payload valid',
MAX_PAYLOAD_SIZE: 250,
TOPIC_REQUIRED: 'Topic is required',
TYPE_REQUIRED: "Type is required",
unhandledError: message => {
return { error: `unhandled error: ${message}` };
},
DATE_FORMAT: 'MM-DD-YYYY',
PATH: '/home/zcebjobs/ec-audit-logs',
MESSAGE_ATTRIBUTES: {
name: "event",
dataType: "String"
}
};