aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/cdn/v1/raw_logs.proto
blob: 04b2a5dabf5cdb453a4ab3511a7e18fd507bf9de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
syntax = "proto3";

package yandex.cloud.cdn.v1;

import "yandex/cloud/validation.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/cdn/v1;cdn";
option java_package = "yandex.cloud.api.cdn.v1";

// Provider side statuses of Raw logs processing.
enum RawLogsStatus {
    RAW_LOGS_STATUS_UNSPECIFIED = 0;
    // Raw logs wasn't activated.
    RAW_LOGS_STATUS_NOT_ACTIVATED = 1;
    // Raw logs was activated, and logs storing process works as expected.
    RAW_LOGS_STATUS_OK = 2;
    // Raw logs was activated, but CDN provider has been failed to store logs.
    RAW_LOGS_STATUS_FAILED = 3;
    // Raw logs was activated, but logs storing process is expected.
    RAW_LOGS_STATUS_PENDING = 4;
}

// User settings for Raw logs.
message RawLogsSettings {
    // Destination S3 bucket name, note that the suer should be owner of the bucket.
    string bucket_name = 1 [(required) = true, (length) = "<=1024"];
    // Bucket region, unused for now, could be blank.
    string bucket_region = 2 [(length) = "<=50"];

    // file_prefix: prefix each log object name with specified prefix.
    //
    // The prefix makes it simpler for you to locate the log objects.
    // For example, if you specify the prefix value logs/, each log object that
    // S3 creates begins with the logs/ prefix in its key, so pseudo S3 folders
    // could be setup.
    string file_prefix = 3 [(length) = "<=50"];
}