DataHubRetention
Aspects
dataHubRetentionKey
Key for a DataHub Retention
Schema
{
  "type": "record",
  "Aspect": {
    "name": "dataHubRetentionKey"
  },
  "name": "DataHubRetentionKey",
  "namespace": "com.linkedin.metadata.key",
  "fields": [
    {
      "type": "string",
      "name": "entityName",
      "doc": "Entity name to apply retention to. * (or empty) for applying defaults."
    },
    {
      "type": "string",
      "name": "aspectName",
      "doc": "Aspect name to apply retention to. * (or empty) for applying defaults."
    }
  ],
  "doc": "Key for a DataHub Retention"
}
dataHubRetentionConfig
None
Schema
{
  "type": "record",
  "Aspect": {
    "name": "dataHubRetentionConfig"
  },
  "name": "DataHubRetentionConfig",
  "namespace": "com.linkedin.retention",
  "fields": [
    {
      "type": {
        "type": "record",
        "name": "Retention",
        "namespace": "com.linkedin.retention",
        "fields": [
          {
            "type": [
              "null",
              {
                "type": "record",
                "name": "VersionBasedRetention",
                "namespace": "com.linkedin.retention",
                "fields": [
                  {
                    "type": "int",
                    "name": "maxVersions"
                  }
                ],
                "doc": "Keep max N latest records"
              }
            ],
            "name": "version",
            "default": null
          },
          {
            "type": [
              "null",
              {
                "type": "record",
                "name": "TimeBasedRetention",
                "namespace": "com.linkedin.retention",
                "fields": [
                  {
                    "type": "int",
                    "name": "maxAgeInSeconds"
                  }
                ],
                "doc": "Keep records that are less than X seconds old"
              }
            ],
            "name": "time",
            "default": null
          }
        ],
        "doc": "Base class that encapsulates different retention policies.\nOnly one of the fields should be set"
      },
      "name": "retention"
    }
  ]
}
Relationships
Global Metadata Model
