New file available in bucket

When a file is uploaded to tenant's bucket, this event is created to notify client about it. So, an event-based consumer can be implemented to download files from Pismo.

Type: object
Domain: dataplatform
Event: new_bucket_object
Version: 1

|
bucket_name required

Title: Bucket name where file was updloaded to
Type: string
Example:
pismo-dataplatform-tn-343f2b55-29f7-4c1d-8dd7-474681f178df

object_name required

Title: Full path from object uploaded
Type: string
Example:
some/full_path/to/object.txt
reports/report_name/type=daily/year=2020/month=4/day=1/some_file.parquet
main_stream/2020/4/1/23/some_file_name

object_size required

Title: Object size (in bytes)
Type: number
Format: int
Example:
3
5293
1029382

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "New file available in bucket",
    "description": "When a file is uploaded to tenant's bucket, this event is created to notify client about it. So, an event-based consumer can be implemented to download files from Pismo.",
    "required": [
        "bucket_name",
        "object_name",
        "object_size"
    ],
    "properties": {
        "bucket_name": {
            "type": "string",
            "title": "Bucket name where file was updloaded to",
            "examples": [
                "pismo-dataplatform-tn-343f2b55-29f7-4c1d-8dd7-474681f178df"
            ]
        },
        "object_name": {
            "type": "string",
            "title": "Full path from object uploaded",
            "examples": [
                "some/full_path/to/object.txt",
                "reports/report_name/type=daily/year=2020/month=4/day=1/some_file.parquet",
                "main_stream/2020/4/1/23/some_file_name"
            ]
        },
        "object_size": {
            "type": "number",
            "format": "int",
            "title": "Object size (in bytes)",
            "examples": [
                3,
                5293,
                1029382
            ]
        }
    }
}
{
    "bucket_name": "pismo-dataplatform-tn-343f2b55-29f7-4c1d-8dd7-474681f178df",
    "object_name": "some/full_path/to/object.txt",
    "object_size": 3
}