Class SinkInfo

    • Method Detail

      • getName

        public String getName()
        Returns the name of the sink. Example: my-severe-errors-to-pubsub. Sink identifiers are limited to 1000 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-..
      • getFilter

        public String getFilter()
        Returns an advanced logs filter. Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified in getVersionFormat(), regardless of the format of the log entry that wa originally written to Cloud Logging. Example (V2 format): logName=projects/my-projectid/logs/syslog AND severity>=ERROR.
        See Also:
        Advanced Log Filters
      • getVersionFormat

        public SinkInfo.VersionFormat getVersionFormat()
        Returns the log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Google Cloud Logging.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toBuilder

        public SinkInfo.Builder toBuilder()
        Returns a builder for this SinkInfo object.