Class GovernanceMetricsRESTServices

java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.server.GovernanceMetricsRESTServices

public class GovernanceMetricsRESTServices extends Object
GovernanceMetricsRESTServices is the server-side for managing governance metrics and their links to all types of governance definitions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    clearGovernanceDefinitionMetric(String serverName, String userId, String metricGUID, String governanceDefinitionGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
    Remove the link between a governance metric and a governance definition.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    clearGovernanceExpectations(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
    Remove the governance expectations classification from the element.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    clearGovernanceMeasurements(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
    Remove the measurements from the element.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    clearGovernanceMeasurementsDataSet(String serverName, String userId, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
    Remove the governance data designation from the data set.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    clearGovernanceResults(String serverName, String userId, String metricGUID, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
    Remove the link between a governance metric and a data set.
    org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse
    createGovernanceMetric(String serverName, String userId, org.odpi.openmetadata.commonservices.ffdc.rest.ReferenceableRequestBody requestBody)
    Create a new governance metric.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    deleteGovernanceMetric(String serverName, String userId, String metricGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
    Delete a specific governance metric.
    org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceMetricsResponse
    findGovernanceMetrics(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
    Retrieve the list of governance metrics for this search string.
    org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceMetricResponse
    getGovernanceMetricByGUID(String serverName, String userId, String metricGUID)
    Return information about a specific governance metric.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    setGovernanceExpectations(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ClassificationRequestBody requestBody)
    Classify the element to indicate the expected values of the governance measurements.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    setGovernanceMeasurements(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ClassificationRequestBody requestBody)
    Classify the element with relevant governance measurements.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    setGovernanceMeasurementsDataSet(String serverName, String userId, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ClassificationRequestBody requestBody)
    Classify the data set to indicate that contains governance measurements.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    setupGovernanceDefinitionMetric(String serverName, String userId, String metricGUID, String governanceDefinitionGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
    Create a link to show that a governance metric supports the requirements of one of the governance policies.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    setupGovernanceResults(String serverName, String userId, String metricGUID, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
    Create a link to show which data set holds the measurements for a data set.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    updateGovernanceMetric(String serverName, String userId, String metricGUID, boolean isMergeUpdate, org.odpi.openmetadata.commonservices.ffdc.rest.ReferenceableRequestBody requestBody)
    Update an existing governance metric.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GovernanceMetricsRESTServices

      public GovernanceMetricsRESTServices()
      Default constructor
  • Method Details

    • createGovernanceMetric

      public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createGovernanceMetric(String serverName, String userId, org.odpi.openmetadata.commonservices.ffdc.rest.ReferenceableRequestBody requestBody)
      Create a new governance metric.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      requestBody - properties of the metric
      Returns:
      unique identifier of the metric or InvalidParameterException typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not valid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • updateGovernanceMetric

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateGovernanceMetric(String serverName, String userId, String metricGUID, boolean isMergeUpdate, org.odpi.openmetadata.commonservices.ffdc.rest.ReferenceableRequestBody requestBody)
      Update an existing governance metric.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier of the metric to update
      isMergeUpdate - are unspecified properties unchanged (true) or replaced with null?
      requestBody - properties to update
      Returns:
      void or InvalidParameterException invalid guid or properties PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • deleteGovernanceMetric

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse deleteGovernanceMetric(String serverName, String userId, String metricGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
      Delete a specific governance metric.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier of the metric to remove
      requestBody - external source request body
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • setupGovernanceDefinitionMetric

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupGovernanceDefinitionMetric(String serverName, String userId, String metricGUID, String governanceDefinitionGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
      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:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier of the governance metric
      governanceDefinitionGUID - unique identifier of the governance definition
      requestBody - description of how the metric supports the metric
      Returns:
      void or InvalidParameterException invalid parameter PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • clearGovernanceDefinitionMetric

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceDefinitionMetric(String serverName, String userId, String metricGUID, String governanceDefinitionGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
      Remove the link between a governance metric and a governance definition.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier of the governance metric
      governanceDefinitionGUID - unique identifier of the governance definition
      requestBody - relationship properties
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • setupGovernanceResults

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupGovernanceResults(String serverName, String userId, String metricGUID, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
      Create a link to show which data set holds the measurements for a data set.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier of the governance metric
      dataSetGUID - unique identifier of the governance definition
      requestBody - description of how the data set supports the metric
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • clearGovernanceResults

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceResults(String serverName, String userId, String metricGUID, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody)
      Remove the link between a governance metric and a data set.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier of the governance metric
      dataSetGUID - unique identifier of the data set
      requestBody - relationship properties
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • setGovernanceMeasurementsDataSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setGovernanceMeasurementsDataSet(String serverName, String userId, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ClassificationRequestBody requestBody)
      Classify the data set to indicate that contains governance measurements.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      dataSetGUID - unique identifier of the metadata element to classify
      requestBody - properties of the data set's measurements
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • clearGovernanceMeasurementsDataSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceMeasurementsDataSet(String serverName, String userId, String dataSetGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
      Remove the governance data designation from the data set.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      dataSetGUID - unique identifier of the metadata element to classify
      requestBody - external source properties
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • setGovernanceExpectations

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setGovernanceExpectations(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ClassificationRequestBody requestBody)
      Classify the element to indicate the expected values of the governance measurements. Can be used to create or update the values.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      elementGUID - unique identifier of the metadata element to classify
      requestBody - expectation properties
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • clearGovernanceExpectations

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceExpectations(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
      Remove the governance expectations classification from the element.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      elementGUID - unique identifier of the metadata element to classify
      requestBody - external source properties
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • setGovernanceMeasurements

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setGovernanceMeasurements(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ClassificationRequestBody requestBody)
      Classify the element with relevant governance measurements. Can be used to create or update the values.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      elementGUID - unique identifier of the metadata element to classify
      requestBody - measurements
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • clearGovernanceMeasurements

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceMeasurements(String serverName, String userId, String elementGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody)
      Remove the measurements from the element.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      elementGUID - unique identifier of the metadata element to classify
      requestBody - external source properties
      Returns:
      void or InvalidParameterException invalid guid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • getGovernanceMetricByGUID

      public org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceMetricResponse getGovernanceMetricByGUID(String serverName, String userId, String metricGUID)
      Return information about a specific governance metric.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      metricGUID - unique identifier for the governance metric
      Returns:
      properties of the governance metric or InvalidParameterException typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not valid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
    • findGovernanceMetrics

      public org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceMetricsResponse findGovernanceMetrics(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
      Retrieve the list of governance metrics for this search string.
      Parameters:
      serverName - name of the server instance to connect to
      userId - the name of the calling user.
      requestBody - 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 or InvalidParameterException typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not valid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem