# Copyright (c) 2020-2021 TriggerMesh Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Sample AWSCloudWatchSource object. # # For a list and description of all available attributes, execute the following command against a cluster where this # Custom Resource Definition has been registered: # # kubectl explain awscloudwatchsources.sources.triggermesh.io apiVersion: sources.triggermesh.io/v1alpha1 kind: AWSCloudWatchSource metadata: name: sample spec: region: us-west-2 pollingInterval: 2m metricQueries: - name: testquery metric: period: 60 stat: p90 unit: Milliseconds metric: metricName: Duration namespace: AWS/Lambda dimensions: - name: FunctionName value: lambdadumper credentials: accessKeyID: valueFromSecret: name: awscreds key: aws_access_key_id secretAccessKey: valueFromSecret: name: awscreds key: aws_secret_access_key sink: ref: apiVersion: eventing.knative.dev/v1 kind: Broker name: default