SDK reference / Models / Discovery

DiscoveryJob

Kind: class

Namespace: Egulu.Sdk.Models.Discovery

A discovery job: what to scan and within which limits.

Properties

NameTypeJSON nameDescription
Bucketstring?bucketThe ID of one bucket of this project and location. Another project's bucket is refused.
ClassesList<string>?classesDetector classes to look for: `credentials`, `payment`, `national-id`, `contact`; all four when omitted.
CreateTimeDateTimeOffset?createTimeThe createTime property
Descriptionstring?descriptionThe description property
DisplayNamestring?displayNameThe displayName property
Enabledbool?enabledFalse pauses the schedule.
Etagstring?etag"{generation}"; send it back in If-Match.
FindingThresholdint?findingThresholdA finding is raised for an object and class with at least this many matches (default 1).
LabelsModels.Discovery.DiscoveryJob_labels?labelsThe labels property
LastRunStateModels.Discovery.DiscoveryRunState?lastRunStateThe state of a discovery run.
LastRunTimeDateTimeOffset?lastRunTimeThe lastRunTime property
MaxByteslong?maxBytesAt most this many bytes read per run (default 10 GiB; at most 100 GiB).
MaxObjectByteslong?maxObjectBytesAn object larger than this is skipped and counted (default 64 MiB; at most 256 MiB).
MaxObjectsint?maxObjectsAt most this many objects per run (default 100,000; at most 1,000,000).
Namestring?nameprojects/{project}/locations/{location}/discoveryJobs/{discoveryJob}.
NextRunTimeDateTimeOffset?nextRunTimeThe nextRunTime property
PrefixesList<string>?prefixes0 to 20 key prefixes under the bucket (no `..`, no leading `/`); empty scans the whole bucket.
SamplePerPrefixint?samplePerPrefixWith `PER_PREFIX`: how many text objects per prefix (1 to 10,000).
Samplingstring?sampling`ALL` (default) or `PER_PREFIX`.
Schedulestring?scheduleA cron expression of five fields, in UTC, at most once a day; empty means run by hand.
Uidstring?uidThe uid property
UpdateTimeDateTimeOffset?updateTimeThe updateTime property