Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@
"path": "src/platform-data-model",
"package": "platform-data-model",
"versionNumber": "0.1.27.NEXT",
"definitionFile": "config/scratch-org-def.json",
"definitionFile": "config/project-scratch-def.json",
"dependencies": []
},
{
"path": "src/platform-utility/custom-metadata-dao",
"package": "custom-metadata-dao",
"versionNumber": "0.1.27.NEXT",
"definitionFile": "config/scratch-org-def.json",
"definitionFile": "config/project-scratch-def.json",
"dependencies": []
},
{
"path": "src/platform-utility/custom-permission-helper",
"package": "custom-permission-helper",
"versionNumber": "0.1.27.NEXT",
"definitionFile": "config/scratch-org-def.json",
"definitionFile": "config/project-scratch-def.json",
"dependencies": []
},
{
"path": "src/frameworks/feature-toggle",
"package": "feature-toggle",
"versionNumber": "0.1.28.NEXT",
"definitionFile": "config/scratch-org-def.json",
"definitionFile": "config/project-scratch-def.json",
"dependencies": [
{
"package": "platform-data-model",
Expand All @@ -51,7 +51,13 @@
"path": "src/application-monitoring",
"package": "application-monitoring",
"versionNumber": "0.1.0.NEXT",
"definitionFile": "config/scratch-org-def.json"
"definitionFile": "config/project-scratch-def.json",
"dependencies": [
{
"package": "platform-data-model",
"versionNumber": "0.1.27.LATEST"
}
]
}
],
"packageAliases": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<description
>Custom metadata to configure settings for sending application logs to defined slack channels.</description>
<label>Application Log Setting</label>
<pluralLabel>Application Log Settings</pluralLabel>
<visibility>Public</visibility>
</CustomObject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Application_Domain__c</fullName>
<description>Defines which part of the application that &quot;owns&quot; the log setting</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<label>Application Domain</label>
<required>true</required>
<type>Picklist</type>
<valueSet>
<restricted>true</restricted>
<valueSetDefinition>
<sorted>false</sorted>
<value>
<fullName>NKS</fullName>
<default>true</default>
<label>NKS</label>
</value>
<value>
<fullName>HOT</fullName>
<default>false</default>
<label>HOT</label>
</value>
<value>
<fullName>POAB</fullName>
<default>false</default>
<label>POAB</label>
</value>
<value>
<fullName>AAREG</fullName>
<default>false</default>
<label>AAREG</label>
</value>
<value>
<fullName>CRM</fullName>
<default>false</default>
<label>CRM</label>
</value>
</valueSetDefinition>
</valueSet>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Category__c</fullName>
<description
>Required category to match for logs to be published to slack. Leave blank to only use minimum log level and application domain as criteria.</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText
>Required category to match for logs to be published to slack. Leave blank to only use minimum log level and application domain as criteria.</inlineHelpText>
<label>Category</label>
<length>32</length>
<required>false</required>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Immediate_Post__c</fullName>
<defaultValue>false</defaultValue>
<description
>Determines if the message should be posted immediately after logging, or can be handling in a separate aggregate error report.</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText
>Determines if the message should be posted immediately after logging, or can be handling in a separate aggregate error report.</inlineHelpText>
<label>Immediate Post</label>
<type>Checkbox</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Message_Template__c</fullName>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText>Template for the message to be posted to slack.</inlineHelpText>
<label>Message Template</label>
<required>false</required>
<type>TextArea</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Minimum_Log_Level__c</fullName>
<description>The minimum log level required for posting a message.</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText>The minimum log level required for posting a message.</inlineHelpText>
<label>Minimum Log Level</label>
<required>false</required>
<type>Picklist</type>
<valueSet>
<restricted>true</restricted>
<valueSetDefinition>
<sorted>false</sorted>
<value>
<fullName>Info</fullName>
<default>true</default>
<label>Info</label>
</value>
<value>
<fullName>Warning</fullName>
<default>false</default>
<label>Warning</label>
</value>
<value>
<fullName>Error</fullName>
<default>false</default>
<label>Error</label>
</value>
<value>
<fullName>Critical</fullName>
<default>false</default>
<label>Critical</label>
</value>
</valueSetDefinition>
</valueSet>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Named_Credential__c</fullName>
<description>Unique name of the named credential to use to inject the Slack Hook.</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText>Unique name of the named credential to use to inject the Slack Hook.</inlineHelpText>
<label>Named Credential</label>
<length>255</length>
<required>false</required>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Slack_Hook_Sandbox__c</fullName>
<description>Hook to a slack channel that should be published to when running in a non production org.</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText
>Hook to a slack channel that should be published to when running in a non production org. Keep this blank if no publishing should be done from sandbox for this setting.</inlineHelpText>
<label>Slack Hook Sandbox</label>
<length>90</length>
<required>false</required>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Slack_Hook__c</fullName>
<description>Slack hook the channel where the message should be posted</description>
<externalId>false</externalId>
<fieldManageability>DeveloperControlled</fieldManageability>
<inlineHelpText
>Slack hook the channel where the message should be posted when running in a production org.</inlineHelpText>
<label>Slack Hook</label>
<length>90</length>
<required>false</required>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<GlobalValueSet xmlns="http://soap.sforce.com/2006/04/metadata">
<customValue>
<fullName>NKS</fullName>
<default>false</default>
<label>NKS</label>
</customValue>
<customValue>
<fullName>HOT</fullName>
<default>false</default>
<label>HOT</label>
</customValue>
<customValue>
<fullName>POAB</fullName>
<default>false</default>
<label>POAB</label>
</customValue>
<customValue>
<fullName>AAREG</fullName>
<default>false</default>
<label>AAREG</label>
</customValue>
<customValue>
<fullName>CRM</fullName>
<default>false</default>
<label>CRM</label>
</customValue>
<customValue>
<fullName>IPS</fullName>
<default>false</default>
<label>IPS</label>
</customValue>
<customValue>
<fullName>AVVIK</fullName>
<default>false</default>
<label>Avvik</label>
</customValue>
<customValue>
<fullName>PLATFORCE</fullName>
<default>false</default>
<label>Platforce</label>
</customValue>
<description>List of teams. Mirrors CRM_ApplicationDomain.Domain</description>
<masterLabel>Application Domain</masterLabel>
<sorted>false</sorted>
</GlobalValueSet>
Loading