Invantive-DokumentationTeil von Invantive Cloud
Invantive SupportforenAnmelden / Eintragen

Amazon CloudWatch Konfiguration

Beispiele

Das folgende JSON ist ein Beispiel für diese standardisierte Konfigurationskomponente:

{ "Enable": false
, "Region": "eu-central-1"
, "AccessKey": "ANACCESSKEY"
, "SecretKey": "ASECRETKEY"
, "LogGroup": "/acme/prod/requests/my-app/node"
, "LibraryLogFileNamePath": "/mnt/my-app/logs/aws-errors.txt"
}

Definition

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/CloudWatchConfig.schema.json",
  "title": "CloudWatchConfig",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "Enabled": {
      "type": "boolean",
      "description": "Whether Amazon CloudWatch logging is enabled."
    },
    "Region": {
      "type": ["string", "null"],
      "description": "AWS region."
    },
    "LibraryLogFileNamePath": {
      "type": ["string", "null"],
      "description": "File name and path to the AWS Cloudwatch log file"
    },
    "MaxQueuedMessages": {
      "type": "integer",
      "description": "Maximum number of messages queued after which the messages are flushed to AWS CloudWatch log."
    },
    "BatchSizeInBytes": {
      "type": "integer",
      "description": "Size in bytes after which the messages are flushed to AWS CloudWatch log."
    },
    "BatchPushIntervalSec": {
      "type": "integer",
      "description": "Interval in seconds after which the messages are flushed to AWS CloudWatch log."
    },
    "AccessKey": {
      "type": ["string", "null"],
      "description": "AWS access key."
    },
    "SecretKey": {
      "type": ["string", "null"],
      "description": "AWS secret key."
    },
    "LogGroup": {
      "type": ["string", "null"],
      "description": "Gets or sets the CloudWatch log group."
    }
  }
}