Skip to content

Script Sample

This page is generated from the checked-in sample manifest at config/samples/apmsynthetics_v1beta1_script.yaml.

Field Value
Resource apmsynthetics/Script
API Version apmsynthetics.oracle.com/v1beta1
Source Path config/samples/apmsynthetics_v1beta1_script.yaml
#
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

#
# Replace the APM Domain OCID below before running e2e.
# Update metadata.name or spec.displayName if you want to force a fresh create instead of
# binding to an existing Script with the same apmDomainId, displayName, and contentType.
#
apiVersion: apmsynthetics.oracle.com/v1beta1
kind: Script
metadata:
  name: script-sample
spec:
  apmDomainId: ocid1.apmdomain.oc1..exampleuniqueID
  displayName: script-sample
  contentType: JS
  content: "console.log('apmsynthetics script sample');"
  contentFileName: script-sample.js
  freeformTags:
    managed-by: oci-service-operator