All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hub-client.0.14.1-4rc3.source-code.MetadataChangeProposal.avsc Maven / Gradle / Ivy

There is a newer version: 0.14.1-12rc1
Show newest version
{
  "type" : "record",
  "name" : "MetadataChangeProposal",
  "namespace" : "com.linkedin.pegasus2avro.mxe",
  "doc" : "Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead.",
  "fields" : [ {
    "name" : "auditHeader",
    "type" : [ "null", {
      "type" : "record",
      "name" : "KafkaAuditHeader",
      "namespace" : "com.linkedin.events",
      "doc" : "This header records information about the context of an event as it is emitted into kafka and is intended to be used by the kafka audit application.  For more information see go/kafkaauditheader",
      "fields" : [ {
        "name" : "time",
        "type" : "long",
        "doc" : "The time at which the event was emitted into kafka.",
        "compliance" : [ {
          "policy" : "EVENT_TIME"
        } ]
      }, {
        "name" : "server",
        "type" : "string",
        "doc" : "The fully qualified name of the host from which the event is being emitted.",
        "compliance" : "NONE"
      }, {
        "name" : "instance",
        "type" : [ "null", "string" ],
        "doc" : "The instance on the server from which the event is being emitted. e.g. i001",
        "default" : null,
        "compliance" : "NONE"
      }, {
        "name" : "appName",
        "type" : "string",
        "doc" : "The name of the application from which the event is being emitted. see go/appname",
        "compliance" : "NONE"
      }, {
        "name" : "messageId",
        "type" : {
          "type" : "fixed",
          "name" : "UUID",
          "size" : 16
        },
        "doc" : "A unique identifier for the message",
        "compliance" : "NONE"
      }, {
        "name" : "auditVersion",
        "type" : [ "null", "int" ],
        "doc" : "The version that is being used for auditing. In version 0, the audit trail buckets events into 10 minute audit windows based on the EventHeader timestamp. In version 1, the audit trail buckets events as follows: if the schema has an outer KafkaAuditHeader, use the outer audit header timestamp for bucketing; else if the EventHeader has an inner KafkaAuditHeader use that inner audit header's timestamp for bucketing",
        "default" : null,
        "compliance" : "NONE"
      }, {
        "name" : "fabricUrn",
        "type" : [ "null", "string" ],
        "doc" : "The fabricUrn of the host from which the event is being emitted. Fabric Urn in the format of urn:li:fabric:{fabric_name}. See go/fabric.",
        "default" : null,
        "compliance" : "NONE"
      }, {
        "name" : "clusterConnectionString",
        "type" : [ "null", "string" ],
        "doc" : "This is a String that the client uses to establish some kind of connection with the Kafka cluster. The exact format of it depends on specific versions of clients and brokers. This information could potentially identify the fabric and cluster with which the client is producing to or consuming from.",
        "default" : null,
        "compliance" : "NONE"
      } ]
    } ],
    "doc" : "Kafka audit header. Currently remains unused in the open source.",
    "default" : null
  }, {
    "name" : "entityType",
    "type" : "string",
    "doc" : "Type of the entity being written to"
  }, {
    "name" : "entityUrn",
    "type" : [ "null", "string" ],
    "doc" : "Urn of the entity being written",
    "default" : null,
    "java" : {
      "class" : "com.linkedin.pegasus2avro.common.urn.Urn"
    }
  }, {
    "name" : "entityKeyAspect",
    "type" : [ "null", {
      "type" : "record",
      "name" : "GenericAspect",
      "doc" : "Generic record structure for serializing an Aspect",
      "fields" : [ {
        "name" : "value",
        "type" : "bytes",
        "doc" : "The value of the aspect, serialized as bytes."
      }, {
        "name" : "contentType",
        "type" : "string",
        "doc" : "The content type, which represents the fashion in which the aspect was serialized.\nThe only type currently supported is application/json."
      } ]
    } ],
    "doc" : "Key aspect of the entity being written",
    "default" : null
  }, {
    "name" : "changeType",
    "type" : {
      "type" : "enum",
      "name" : "ChangeType",
      "namespace" : "com.linkedin.pegasus2avro.events.metadata",
      "doc" : "Descriptor for a change action",
      "symbols" : [ "UPSERT", "CREATE", "UPDATE", "DELETE", "PATCH", "RESTATE", "CREATE_ENTITY" ],
      "symbolDocs" : {
        "CREATE" : "insert if not exists. otherwise fail",
        "CREATE_ENTITY" : "insert if entity not exists. otherwise fail",
        "DELETE" : "delete action",
        "PATCH" : "patch the changes instead of full replace",
        "RESTATE" : "Restate an aspect, eg. in a index refresh.",
        "UPDATE" : "NOT SUPPORTED YET\nupdate if exists. otherwise fail",
        "UPSERT" : "insert if not exists. otherwise update"
      }
    },
    "doc" : "Type of change being proposed"
  }, {
    "name" : "aspectName",
    "type" : [ "null", "string" ],
    "doc" : "Aspect of the entity being written to\nNot filling this out implies that the writer wants to affect the entire entity\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.",
    "default" : null
  }, {
    "name" : "aspect",
    "type" : [ "null", "GenericAspect" ],
    "doc" : "The value of the new aspect.",
    "default" : null
  }, {
    "name" : "systemMetadata",
    "type" : [ "null", {
      "type" : "record",
      "name" : "SystemMetadata",
      "doc" : "Metadata associated with each metadata change that is processed by the system",
      "fields" : [ {
        "name" : "lastObserved",
        "type" : [ "long", "null" ],
        "doc" : "The timestamp the metadata was observed at",
        "default" : 0
      }, {
        "name" : "runId",
        "type" : [ "string", "null" ],
        "doc" : "The original run id that produced the metadata. Populated in case of batch-ingestion.",
        "default" : "no-run-id-provided"
      }, {
        "name" : "lastRunId",
        "type" : [ "string", "null" ],
        "doc" : "The last run id that produced the metadata. Populated in case of batch-ingestion.",
        "default" : "no-run-id-provided"
      }, {
        "name" : "pipelineName",
        "type" : [ "null", "string" ],
        "doc" : "The ingestion pipeline id that produced the metadata. Populated in case of batch ingestion.",
        "default" : null
      }, {
        "name" : "registryName",
        "type" : [ "null", "string" ],
        "doc" : "The model registry name that was used to process this event",
        "default" : null
      }, {
        "name" : "registryVersion",
        "type" : [ "null", "string" ],
        "doc" : "The model registry version that was used to process this event",
        "default" : null
      }, {
        "name" : "properties",
        "type" : [ "null", {
          "type" : "map",
          "values" : "string"
        } ],
        "doc" : "Additional properties",
        "default" : null
      }, {
        "name" : "version",
        "type" : [ "null", "string" ],
        "doc" : "Aspect version\n   Initial implementation will use the aspect version's number, however stored as\n   a string in the case where a different aspect versioning scheme is later adopted.",
        "default" : null
      } ]
    } ],
    "doc" : "System properties that one might want to attach to an event",
    "default" : null
  }, {
    "name" : "headers",
    "type" : [ "null", {
      "type" : "map",
      "values" : "string"
    } ],
    "doc" : "Headers - intended to mimic http headers",
    "default" : null
  } ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy