Skip to content
Merged
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
2 changes: 1 addition & 1 deletion EgeriaContentPacksGUIDMap.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/APIsContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/ApacheAtlasContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/ApacheKafkaContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CoreContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/EgeriaContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/FilesContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/JacquardHarvesterContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/ObservabilityContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/OpenLineageContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/OrganizationInsightContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/PostgresContentPack.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/UnityCatalogContentPack.omarchive

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ distributions {
from { project(':open-metadata-implementation:adapters:open-connectors:dynamic-archiver-connectors').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:governance-action-connectors').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:nanny-connectors').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:organization-insights').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:report-generating-connectors').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:metadata-security-connectors:open-metadata-access-security-connector').jar }
from { project(':open-metadata-implementation:adapters:open-connectors:integration-connectors:files-integration-connectors').jar }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsAuditCode;
import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsErrorCode;
import org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogGuard;
import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition;
import org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition;
import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
Expand All @@ -22,6 +21,7 @@
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;
import org.odpi.openmetadata.frameworks.openwatchdog.GenericWatchdogActionListener;
import org.odpi.openmetadata.frameworks.openwatchdog.WatchdogActionServiceConnector;
import org.odpi.openmetadata.frameworks.openwatchdog.controls.WatchdogActionGuard;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -92,15 +92,15 @@ else if (notificationTypeProperties.getQualifiedName() != null)
{
List<String> outputGuards = new ArrayList<>();

outputGuards.add(GenericWatchdogGuard.MONITORING_FAILED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_FAILED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.UNEXPECTED_EXCEPTION.getMessageDefinition(watchdogActionServiceName,
error.getClass().getName(),
methodName,
error.getMessage());
auditLog.logException(methodName, completionMessage, error);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_FAILED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_FAILED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down Expand Up @@ -226,15 +226,15 @@ else if (event.getEventType() == OpenMetadataEventType.ELEMENT_DELETED)
try
{
List<String> outputGuards = new ArrayList<>();
outputGuards.add(GenericWatchdogGuard.MONITORING_FAILED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_FAILED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.UNEXPECTED_EXCEPTION.getMessageDefinition(watchdogActionServiceName,
error.getClass().getName(),
methodName,
error.getMessage());
auditLog.logException(methodName, completionMessage, error);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_FAILED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_FAILED.getCompletionStatus(),
outputGuards,
null,
null,
Expand All @@ -258,12 +258,12 @@ else if (event.getEventType() == OpenMetadataEventType.ELEMENT_DELETED)
try
{
List<String> outputGuards = new ArrayList<>();
outputGuards.add(GenericWatchdogGuard.MONITORING_STOPPED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_COMPLETED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.SERVICE_COMPLETED_SUCCESSFULLY.getMessageDefinition(watchdogActionServiceName);
auditLog.logMessage(methodName, completionMessage);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_STOPPED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_COMPLETED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsAuditCode;
import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsErrorCode;
import org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogGuard;
import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition;
import org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition;
import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
Expand All @@ -16,6 +15,7 @@
import org.odpi.openmetadata.frameworks.openmetadata.metadataelements.OpenMetadataRootElement;
import org.odpi.openmetadata.frameworks.openmetadata.properties.governance.NotificationTypeProperties;
import org.odpi.openmetadata.frameworks.openwatchdog.WatchdogActionServiceConnector;
import org.odpi.openmetadata.frameworks.openwatchdog.controls.WatchdogActionGuard;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -74,15 +74,15 @@ else if (notificationTypeProperties.getQualifiedName() != null)
{
List<String> outputGuards = new ArrayList<>();

outputGuards.add(GenericWatchdogGuard.MONITORING_FAILED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_FAILED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.UNEXPECTED_EXCEPTION.getMessageDefinition(watchdogActionServiceName,
error.getClass().getName(),
methodName,
error.getMessage());
auditLog.logException(methodName, completionMessage, error);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_FAILED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_FAILED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down Expand Up @@ -123,12 +123,12 @@ else if (notificationTypeProperties.getQualifiedName() != null)
try
{
List<String> outputGuards = new ArrayList<>();
outputGuards.add(GenericWatchdogGuard.MONITORING_STOPPED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_COMPLETED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.SERVICE_COMPLETED_SUCCESSFULLY.getMessageDefinition(watchdogActionServiceName);
auditLog.logMessage(methodName, completionMessage);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_STOPPED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_COMPLETED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsAuditCode;
import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsErrorCode;
import org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericWatchdogGuard;
import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition;
import org.odpi.openmetadata.frameworks.auditlog.messagesets.MessageDefinition;
import org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException;
Expand All @@ -19,6 +18,7 @@
import org.odpi.openmetadata.frameworks.openmetadata.types.OpenMetadataType;
import org.odpi.openmetadata.frameworks.openwatchdog.GenericWatchdogActionListener;
import org.odpi.openmetadata.frameworks.openwatchdog.WatchdogActionServiceConnector;
import org.odpi.openmetadata.frameworks.openwatchdog.controls.WatchdogActionGuard;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -109,12 +109,12 @@ public void run()
try
{
List<String> outputGuards = new ArrayList<>();
outputGuards.add(GenericWatchdogGuard.MONITORING_STOPPED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_COMPLETED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.SERVICE_COMPLETED_SUCCESSFULLY.getMessageDefinition(watchdogActionServiceName);
auditLog.logMessage(methodName, completionMessage);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_STOPPED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_COMPLETED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down Expand Up @@ -145,15 +145,15 @@ public void run()
{
List<String> outputGuards = new ArrayList<>();

outputGuards.add(GenericWatchdogGuard.MONITORING_FAILED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_FAILED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.UNEXPECTED_EXCEPTION.getMessageDefinition(watchdogActionServiceName,
error.getClass().getName(),
methodName,
error.getMessage());
auditLog.logException(methodName, completionMessage, error);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_FAILED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_FAILED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down Expand Up @@ -240,15 +240,15 @@ else if (event.getEventType() == OpenMetadataEventType.ELEMENT_DELETED)
try
{
List<String> outputGuards = new ArrayList<>();
outputGuards.add(GenericWatchdogGuard.MONITORING_FAILED.getName());
outputGuards.add(WatchdogActionGuard.MONITORING_FAILED.getName());

AuditLogMessageDefinition completionMessage = GovernanceActionConnectorsAuditCode.UNEXPECTED_EXCEPTION.getMessageDefinition(watchdogActionServiceName,
error.getClass().getName(),
methodName,
error.getMessage());
auditLog.logException(methodName, completionMessage, error);

watchdogContext.recordCompletionStatus(GenericWatchdogGuard.MONITORING_FAILED.getCompletionStatus(),
watchdogContext.recordCompletionStatus(WatchdogActionGuard.MONITORING_FAILED.getCompletionStatus(),
outputGuards,
null,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public enum GovernanceActionTypeDefinition
ONE_TIME_NOTIFICATION("one-time-notification",
"e1f5aa39-41d0-4894-aa6d-407fe1189fcd"),

/**
* award-karma-points
*/
AWARD_KARMA_POINTS("award-karma-points",
"de681791-d978-4d5a-9828-6e19025e3a17"),

/**
* provision-tabular-data-set
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,26 @@ public enum OrgInsightAuditCode implements AuditLogMessageSet
"The connector is unable to process the current request.",
"Use the details from the error message to determine the cause of the error and retry the request once it is resolved."),

/**
* ORGANIZATION-INSIGHTS-0016 - The {0} governance action service received a {1} exception when it registered its completion status.
* The exception's message is: {2}
*/
UNABLE_TO_SET_COMPLETION_STATUS("ORGANIZATION-INSIGHTS-0016",
AuditLogRecordSeverityLevel.INFO,
"The {0} governance action service received a {1} exception when it registered its completion status. The exception's message is: {2}",
"The governance action throws a GovernanceServiceException in the hope that the hosting server is able to clean up.",
"Review the exception messages that are logged about the same time as one of them will point to the root cause of the error."),

/**
* ORGANIZATION-INSIGHTS-0017 - The {0} governance action service received a {1} exception when it registered a listener with the
* governance context. The exception's message is: {2}
*/
UNABLE_TO_REGISTER_LISTENER("ORGANIZATION-INSIGHTS-0017",
AuditLogRecordSeverityLevel.INFO,
"The {0} governance action service received a {1} exception when it registered a listener with the governance context. The exception's message is: {2}",
"The governance action service throws a GovernanceServiceException.",
"This is likely to be a configuration error. Review the description of the exception's message to understand what is not set up correctly and " +
"and follow its instructions."),
;

private final String logMessageId;
Expand Down
Loading
Loading