Interface GovernanceMetricsInterface
public interface GovernanceMetricsInterface
The GovernanceMetricsInterface supports the definition of the metrics that measure the success of the governance program. Typically, a
metric is associated with a governance definition.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearGovernanceDefinitionMetric(String userId, String metricGUID, String governanceDefinitionGUID) Remove the link between a governance metric and a governance definition.voidclearGovernanceExpectations(String userId, String elementGUID) Remove the governance expectations classification from the element.voidclearGovernanceMeasurements(String userId, String elementGUID) Remove the measurements from the element.voidclearGovernanceMeasurementsDataSet(String userId, String dataSetGUID) Remove the governance data designation from the data set.voidclearGovernanceResults(String userId, String metricGUID, String dataSetGUID) Remove the link between a governance metric and a data set.createGovernanceMetric(String userId, GovernanceMetricProperties metricProperties) Create a new governance metric.voiddeleteGovernanceMetric(String userId, String metricGUID) Delete a specific governance metric.findGovernanceMetrics(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of governance metrics for this search string.getGovernanceMetricByGUID(String userId, String metricGUID) Return information about a specific governance metric.voidsetGovernanceExpectations(String userId, String elementGUID, GovernanceExpectationsProperties properties) Classify the element to indicate the expected values of the governance measurements.voidsetGovernanceMeasurements(String userId, String elementGUID, GovernanceMeasurementsProperties properties) Classify the element with relevant governance measurements.voidsetGovernanceMeasurementsDataSet(String userId, String dataSetGUID, GovernanceMeasurementsDataSetProperties properties) Classify the data set to indicate that contains governance measurements.voidsetupGovernanceDefinitionMetric(String userId, String metricGUID, String governanceDefinitionGUID, GovernanceDefinitionMetricProperties rationale) Create a link to show that a governance metric supports the requirements of one of the governance policies.voidsetupGovernanceResults(String userId, String metricGUID, String dataSetGUID, GovernanceResultsProperties properties) Create a link to show which data set holds the measurements for a data set.voidupdateGovernanceMetric(String userId, String metricGUID, boolean isMergeUpdate, GovernanceMetricProperties metricProperties) Update an existing governance metric.
-
Method Details
-
createGovernanceMetric
String createGovernanceMetric(String userId, GovernanceMetricProperties metricProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new governance metric.- Parameters:
userId- calling usermetricProperties- properties of the metric- Returns:
- unique identifier of the metric
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not validorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateGovernanceMetric
void updateGovernanceMetric(String userId, String metricGUID, boolean isMergeUpdate, GovernanceMetricProperties metricProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update an existing governance metric.- Parameters:
userId- calling usermetricGUID- unique identifier of the metric to updateisMergeUpdate- are unspecified properties unchanged (true) or replaced with null?metricProperties- properties to update- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid, documentIdentifier or userId is null; documentIdentifier is not unique; guid is not knownorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
deleteGovernanceMetric
void deleteGovernanceMetric(String userId, String metricGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Delete a specific governance metric.- Parameters:
userId- calling usermetricGUID- unique identifier of the metric to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid is null or not knownorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
setupGovernanceDefinitionMetric
void setupGovernanceDefinitionMetric(String userId, String metricGUID, String governanceDefinitionGUID, GovernanceDefinitionMetricProperties rationale) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a link to show that a governance metric supports the requirements of one of the governance policies. If the link already exists the rationale is updated.- Parameters:
userId- calling usermetricGUID- unique identifier of the governance metricgovernanceDefinitionGUID- unique identifier of the governance definitionrationale- description of how the metric supports the driver- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the guids is null or not knownorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
clearGovernanceDefinitionMetric
void clearGovernanceDefinitionMetric(String userId, String metricGUID, String governanceDefinitionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the link between a governance metric and a governance definition.- Parameters:
userId- calling usermetricGUID- unique identifier of the governance metricgovernanceDefinitionGUID- unique identifier of the governance definition- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the guids is null or not knownorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
setupGovernanceResults
void setupGovernanceResults(String userId, String metricGUID, String dataSetGUID, GovernanceResultsProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a link to show which data set holds the measurements for a data set.- Parameters:
userId- calling usermetricGUID- unique identifier of the governance metricdataSetGUID- unique identifier of the governance definitionproperties- description of how the data set supports the metric- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the guids is null or not knownorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
clearGovernanceResults
void clearGovernanceResults(String userId, String metricGUID, String dataSetGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the link between a governance metric and a data set.- Parameters:
userId- calling usermetricGUID- unique identifier of the governance metricdataSetGUID- unique identifier of the data set- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the guids is null or not knownorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
setGovernanceMeasurementsDataSet
void setGovernanceMeasurementsDataSet(String userId, String dataSetGUID, GovernanceMeasurementsDataSetProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the data set to indicate that contains governance measurements.- Parameters:
userId- calling userdataSetGUID- unique identifier of the metadata element to classifyproperties- properties of the data set's measurements- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGovernanceMeasurementsDataSet
void clearGovernanceMeasurementsDataSet(String userId, String dataSetGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the governance data designation from the data set.- Parameters:
userId- calling userdataSetGUID- unique identifier of the metadata element to classify- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setGovernanceExpectations
void setGovernanceExpectations(String userId, String elementGUID, GovernanceExpectationsProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the element to indicate the expected values of the governance measurements. Can be used to create or update the values.- Parameters:
userId- calling userelementGUID- unique identifier of the metadata element to classifyproperties- properties of the data set's measurements- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGovernanceExpectations
void clearGovernanceExpectations(String userId, String elementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the governance expectations classification from the element.- Parameters:
userId- calling userelementGUID- unique identifier of the metadata element to classify- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setGovernanceMeasurements
void setGovernanceMeasurements(String userId, String elementGUID, GovernanceMeasurementsProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the element with relevant governance measurements. Can be used to create or update the values.- Parameters:
userId- calling userelementGUID- unique identifier of the metadata element to classifyproperties- properties of the data set's measurements- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGovernanceMeasurements
void clearGovernanceMeasurements(String userId, String elementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the measurements from the element.- Parameters:
userId- calling userelementGUID- unique identifier of the metadata element to classify- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceMetricByGUID
GovernanceMetricElement getGovernanceMetricByGUID(String userId, String metricGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return information about a specific governance metric.- Parameters:
userId- calling usermetricGUID- unique identifier for the governance metrics- Returns:
- properties of the governance metric
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- metricGUID or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
findGovernanceMetrics
List<GovernanceMetricElement> findGovernanceMetrics(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Retrieve the list of governance metrics for this search string.- Parameters:
userId- the name of the calling user.searchString- value to search for (supports wildcards).startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of metrics
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid invalid or the search parameter is not correctly specified, or is null.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the server is not available.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the calling user is not authorized to issue the call.
-