{"id":22369795,"url":"https://github.com/equelin/gounity","last_synced_at":"2025-07-30T19:31:15.466Z","repository":{"id":90375834,"uuid":"107131298","full_name":"equelin/gounity","owner":"equelin","description":"Dell EMC Unity package that provides API bindings for Go ","archived":false,"fork":false,"pushed_at":"2018-03-30T17:18:13.000Z","size":13,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T19:19:31.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equelin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-16T13:29:00.000Z","updated_at":"2023-11-03T11:13:03.000Z","dependencies_parsed_at":"2023-03-22T13:32:19.106Z","dependency_job_id":null,"html_url":"https://github.com/equelin/gounity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equelin%2Fgounity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equelin%2Fgounity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equelin%2Fgounity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equelin%2Fgounity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equelin","download_url":"https://codeload.github.com/equelin/gounity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228178174,"owners_count":17880988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T19:28:28.502Z","updated_at":"2024-12-04T19:28:29.317Z","avatar_url":"https://github.com/equelin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gounity\nDell EMC Unity package that provides API bindings for Go.\n\n# Examples\n## Initialize a new Unity session\n\n```Golang\nserver := \"myunity.example.com\"\ninsecure := true\nusername := \"myuser\"\npassword := \"mypassword\"\n\nsession, err := gounity.NewSession(server, insecure, username, password)\nif err != nil {\n    log.Fatal(err)\n}\n```\n\n## Get Unity's DNS configuration\n\n```Golang\nerr = session.GetDNSServer()\nif err != nil {\n    log.Fatal(err)\n}\n```\n\n## Create a realtime metric's query\n\n```Golang\n// metric paths\npaths := []string{\n    \"sp.*.cpu.summary.busyTicks\",\n    \"sp.*.cpu.uptime\",\n    \"sp.*.storage.pool.*.sizeFree\",\n    \"sp.*.storage.pool.*.sizeSubscribed\",\n    \"sp.*.storage.pool.*.sizeTotal\",\n    \"sp.*.storage.pool.*.sizeUsed\",\n    \"sp.*.storage.pool.*.sizeUsedBlocks\",\n    \"sp.*.memory.summary.totalBytes\",\n    \"sp.*.memory.summary.totalUsedBytes\",\n}\n\n// metric interval in second\nvar interval uint32\ninterval = 60\n\nMetric, err := session.NewMetricRealTimeQuery(paths, interval)\nif err != nil {\n    log.Fatal(err)\n}\n```\n\n# Author\n\n**Erwan Quélin**\n- \u003chttps://github.com/equelin\u003e\n- \u003chttps://twitter.com/erwanquelin\u003e\n\n# License\n\nCopyright 2017 Erwan Quelin and the community.\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequelin%2Fgounity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequelin%2Fgounity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequelin%2Fgounity/lists"}