Integraciones
Breadcrumbs

YAML de ejemplo - Plugin GC BigQuery

YAML
####################################################################################################
# Example YAML for Tot Plugin GCP BigQuery                                                         #
#                                                                                                  #
# This file has all the technical properties that can be edited for the client.                    #
# These properties have a default value in the application,                                        #
# so there is no necessity to configure them.                                                      #
# Only configure these properties if they are going to be different to the value of this file,     #
# this will make your files more clean and readable.                                               #
####################################################################################################

#########################
### Server properties ###
#########################
server:
  # the port where the service will be listening
  port: 15002

#############################
### Tot Plugin properties ###
#############################
totplugin:
  server:
    # the tot server list of URLs, tot can have more than one instance running.
    urls:
      - http://totserver/totserver/
  connection:
    # Name of the instance, multiples instance can be configured
    - name: {instance-name}
      # list of aris to define the different plugin functionalities
      aris:
        - ari: "anja:totplugin:extract:/Google/gcpBigQuery/devQA/"
        - ari: "anja:totplugin:sample:/Google/gcpBigQuery/devQA/"
        - ari: "anja:totplugin:edit:/Google/gcpBigQuery/devQA/"
        - ari: "anja:totplugin:im:/Google/gcpBigQuery/devQA/"
          imAri: "anja:totplugin:im:/Google/gcpIam/devQA/"
      # value used in anjana to separate the values in a multi value attribute value
      attributeSeparator: {anjana_attribute_separator}
  ###############################################################################################################
  ##  BigQuery connection properties
  ## credentialsContent: the json to download from GCP with the credentials to connect with the GCP Server
  ## path-separator: character to be used by Anjana for the path
  ## sampleRows: number of sample rows
  ## sampleQueryPattern: the query to extract the sample with
  ## obfuscation-string: string to replace information when it is obfuscated
  ###############################################################################################################
      technology:
        credentialsContent: |
          {
            "type": "service_account",
            "project_id": {project_id},
            "private_key_id": {private_key_id},
            "private_key": "-----BEGIN PRIVATE KEY----------END PRIVATE KEY-----\n",
            "client_email": {client_email},
            "client_id": {client_id},
            "auth_uri": "https://accounts.google.com/o/oauth2/auth",
            "token_uri": "https://oauth2.googleapis.com/token",
            "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
            "client_x509_cert_url": {client_x509_cert_url}
          }
        sample-rows: 15
        path-separator: "/"
        obfuscation-string: "*****"

########################
##  Logs properties  ###
########################
logging:
  pattern:
    # Pattern to convert logs in the convenient format for the client
    console: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} [TOT-PLUGIN-GCP-BIGQUERY] %clr(${LOG_LEVEL_PATTERN:%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}"
  # Mark the level of log to show for every package. ERROR > WARN > INFO > DEBUG > TRACE
  level:
    # The main log level this is the base fot all logs
    root: info
    # Every package of code can be marked with a different log level, every package of code printed on log is selectable to have a record here and mark a log level
    com.anjana: DEBUG

################################
## Hecate(Eureka) properties ###
################################
eureka:
  client:
    serviceUrl:
      # the url where Tot is listening
      defaultZone: http://totserver/totserver/eureka