---
name: log-cache-blackbox

templates:
  bpm.yml.erb: config/bpm.yml
  log_cache_ca.crt.erb: config/certs/log_cache_ca.crt
  log_cache.crt.erb: config/certs/log_cache.crt
  log_cache.key.erb: config/certs/log_cache.key

packages:
- log-cache-blackbox

consumes:
- name: log-cache
  type: log-cache
- name: cloud_controller
  type: cloud_controller
  optional: true

properties:
  emission_interval:
    description: "The interval between emitted test metrics"
    default: 1s
  sample_interval:
    description: "The interval between samples"
    default: 1m
  window_interval:
    description: "The trailing interval over which to measure metric retrieval"
    default: 10m
  window_lag:
    description: "How far in the past the measurement should be taken"
    default: 1m
  source_id:
    description: "Source ID for metadata of both test and result metrics"
    default: log-cache-blackbox

  cf_blackbox.enabled:
    description: "Test HTTP egress which uses CF-based UAA authentication"
    default: false
  cf_blackbox.client_id:
    description: "UAA client ID for egress testing - requires logs.admin scope.
      Required when cf_blackbox.enabled"
    optional: true
  cf_blackbox.client_secret:
    description: "UAA client secret. Required when cf_blackbox.enabled"
    optional: true
  cf_blackbox.skip_tls_verify:
    description: "Skip certificate validation when testing HTTP egress"
    default: false
