1 line
2.6 KiB
JSON
1 line
2.6 KiB
JSON
{"title":"dummy-app-202403200917","uuid":"fb7f01c6-711e-4a82-96b5-829d62be992a","status":"deploying","content":"apiVersion: \"core.oam.dev/v1beta1\"\r\nkind: \"Application\"\r\nmetadata:\r\n name: \"dummy-app-deploy\"\r\nspec:\r\n components:\r\n - name: \"dummy-app-worker\"\r\n type: \"webservice\"\r\n properties:\r\n image: \"docker.io/rsprat/mytestrepo:v1\"\r\n imagePullPolicy: \"Always\"\r\n cmd:\r\n - \"python\"\r\n - \"worker.py\"\r\n env:\r\n - name: \"mqtt_ip\"\r\n value: \"broker.hivemq.com\"\r\n - name: \"mqtt_port\"\r\n value: \"1883\"\r\n - name: \"mqtt_subscribe_topic\"\r\n value: \"$share/workers/neb/test/input\" \r\n - name: \"nebulous_ems_ip\"\r\n valueFrom:\r\n fieldRef:\r\n fieldPath: status.hostIP\r\n - name: \"nebulous_ems_port\"\r\n value: \"61610\"\r\n - name: \"nebulous_ems_user\"\r\n value: \"aaa\"\r\n - name: \"nebulous_ems_password\"\r\n value: \"111\"\r\n - name: \"nebulous_ems_metrics_topic\"\r\n value: \"realtime.job_process_time_instance\"\r\n traits:\r\n - type: \"scaler\"\r\n properties:\r\n replicas: 1\r\n\r\n\r\n policies:\r\n - name: \"target-default\"\r\n type: \"topology\"\r\n properties:\r\n namespace: \"default\"\r\n workflow:\r\n steps:\r\n - name: \"deploy2default\"\r\n type: \"deploy\"\r\n properties:\r\n policies:\r\n - \"target-default\"","variables":[{"key":"spec_components_0_traits_0_properties_replicas","path":"/spec/components/0/traits/0/properties/replicas","type":"float","meaning":"replicas","value":{"lower_bound":1,"higher_bound":8}}],"environmentVariables":[],"resources":[{"uuid":"408bebd8-2e2a-438b-816a-905ac7fe5280","title":"hello world","platform":"AWS","enabled":true}],"templates":[],"parameters":[],"metrics":[{"type":"raw","name":"MeanJobProcessingLatency","sensor":"MeanJobProcessingLatency","config":[],"inputRaw":{"type":"all","interval":30,"unit":"sec"},"isWindowOutputRaw":true,"outputRaw":{"type":"all","interval":30,"unit":"ms"}}],"sloViolations":{"nodeKey":"db8b6ee3-0aec-4ce3-a9ca-cb3c265a8b8d","isComposite":true,"condition":"AND","not":false,"children":[{"nodeKey":"ca14bada-9c8d-4a96-a5ae-841bfd5ecd38","isComposite":false,"metricName":"MeanJobProcessingLatency","operator":">","value":50}]},"utilityFunctions":[{"name":"f","type":"maximize","expression":{"formula":"spec_components_0_traits_0_properties_replicas","variables":[{"name":"SPEC_COMPONENTS_0_TRAITS_0_PROPERTIES_REPLICAS","value":"spec_components_0_traits_0_properties_replicas"}]}}],"_create":true,"_delete":true} |