plVerName: '',
plVerDescription: '',
datalakeSourceList: ["Influx DB"],
- datalakeSourceName: '',
- _measurement: '',
- bucket: ''
+ datalakeSourceName: ''
};
this.regName = new RegExp('\\W+')
plVerName: result.data.trainingjob.pipeline_version,
plVerDescription: '',
datalakeSourceList: ["Influx DB"],
- datalakeSourceName: getDatalakeNameWithoutConversion(result.data.trainingjob.datalake_source),
- _measurement: result.data.trainingjob._measurement,
- bucket: result.data.trainingjob.bucket
+ datalakeSourceName: getDatalakeNameWithoutConversion(result.data.trainingjob.datalake_source)
}, () => {
task()
});
this.state.targetName,
this.state.ucDescription,
this.state.plVerName,
- this.state.datalakeSourceName,
- this.state._measurement,
- this.state.bucket
+ this.state.datalakeSourceName
);
this.invokeAddTrainingJob(event)
this.state.targetName,
this.state.ucDescription,
this.state.plVerName,
- this.state.datalakeSourceName,
- this.state._measurement,
- this.state.bucket
+ this.state.datalakeSourceName
);
this.invokePutTrainingJob(event);
"enable_versioning": this.state.versioning,
"description": this.state.ucDescription,
"pipeline_version": this.state.plVerName,
- "datalake_source": convertedDatalakeDBName,
- "_measurement": this.state._measurement,
- "bucket": this.state.bucket
+ "datalake_source": convertedDatalakeDBName
}).then(res => {
this.logger('UC created ', res.data)
this.invokeStartTrainingForCreate();
"enable_versioning": this.state.versioning,
"description": this.state.ucDescription,
"pipeline_version": this.state.plVerName,
- "datalake_source": convertedDatalakeDBName,
- "_measurement": this.state._measurement,
- "bucket": this.state.bucket
+ "datalake_source": convertedDatalakeDBName
//"enable_versioning" : true
}).then(res => {
this.logger('UC created ', res.data)
})
}
-
-
-
- handle_measurementChange = (event) => {
- this.setState({
- _measurement: event.target.value
- }, () => {
- this.logger("after set state, _measurement: ", this.state._measurement);
- });
- }
-
- handleBucketChange = (event) => {
- this.setState({
- bucket: event.target.value
- }, () => {
- this.logger("after set state, bucket: ", this.state.bucket);
- });
- }
handleModelNameChange = (event) => {
this.setState({
modelName: event.target.value
datalakeSourceName: '',
superModel: '',
superModelVersion: '',
- superModelVersionsList: [],
- _measurement: '',
- bucket: ''
+ superModelVersionsList: []
})
}
</Form.Control>
</Form.Group>
- {
- this.state.datalakeSourceName === "Influx DB" &&
- <div>
- <Form.Group controlId="_measurement">
- <Form.Label>_measurement*</Form.Label>
- <Form.Control type="text"
- value={this.state._measurement}
- onChange={this.handle_measurementChange}
- placeholder=""
- required />
- </Form.Group>
- <Form.Group controlId="bucket">
- <Form.Label>bucket*</Form.Label>
- <Form.Control type="text"
- value={this.state.bucket}
- onChange={this.handleBucketChange}
- placeholder=""
- required />
- </Form.Group>
- </div>
-
- }
-
-
-
<Form.Group controlId="ftFilter">
<Form.Label>Feature Filter</Form.Label>
<Form.Control type="text"
const [pipelineVersion, setPipelineVersion] = useState("");
const [datalakeSource, setDatalakeSource] = useState("");
const [modelUrl, setModelUrl] = useState("");
- const [_measurement, set_measurement] = useState("");
- const [bucket, setBucket] = useState("");
const [modelInfo, setModelInfo] = useState("");
useEffect(()=>{
setPipelineVersion(response.data.trainingjob.pipeline_version === response.data.trainingjob.pipeline_name ? "1" : response.data.trainingjob.pipeline_version);
setDatalakeSource(getDatalakeNameWithoutConversion(response.data.trainingjob.datalake_source));
setModelUrl(response.data.trainingjob.model_url);
- set_measurement(response.data.trainingjob._measurement);
- setBucket(response.data.trainingjob.bucket);
setModelInfo(response.data.trainingjob.model_info);
})
.catch(error => {
<Form.Label>Datalake Source</Form.Label>
<Form.Control type="text" value={datalakeSource} readOnly />
</Form.Group>
- {
- datalakeSource === "Influx DB" &&
- <>
- <Form.Group controlId="_measurement">
- <Form.Label>_measurement</Form.Label>
- <Form.Control type="text" value={_measurement} readOnly />
- </Form.Group>
- <Form.Group controlId="bucket">
- <Form.Label>bucket</Form.Label>
- <Form.Control type="text" value={bucket} readOnly />
- </Form.Group>
- </>
- }
<Form.Group controlId="modelUrl">
<Form.Label>Model URL</Form.Label>
<Form.Control type="text" value={modelUrl} readOnly />