ves-io-schema-app_setting-API-Get

Examples of getting app_setting

Usecase:

Get app_setting for current namespace

Request using vesctl:

vesctl configuration get app_setting app-setting --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: app-setting
    namespace: documentation
    uid: 1842330b-4128-481d-a343-5dde91b49282
  spec:
    gcSpec:
      anomalyTypes: []
      appTypeRefs: []
      appTypeSettings:
      - appTypeRef:
        - kind: app_type
          name: bookinfo
          namespace: shared
          tenant: acmecorp
        timeseriesAnalysesSetting:
          metricSelectors:
          - metric:
            - REQUEST_RATE
            metricsSource: VIRTUAL_HOSTS
  systemMetadata:
    creationTimestamp: "2020-07-02T15:52:54.307313700Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: e0ade4a07376a7d:e0ade4a07376a7d:0:1
    uid: 1842330b-4128-481d-a343-5dde91b49282
resourceVersion: "41"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/app_settings/app-setting?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:52:54 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "app-setting",
      "namespace": "documentation",
      "uid": "1842330b-4128-481d-a343-5dde91b49282",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "1842330b-4128-481d-a343-5dde91b49282",
      "creation_timestamp": "2020-07-02T15:52:54.307313700Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "e0ade4a07376a7d:e0ade4a07376a7d:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "app_type_refs": [
        ],
        "anomaly_types": [
        ],
        "app_type_settings": [
          {
            "app_type_ref": [
              {
                "kind": "app_type",
                "uid": "",
                "tenant": "acmecorp",
                "namespace": "shared",
                "name": "bookinfo"
              }
            ],
            "timeseries_analyses_setting": {
              "metric_selectors": [
                {
                  "metrics_source": "VIRTUAL_HOSTS",
                  "metric": [
                    "REQUEST_RATE"
                  ]
                }
              ]
            }
          }
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "41",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}